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
dotnet restore fails #3217
Comments
|
In the future is there a method to the madness on where what issues should go to what repositories? |
|
@tristan957 I believe we try and look at where the code that causes the issue lives and move the issue into that repo. If this is an issue in networking code, it probably belongs in corefx (eg, dupe of https://github.com/dotnet/corefx/issues/29942). But as @leecow says, this might be an issue in snaps. The packaging code for snaps live in this repo (core-setup). Sometimes it's hard to know where an issue belongs when we are filing it. |
|
@tristan957 - We've finally gotten to the bottom of this (thanks to @bartonjs ). There's a bit of openssl which has been dormant forever which we are tripping over in some scenarios and we're working through the best fix. In the meantime, you can workaround this by setting the SSL_CERT_FILE to the host OS cert. Setting it to the Snap subsystem also works but that feels funny to me. |
|
I'm getting this on Win 10 behind proxy. |
|
I am running Solus on two machines. I tried to use snap package but it gave following error: I did manual installation using .NET Core 2.2.0 SDK Binary and got After doing Maybe this helps you to solve the issue. I can provide more information if needed, provided you tell me how to get it. |
|
Sounds almost like https://github.com/dotnet/corefx/issues/32224. I can't tell if the fix was backported to 2.2 or not. |
|
@omajid Should be, the commit was dotnet/corefx@d3d3336, which was brought to release/2.2 via dotnet/corefx@d3d3336 (not that the GitHub UI shows that, because it's showing what changes were in release/2.2 that made it different from release/2.1 at that point). The 2.2.100 tgz for portable linux has the fix; but I don't know enough about the @mclang Does your laptop also have a .NET Core 2.1 on it? If so, is it 2.1.6, or something older? |
|
No, I don't have anything else than 2.2.100 installed now. I tried snap version before, but it didn't work b/c SSL errors so I removed it to keep the system clean. This is my |
|
@mclang - setting a couple environment variables as noted up in the thread should get you unblocked. We thought we had this one fixed but apparently not. For anyone else reading along, the cert location is distro-specific. The below value is good for Solus. |
|
@berlstone - are you running under Windows (cmd or powershell) or in WSL? |
|
I'm getting the same error in Windows 10 when I try "dotnet restore" as part of a docker build. But from the exact same folder, "dotnet restore" on the command-line works fine.
Runtime Environment: Host (useful for support): .NET Core SDKs installed: .NET Core runtimes installed: |
Thanks for the info. I tried again with dotnet SDK 2.2.104 on both the Solus pcs and find out that creating new F# console project and running |
|
Hello I tried again without This issue can, as far as I am concerned, be closed. |
|
Confirmed on a few different distros that |
|
if anyone facing this problem on Linux (with |
I am just now encountering these certificate errors on a new install of .NET 2.2 SDK on Ubuntu 19.04. The above resolved my issues - thank you! |

@tristan957 commented on Wed Jun 06 2018
These are the errors I received after running
dotnet-sdk.dotnet restore:This was after I ran
dotnet-sdk.dotnet new reactredux@leecow commented on Thu Jun 07 2018
Hi @tristan957 - This is an issue on a few distros that I haven't gotten to the bottom of yet. Let me shake some bushes around here and figure out what conditions can lead to the errors.
@tristan957 commented on Thu Jun 07 2018
Sorry if this is a duplicate. Thanks for the response. Let me know if I can provide you with any information
@leecow commented on Thu Jun 07 2018
Don't know yet if it's related but found this - https://github.com/dotnet/corefx/issues/29942
@Petermarcu commented on Tue Jun 12 2018
@leecow should we move this to the nuget repo to track it to start?
@leecow commented on Wed Jun 20 2018
Chasing another issue has lead me to a possible solution for this one ;-) Looks like this is related to the switch to SocketsHttpHandler (see the 2.1 Preview 2 blog post).
@tristan957 - I was able to get restore working on my Solus box by first running
export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0. Once I did that,dotnet restoreworked.@tristan957 commented on Thu Jun 21 2018
Interesting. Is there something special about Solus that I should bring up to my distro maintainers, or is this solely a
.NET Coreissue? Would I experience this issue on other distros?@leecow commented on Thu Jun 21 2018
I think it may have more to do with Ubuntu Core which is the root of the Snap environment where snaps really run. Still need to poke around a bit more.
@tristan957 commented on Thu Jun 21 2018
No rush. If you need me to test things on my end, let me know
The text was updated successfully, but these errors were encountered: