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

[1.2.0][Win10][VirtualBox] #38

Closed
ysalmon opened this issue Jan 26, 2023 · 5 comments
Closed

[1.2.0][Win10][VirtualBox] #38

ysalmon opened this issue Jan 26, 2023 · 5 comments
Assignees
Labels
pending validation Currently a fix is being tested

Comments

@ysalmon
Copy link

ysalmon commented Jan 26, 2023

At step 10, I get an error. Presumably I do not have some extended attribute thing installed — it would be nice to check for that at the beginning of the procedure.

Setup did not complete because an error occurred.
Impossible de définir l’attribut, car les attributs ne sont pas pris en charge. Seuls les attributs suivants peuvent être définis : Archive, Hidden, Normal, ReadOnly ou System.

à <ScriptBlock>, C:\Users\yann\AppData\Local\Temp\7z10E3DB1C\sg\network-ocamlcompiler\windows_x86_64\SingletonInstall\Deployers\Deployers.psm1 : ligne 508
à Remove-DirectoryFully, C:\Users\yann\AppData\Local\Temp\7z10E3DB1C\sg\network-ocamlcompiler\windows_x86_64\SingletonInstall\Deployers\Deployers.psm1 : ligne 507
à New-CleanDirectory, C:\Users\yann\AppData\Local\Temp\7z10E3DB1C\sg\network-ocamlcompiler\windows_x86_64\SingletonInstall\Deployers\Deployers.psm1 : ligne 584
à Stop-BlueGreenDeploy, C:\Users\yann\AppData\Local\Temp\7z10E3DB1C\sg\network-ocamlcompiler\windows_x86_64\SingletonInstall\Deployers\Deployers.psm1 : ligne 201
à <ScriptBlock>, C:\Users\yann\AppData\Local\Temp\7z10E3DB1C\sg\network-ocamlcompiler\windows_x86_64\setup-userprofile.ps1 : ligne 1378
à <ScriptBlock>, <Aucun fichier> : ligne 1
à <ScriptBlock>, <Aucun fichier> : ligne 1



[Advanced] MSYS2 commands can be run with: C:\Users\yann\AppData\Local\Programs\DISKUV~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\yann\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\yann\AppData\Local\Temp\7z10E3DB1C\sg\network-ocamlcompiler\windows_x86_64\setup-userprofile.bat
                                             -AllowRunAsAdmin
                                             -InstallationPrefix
                                             C:\Users\yann\AppData\Local\Programs\DISKUV~1
                                             -MSYS2Dir
                                             C:\Users\yann\AppData\Local\Programs\DISKUV~1\tools\MSYS2
                                             -OpamExe
                                             C:\Users\yann\AppData\Local\Programs\DISKUV~1\bin\OPAM-R~1.EXE
                                             -DkmlPath
                                             C:\Users\yann\AppData\Local\Temp\7Z10E3~1\sg\NETWOR~1\WINDOW~1\dkmldir
                                             -GlobalCompileDir
                                             C:\Users\yann\AppData\Local\Temp\7Z10E3~1\sg\STAGIN~1\generic
                                             -NoDeploymentSlot -DkmlHostAbi
                                             windows_x86_64 -TempParentPath
                                             C:\Users\yann\AppData\Local\Temp\PABC43~1
                                             -SkipProgress -SkipMSYS2Update
                                             -ImpreciseC99FloatOps

>>> A transient failure occurred. <<<

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

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

                         >>> A transient failure occurred. <<<
@ysalmon
Copy link
Author

ysalmon commented Jan 26, 2023

@jonahbeckford
Copy link
Contributor

The logic is pretty simple (source code):

        Get-ChildItem $Path -Recurse -Force | Where-Object { $_.Attributes -band [io.fileattributes]::ReadOnly } | ForEach-Object {
            Set-ItemProperty -Path $_.FullName -Name Attributes -Value ($_.Attributes -band (-bnot [io.fileattributes]::ReadOnly))
        }

That removes the ReadOnly attribute from files before deleting them. It does not add anything that was not there already.

I can actually skip over the setting of the attributes if it fails. I am very very curious though what is special about your drive.

I'm already preparing a prerelease for you ... I will add the skip of attributes. Can you wait on this a day while it gets tested?

@ysalmon
Copy link
Author

ysalmon commented Jan 26, 2023

You are so nice !

Sorry for the imprecise reports ; I have not actually used Windows since ~2008 and WinXP and was not even a "power user" back then, so I do not really know was is going on in there. The drive is a virtualbox VDI. That it fails (and whith such a message) on removing an attribute is really strange.

This is not an urgent matter at all. I have a working 4.14.0 from fdopen ; I am trying Diskuv out of curiosity and to see if I can get a working 5.0.0 OCaml (this because there happen to be some bug in 4.14.0 that affects backtraces on exceptions ; but this is not an urgent problem as I will only be doing pure functional programming for a while — pun not intended —, and the only exception I can think of in that context is a Failure due to a partial match, and they are obvious to spot).

jonahbeckford added a commit to diskuv/dkml-component-ocamlcompiler that referenced this issue Jan 26, 2023
@jonahbeckford jonahbeckford added the pending validation Currently a fix is being tested label Jan 26, 2023
@jonahbeckford jonahbeckford self-assigned this Jan 26, 2023
@jonahbeckford
Copy link
Contributor

@ysalmon
Copy link
Author

ysalmon commented Feb 14, 2023

Thank you so much ! I finally had some time to check this out, and indeed, opam installation works flawlessly with this build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending validation Currently a fix is being tested
Development

No branches or pull requests

2 participants