Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transient failure occured during opam installation #65

Open
ShivamPatel8800 opened this issue Sep 10, 2023 · 4 comments
Open

Transient failure occured during opam installation #65

ShivamPatel8800 opened this issue Sep 10, 2023 · 4 comments

Comments

@ShivamPatel8800
Copy link

Setup did not complete because an error occurred.
Win32 command failed! Exited with 1. Command was: C:\WINDOWS\system32\cmd.exe /c call "C:\Users\Shivam\AppData\Local\Temp\PA23A4~1\0\inotify-win\compile.bat".

at Invoke-Win32CommandWithProgress, C:\Users\Shivam\AppData\Local\Temp\7z73F1BC88\sg\network-ocamlcompiler\windows_x86_64\setup-userprofile.ps1: line 771
at , C:\Users\Shivam\AppData\Local\Temp\7z73F1BC88\sg\network-ocamlcompiler\windows_x86_64\setup-userprofile.ps1: line 914
at , : line 1
at , : line 1

Bug Reports can be filed at https://github.com/diskuv/dkml-installer-ocaml/issues
Please copy the error message and attach the log file available at
C:\Users\Shivam\AppData\Local\Programs\DISKUV~1\setup-userprofile.full.log

FATAL [a0d16230]. A transient failure occurred.

Root cause: The conformant command had exit code 1:
C:\Users\Shivam\AppData\Local\Temp\7z73F1BC88\sg\network-ocamlcompiler\windows_x86_64\setup-userprofile.bat
-AllowRunAsAdmin
-InstallationPrefix
C:\Users\Shivam\AppData\Local\Programs\DISKUV1
-MSYS2Dir
C:\Users\Shivam\AppData\Local\Programs\DISKUV
1\tools\MSYS2
-OpamExe
C:\Users\Shivam\AppData\Local\Programs\DISKUV1\bin\OPAM-R1.EXE
-DkmlPath
C:\Users\Shivam\AppData\Local\Temp\7Z73F11\sg\NETWOR1\WINDOW1\dkmldir
-GlobalCompileDir
C:\Users\Shivam\AppData\Local\Temp\7Z73F1
1\sg\STAGIN1\generic
-NoDeploymentSlot -DkmlHostAbi
windows_x86_64 -TempParentPath
C:\Users\Shivam\AppData\Local\Temp\PA23A4
1
-SkipProgress -SkipMSYS2Update

A transient failure occurred. <<<

dkml-package.bc: [ERROR] FATAL [5f927a8b].
A transient failure occurred.

                     Root cause: The command had exit code 20:
                                   C:\Users\Shivam\AppData\Local\Temp\7z73F1BC88\bin\dkml-install-user-runner.exe
                                     install-user-network-ocamlcompiler --verbosity=info
                                     --color=always --prefix
                                     C:\Users\Shivam\AppData\Local\Programs\DiskuvOCaml
                                     --staging-files
                                     C:\Users\Shivam\AppData\Local\Temp\7z73F1BC88\sg

                     >>> A transient failure occurred. <<<
@jonahbeckford
Copy link
Contributor

jonahbeckford commented Sep 10, 2023 via email

@RobinParmentier
Copy link

Hey,
I was having the same issue. I tried to use the 64bit installer as suggested but I get a similar error again:
`Setup did not complete because an error occurred.
MSYS2 command failed! Exited with 107. Command was: C:\Users\robin\AppData\Local\Programs\DKMLNA1\tools\MSYS2\usr\bin\env.exe MSYSTEM=CLANG64 MSYSTEM_PREFIX=/clang64 MSYSTEM_CARCH=x86_64 MSYSTEM_CHOST=x86_64-w64-mingw32 MINGW_CHOST=x86_64-w64-mingw32 MINGW_PACKAGE_PREFIX=mingw-w64-clang-x86_64 MINGW_PREFIX=/clang64 HOME=/home/robin PATH=/clang64/bin:/usr/bin:/bin C:\Users\robin\AppData\Local\Programs\DKMLNA1\tools\MSYS2\usr\bin\env.exe PATH=/d/ProgramFiles/Git/cmd:/clang64/bin:/usr/bin:/bin DKML_TMP_PARENTDIR=/c/Users/robin/AppData/Local/Temp/PA5E8E1/0 env DiskuvOCamlVarsVersion=2 DiskuvOCamlDeploymentId='v-2.0.3;ocaml-4.14.0;opam-2.2.0alpha020221228;msys2-F45581C12EA79770' DiskuvOCamlVersion='2.0.3' DiskuvOCamlMode='native' DiskuvOCamlHome='/c/Users/robin/AppData/Local/Programs/DKMLNA1' DiskuvOCamlBinaryPaths='/c/Users/robin/AppData/Local/Programs/DKMLNA1/usr/bin;/c/Users/robin/AppData/Local/Programs/DKMLNA1/bin' DiskuvOCamlMSYS2Dir='/' WITHDKML_ENABLE=OFF OCAMLLIB= TOPDIR=/c/Users/robin/AppData/Local/Temp/7Z50941/sg/OCAMLC1/WINDOW1/dkmldir/vendor/drc/all/emptytop C:\Users\robin\AppData\Local\Programs\DKMLNA1\tools\MSYS2\usr\bin\sh.exe /c/Users/robin/AppData/Local/Temp/7z50947BB4/sg/ocamlcompiler-common/windows_x86_64/install-ocaml.sh /c/Users/robin/AppData/Local/Temp/7Z50941/sg/OCAMLC1/WINDOW1/dkmldir 15553b77175270d987058b386d737ccb939e8d5a windows_x86_64 /c/Users/robin/AppData/Local/Programs/DKMLNA1 --disable-imprecise-c99-float-ops

at Invoke-MSYS2Command, C:\Users\robin\AppData\Local\Temp\7z50947BB4\sg\ocamlcompiler-common\windows_x86_64\dkmldir\vendor\drd\src\windows\UnixInvokers\UnixInvokers.psm1: line 180
at Invoke-GenericCommandWithProgress, C:\Users\robin\AppData\Local\Temp\7z50947BB4\sg\ocamlcompiler-common\windows_x86_64\setup-userprofile.ps1: line 841
at , C:\Users\robin\AppData\Local\Temp\7z50947BB4\sg\ocamlcompiler-common\windows_x86_64\setup-userprofile.ps1: line 1156
at , : line 1
at , : line 1`

Any ideas on how to fix this?
Thank you.

Kind regards,
Robin

@jonahbeckford
Copy link
Contributor

@RobinParmentier You aren't having the same issue, but clearly something is off. Can you attach the full log so I can see what is happening?

@RobinParmentier
Copy link

Hi,

I'm sorry if I posted this in the wrong place, I don't really understand the error messages.
In the end I used WSL to install opam and got it working.

I tried rerunning the 64bit installer to give you the logs anyway, I think I still get the same error:

Entering 'flexdll'
FATAL: No Common7/Tools/VsDevCmd.bat was detected at /c/DiskuvOCaml/BuildTools
Setup did not complete because an error occurred.
MSYS2 command failed! Exited with 107. Command was: C:\Users\robin\AppData\Local\Programs\DKMLNA~1\tools\MSYS2\usr\bin\env.exe MSYSTEM=CLANG64 MSYSTEM_PREFIX=/clang64 MSYSTEM_CARCH=x86_64 MSYSTEM_CHOST=x86_64-w64-mingw32 MINGW_CHOST=x86_64-w64-mingw32 MINGW_PACKAGE_PREFIX=mingw-w64-clang-x86_64 MINGW_PREFIX=/clang64 HOME=/home/robin PATH=/clang64/bin:/usr/bin:/bin C:\Users\robin\AppData\Local\Programs\DKMLNA~1\tools\MSYS2\usr\bin\env.exe PATH=/d/ProgramFiles/Git/cmd:/clang64/bin:/usr/bin:/bin DKML_TMP_PARENTDIR=/c/Users/robin/AppData/Local/Temp/PA0C80~1/0 env DiskuvOCamlVarsVersion=2 DiskuvOCamlDeploymentId='v-2.0.3;ocaml-4.14.0;opam-2.2.0~alpha0~20221228;msys2-F45581C12EA79770' DiskuvOCamlVersion='2.0.3' DiskuvOCamlMode='native' DiskuvOCamlHome='/c/Users/robin/AppData/Local/Programs/DKMLNA~1' DiskuvOCamlBinaryPaths='/c/Users/robin/AppData/Local/Programs/DKMLNA~1/usr/bin;/c/Users/robin/AppData/Local/Programs/DKMLNA~1/bin' DiskuvOCamlMSYS2Dir='/' WITHDKML_ENABLE=OFF OCAMLLIB= TOPDIR=/c/Users/robin/AppData/Local/Temp/7ZDFFF~1/sg/OCAMLC~1/WINDOW~1/dkmldir/vendor/drc/all/emptytop C:\Users\robin\AppData\Local\Programs\DKMLNA~1\tools\MSYS2\usr\bin\sh.exe /c/Users/robin/AppData/Local/Temp/7zDFFF824C/sg/ocamlcompiler-common/windows_x86_64/install-ocaml.sh /c/Users/robin/AppData/Local/Temp/7ZDFFF~1/sg/OCAMLC~1/WINDOW~1/dkmldir 15553b77175270d987058b386d737ccb939e8d5a windows_x86_64 /c/Users/robin/AppData/Local/Programs/DKMLNA~1 --disable-imprecise-c99-float-ops

at Invoke-MSYS2Command, C:\Users\robin\AppData\Local\Temp\7zDFFF824C\sg\ocamlcompiler-common\windows_x86_64\dkmldir\vendor\drd\src\windows\UnixInvokers\UnixInvokers.psm1: line 180
at Invoke-GenericCommandWithProgress, C:\Users\robin\AppData\Local\Temp\7zDFFF824C\sg\ocamlcompiler-common\windows_x86_64\setup-userprofile.ps1: line 841
at <ScriptBlock>, C:\Users\robin\AppData\Local\Temp\7zDFFF824C\sg\ocamlcompiler-common\windows_x86_64\setup-userprofile.ps1: line 1156
at <ScriptBlock>, <No file>: line 1
at <ScriptBlock>, <No file>: line 1



[Advanced] MSYS2 commands can be run with: C:\Users\robin\AppData\Local\Programs\DKMLNA~1\tools\MSYS2\msys2_shell.cmd


Bug Reports can be filed at https://github.com/diskuv/dkml-installer-ocaml/issues
Please copy the error message and attach the log file available at
  C:\Users\robin\AppData\Local\Programs\DKMLNA~1\setup-userprofile.full.log

FATAL [a0d16230]. A transient failure occurred.

Root cause: The conformant command had exit code 1:
                                           C:\Users\robin\AppData\Local\Temp\7zDFFF824C\sg\ocamlcompiler-common\windows_x86_64\setup-userprofile.bat
                                             -AllowRunAsAdmin
                                             -InstallationPrefix
                                             C:\Users\robin\AppData\Local\Programs\DKMLNA~1
                                             -OCamlLangVersion 4.14.0
                                             -DkmlPath
                                             C:\Users\robin\AppData\Local\Temp\7ZDFFF~1\sg\OCAMLC~1\WINDOW~1\dkmldir
                                             -NoDeploymentSlot -DkmlHostAbi
                                             windows_x86_64 -TempParentPath
                                             C:\Users\robin\AppData\Local\Temp\PA0C80~1
                                             -SkipProgress -SkipMSYS2Update
                                             -OpamExe
                                             C:\Users\robin\AppData\Local\Programs\DKMLNA~1\bin\OPAM-R~1.EXE
                                             -MSYS2Dir
                                             C:\Users\robin\AppData\Local\Programs\DKMLNA~1\tools\MSYS2

>>> A transient failure occurred. <<<

dkml-package.bc: [ERROR] FATAL [5f927a8b].
                         A transient failure occurred.

                         Root cause: The command had exit code 20:
                                       C:\Users\robin\AppData\Local\Temp\7zDFFF824C\bin\dkml-install-user-runner.exe
                                         install-user-ocamlcompiler-network --verbosity=info
                                         --color=always --prefix
                                         C:\Users\robin\AppData\Local\Programs\DkMLNative
                                         --staging-files
                                         C:\Users\robin\AppData\Local\Temp\7zDFFF824C\sg

                         >>> A transient failure occurred. <<<

setup-userprofile.full.log

Hope this helps!

Kind regards,
Robin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants