-
Notifications
You must be signed in to change notification settings - Fork 526
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
Symlink errors? Failures when downloading; "Something went wrong" #3767
Comments
I don't think we changed something recently. This message is usually
related to network issues
Henrik Feldt <[email protected]> schrieb am Do., 2. Jan. 2020, 22:31:
… Description
Paket has started throwing lots of errors while restoring in the latter
releases:
-version 5.226.0 -clitool paket 5.226.0 +version 5.241.5 +clitool paket
5.241.5
or:
Downloading fake-cli 5.19.0 (Build)
Download of fake-cli 5.19.0 (Build) done in 1 second. (53127 kbit/s, 7 MB)
Downloading Http.fs 5.3
Something went wrong while downloading System.Diagnostics.PerformanceCounter 4.5
Message: Start of process ln failed.
==> Trying again
Downloading Argu 5.5
Downloading System.Diagnostics.PerformanceCounter 4.5
Something went wrong while downloading runtime.rhel.7-x64.runtime.native.System. Security.Cryptography.OpenSsl 4.3.3
Message: Start of process ln failed.
==> Trying again
Repro steps
Please provide the steps required to reproduce the problem
1. .paket/paket install
Expected behavior
Please provide a description of the behavior you expect.
Paket should not corrupt installs or else it should say what's wrong, not
just "Something went wrong", as that's not a proper error message to act on.
Known workarounds
Downgrade? Perhaps it's .net 3.1-based?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3767?email_source=notifications&email_token=AAAOANEHJZI5N4BYCHU44WLQ3ZMJNA5CNFSM4KCG4MFKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IDYJ2DQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOANEV535T73QLZNLIXFTQ3ZMJNANCNFSM4KCG4MFA>
.
|
It's probably not related to network issues as this happens no matter on what network I'm on. But I think it is related to
Removing the storage option makes it all work again. |
I don't remember us touching that part
Henrik Feldt <[email protected]> schrieb am Fr., 3. Jan. 2020, 11:38:
… It's probably not related to network issues as this happens no matter on
what network I'm on. But I think it is related to storage: symlinks that
seemingly got broken a few releases back;
- the Paket folder is empty
- " Message: Start of process *ln* failed."
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3767?email_source=notifications&email_token=AAAOANBJWLY62INNTIBGR43Q34ITLA5CNFSM4KCG4MFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIA23EY#issuecomment-570535315>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOANB5XSSXGQFGBICX5OTQ34ITLANCNFSM4KCG4MFA>
.
|
So then it might be due to either security upgrades on macOS's part of because I've installed the latest .Net Core. Let's keep this issue open for symlink-related errors? |
Sure.
Henrik Feldt <[email protected]> schrieb am Fr., 3. Jan. 2020, 11:43:
… So then it might be due to either security upgrades on macOS's part of
because I've installed the latest .Net Core. Let's keep this issue open for
symlink-related errors?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3767?email_source=notifications&email_token=AAAOANBHJQYMWTHBKPARDGDQ34JELA5CNFSM4KCG4MFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIA3FCA#issuecomment-570536584>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAOANAHOPMXF7IRZPKQ4ILQ34JELANCNFSM4KCG4MFA>
.
|
I just got the same error on windows. Repro: dotnet new -i waypoint
dotnet new waypoint
dotnet tool restore
dotnet paket restore and I get following error: Paket failed with
-> symlink C:\Users\leko.tomas\.nuget\packages\runtime.fedora.28-x64.runtime.native.system.security.cryptography.openssl\4.3.3 -> C:\Users\Leko.Tomas\playground\Svldb.Core\packages\docs\runtime.fedora.28-x64.runtime.native.System.Security.Cryptography.OpenSsl failed with error : [1] with output :
and error : You do not have sufficient privilege to perform this operation. |
So, I just found out the solution. It is not a problem of paket but in windows the symlinks cannot be created without elevated shell. In windows 10 you have to enable "Developer Mode" to enable creating symlinks from the command line without elevated shell. For more information see here: https://blogs.windows.com/windowsdeveloper/2016/12/02/symlinks-windows-10/ |
I've been trying to get everything [building with .NET 6](#606) and the related tooling, and have been getting CI build failures in the macOS builds, with errors that look like those described at fsprojects/Paket#3767 It looks like changing Paket to use 'packages' storage instead of 'symlink' avoids that issue, by putting the restored nuget packages directly into the local packages folder instead of symlinking them. (I don't know much about this Paket feature - the docs suggest its for reducing disk usage by avoid duplicates, which might not really be an issue for the builds?) On a related note, we also have this issue - #578 - where you have to either run the build as admin on windows or set some extra OS options otherwise the package restore will fail. I think this change would avoid that as well. Note: Changing the paket storage to 'none' helped with package restore issue, but caused the 'docs' build to break for me because the Fornax tool couldn't find the libraries, whereas it works when set to 'packages'
Description
Paket has started throwing lots of errors while restoring in the latter releases:
or:
Repro steps
Please provide the steps required to reproduce the problem
Expected behavior
Please provide a description of the behavior you expect.
Paket should not corrupt installs or else it should say what's wrong, not just "Something went wrong", as that's not a proper error message to act on.
Known workarounds
Downgrade? Perhaps it's .net 3.1-based?
Another output:
Same issue with
6.0.0-alpha011
.The text was updated successfully, but these errors were encountered: