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

Builds are failing on Ubuntu when attempting to restore packages from NuGet.org #2313

Closed
gep13 opened this issue Aug 9, 2021 · 0 comments
Closed
Assignees
Labels
5 - Released BuildAutomation NO RELEASE NOTES Should not be included in the release notes - not enhancing or fixing end product.
Milestone

Comments

@gep13
Copy link
Member

gep13 commented Aug 9, 2021

When building on Mono, we see the following output when attempting to restore packages from NuGet.org:

                 [exec] Restoring NuGet package NUnit.Runners.2.6.4.
                 [exec] WARNING: Unable to find version '2.6.4' of package 'NUnit.Runners'.
                 [exec]   https://api.nuget.org/v3/index.json: Unable to load the service index for source https://api.nuget.org/v3/index.json.
                 [exec]   The SSL connection could not be established, see inner exception.
                 [exec]   Authentication failed, see inner exception.
                 [exec]   Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
                 [exec]     at /build/mono-6.12.0.122/external/boringssl/ssl/handshake_client.c:1132
                 [exec]   https://www.nuget.org/api/v2/: Unable to load the service index for source https://www.nuget.org/api/v2/.
                 [exec]   The SSL connection could not be established, see inner exception.
                 [exec]   Authentication failed, see inner exception.
                 [exec]   Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
                 [exec]     at /build/mono-6.12.0.122/external/boringssl/ssl/handshake_client.c:1132

According to this report:

mono/mono#12406 (comment)

This is a known problem when restoring packages on Mono, although this is the first time that we are seeing this.

The workaround is to append the -DisableParallelProcessing argument when invoking NuGet.exe. This can be done within the .uppercut file.

@gep13 gep13 added 1 - Ready BuildAutomation NO RELEASE NOTES Should not be included in the release notes - not enhancing or fixing end product. labels Aug 9, 2021
@gep13 gep13 added this to the 0.10.16 milestone Aug 9, 2021
@gep13 gep13 self-assigned this Aug 9, 2021
gep13 added a commit to gep13/choco that referenced this issue Aug 9, 2021
Restoring packages using Mono on Ubuntu is intermittently causing errors,
which are then failing the overall build. The suggestion is to add the
DisableParallelProcessing flag to the invocation of NuGet.exe.
@gep13 gep13 closed this as completed Aug 9, 2021
gep13 added a commit that referenced this issue Aug 19, 2021
* stable:
  (maint) Remove unnecessary whitespace
  (#2304) Fix list --exact -a for prereleases
  (#2124) Add ability to initialize without logging
  (#2313) Add argument to call to NuGet.exe
  (doc) fix typo in Readme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Released BuildAutomation NO RELEASE NOTES Should not be included in the release notes - not enhancing or fixing end product.
Projects
None yet
Development

No branches or pull requests

1 participant