Skip to content

[binary caching] Failed to push some of the ports to NuGet on Ubuntu #19038

Closed

Description

UPDATE: Easy way to reproduce is here https://github.com/Pospelove/vcpkg-nuget-issue

Describe the bug
Failed to push some of the ports to NuGet after building (binary caching).

Failed ports:

Pushing boost-regex_x64-linux.1.75.0-vcpkg2150fdca76f992a7b944e55522732509d47ede13.nupkg to 'https://nuget.pkg.github.com/skyrim-multiplayer'...
  PUT https://nuget.pkg.github.com/skyrim-multiplayer/
An error was encountered when fetching 'PUT https://nuget.pkg.github.com/skyrim-multiplayer/'. The request will now be retried.
Error while copying content to a stream.
  Unable to read data from the transport connection: The socket has been shut down.
  The socket has been shut down
  PUT https://nuget.pkg.github.com/skyrim-multiplayer/
An error was encountered when fetching 'PUT https://nuget.pkg.github.com/skyrim-multiplayer/'. The request will now be retried.
Error while copying content to a stream.
  Unable to read data from the transport connection: The socket has been shut down.
  The socket has been shut down
  PUT https://nuget.pkg.github.com/skyrim-multiplayer/
An error occurred while sending the request.
  The server returned an invalid or unrecognized response.
Pushing NuGet to GitHub failed. Use --debug for more information.

Environment

  • OS: Ubuntu latest (GitHub Actions)
  • Compiler: Clang 11
  • vcpkg 3c82e19

To Reproduce
Trigger .github/workflows/cmake.yml for skyrim-multiplayer/skymp#85 (last commit hash - 58812850911e8e1488b73be033a0a5d61a7bf551)

Expected behavior
Everything should be pushed to NuGet successfully.

Failure logs
https://github.com/skyrim-multiplayer/skymp/runs/3121332869?check_suite_focus=true

See also
NuGet/Home#8580

Activity

  1. Neumann-A commented on Jul 21, 2021

    @Neumann-A
    Contributor

    Do you have more than one NuGet binary cache for vcpkg on Github?

  2. Pospelove commented on Jul 22, 2021

    @Pospelove
    ContributorAuthor

    Do you have more than one NuGet binary cache for vcpkg on Github?

    No.

  3. JackBoosY commented on Jul 22, 2021

    @JackBoosY
    Contributor

    Maybe related to #15289.

  4. Pospelove commented on Jul 22, 2021

    @Pospelove
    ContributorAuthor

    Maybe related to #15289.

    Jack·Boos·Yu (@JackBoosY) I can create a sample repo with a minimal reproducible example if it helps.

  5. JackBoosY commented on Jul 22, 2021

    @JackBoosY
    Contributor
  6. Hoikas commented on Jul 23, 2021

    @Hoikas
    Contributor

    This is the same issue I mentioned to Robert Schumacher (@ras0219-msft) in discord a few months ago. I saw it with the physx and python3 ports on macOS and Linux.

  7. changed the title [-]Failed to push some of the ports to NuGet after building (binary caching).[/-] [+][binary caching] Failed to push some of the ports to NuGet on Ubuntu[/+] on Jul 24, 2021
  8. Pospelove commented on Jul 24, 2021

    @Pospelove
    ContributorAuthor

    Jack·Boos·Yu (@JackBoosY)

    It's finally out:
    https://github.com/Pospelove/vcpkg-nuget-issue

    This is a very minimal repo. The only things it contains are vcpkg submodule, manifest, and a workflow file.
    See readme.

    It's based on GitHub Actions because of the original example. Please let me know if you need to reproduce this bug locally instead of using GitHub Actions.

  9. m-kuhn commented on Jul 27, 2021

    @m-kuhn
    Contributor

    gdal is also affected

  10. added
    category:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)
    and removed
    requires:reproThe issue is not currently repro-able
    on Jul 27, 2021
  11. m-kuhn commented on Jul 28, 2021

    @m-kuhn
    Contributor

    gdal is also affected

    This seems to be a different issue #19189

  12. PhoebeHui commented on Jul 29, 2021

    @PhoebeHui
    Contributor

    Related to NuGet/Home#8580 and NuGet/Home#10045.

    It seems nuget issue on ubuntu, I'm not sure what should vcpkg do here, update the docs? Robert Schumacher (@ras0219-msft) ras0219 (@ras0219), could you please take a look?

  13. Pospelove commented on Nov 8, 2021

    @Pospelove
    ContributorAuthor

    Any progress on this?

  14. Pospelove commented on Aug 8, 2022

    @Pospelove
    ContributorAuthor

    image
    image
    image

  15. JackBoosY commented on Aug 12, 2022

    @JackBoosY
    Contributor
  16. BillyONeal commented on Aug 12, 2022

    @BillyONeal
    Member

    Nope. We're invoking NuGet and NuGet is failing. Not much we can do I think

  17. Pospelove commented on Aug 12, 2022

    @Pospelove
    ContributorAuthor

    Anyway thanks for taking a look, let's keep this issue open for now

  18. SchaichAlonso commented on Aug 17, 2023

    @SchaichAlonso
    Contributor

    You need to setup an api key explicitly by running something like

      nuget setapikey "${{ secrets.GITHUB_TOKEN }}" -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
    

    The example provided in the documentation on nuget binary caching has already been updated.

  19. Pospelove commented on Aug 17, 2023

    @Pospelove
    ContributorAuthor

    You need to setup an api key explicitly by running something like

      nuget setapikey "${{ secrets.GITHUB_TOKEN }}" -source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
    

    The example provided in the documentation on nuget binary caching has already been updated.

    Thank you for your tip. I'm not working on binary caching in any of my projects atm, so I'll close this issue. I'll reopen this in case of being able to reproduce the original bug.

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

Metadata

Metadata

Labels

category:vcpkg-bugThe issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions