-
Notifications
You must be signed in to change notification settings - Fork 258
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
Reliability issues while publishing packages to GPR, using GitHub Actions #10045
Comments
@anangaur |
@anangaur |
Hey, my team supports GitHub Packages for Nuget registry. We just received a lead to this thread. Pls let us know how we can help |
Hey @anangaur @erdembayar I tried but I am unable to repro this. I tried publishing via both |
Thank you for testing this for us. |
I used the following workflows - dotnet build
dotnet restore
Haven't checked under Github organization repo. Will test this scenario as well. |
Related to: #9775 |
@NamrataJha
|
@nadesu @NamrataJha |
@erdembayar apologies for the delay. Will check for the org account and get back to you. Do you have any package that I can use for testing? |
I don't have any specific repo reported to me recently. |
@JB101UK @bjorhn @RehanSaeed @rido-min @Airn5475 Sorry for resurrecting old thread. Do you still experience problems with "nuget push" in Github action? I was not able to repro this issue. Probably things improved during last 2 years. Please let me know if you're still experiencing this issue. We need recent log with error. |
@erdembayar All good at the moment, thanks. |
@erdembayar tested from both user and org accounts. I am unable to repro the issue from either. |
Thank you NamrataJha. I had been testing it for some time, it didn't repro for me too. |
Hey all, This issue has been open for over 2 years, and at this point we aren't getting too many new reports or are able to repro this issue. If you are still hitting similar problems, feel free to open new issues as appropriate. |
This is a new issue forked from the closed issue:
dotnet nuget push to GPR -- Invalid or unrecognized response
#8580Pasting some of the responses from that issue:
@JB101UK commented:
I've been attempting to upload dotnet nupkgs to GitHub packages. I've followed all of the troubleshooting advice, I've got my tokens, my repository url set, my nuget.config file configured, but I find that both pushing/pulling packages is relatively intermittent. Sometimes it just works - other times I get the following error:
Pushing to "http://nuget.pkg.github.com/ PUT https://nuget.pkg.github.com// An error encountered when fetching PUT http://nuget.pkg.github.com/. The request will now be retried. An error occurred while sending the request. The response ended prematurely. PUT https://nuget.pkg.github.com/ An error encountered when fetching PUT http://nuget.pkg.github.com/. The request will now be retried. An error occurred while sending the request. The response ended prematurely. PUT https://nuget.pkg.github.com/ error: An error occurred while sending the request. error: The response ended prematurely.
It's frustrating because sometimes it just works.
Package is pushed.
And other times I can keep re-submitting the same request and it will fail for a while, and eventually just push, without any changes/modification to my code/dotnet nuget push statement.
I see there's been a lot of discussion about this on the forums. I'm presuming it's just a temperamental fault that will be rectified?
Thanks
@bjorhn commented
'm having the exact same problem as @JB101UK. I have two private repos set up, they're both designed to build and push packages to GitHub and they're set up with near-identical scripts. In one of the repos the push succeeds 100% of the time, and in the other repo it only succeeds about 20-25% of the time. All I have to do in order to make it work is run the same action over and over until it goes through. I don't even have to create a new PR, I just keep clicking on the failed workflow -> "Re-run jobs" until it works.
My failing action looks like this:
The only difference between the working and the failing repo/action is that the working one performs a dotnet build instead of a dotnet restore, and doesn't set the --no-build flag when calling dotnet pack.
@bgilbert6 commented
No matter what I try I only ever get this reply:
warn : No API Key was provided and no API Key could be found for 'https://nuget.pkg.github.com/ORG'. To save an API Key for a source use the 'setApiKey' command. info : Pushing pkg.0.0.5.nupkg to 'https://nuget.pkg.github.com/ORG'... info : PUT https://nuget.pkg.github.com/ORG/ info : NotFound https://nuget.pkg.github.com/ORG/ 519ms error: Response status code does not indicate success: 404 (Not Found).
I can manually go to the nuget.pkg.github.com url and there is definitely something there. But the PUT request 404s
@RehanSaeed commented
Also been through a few iterations and approaches to this. Sometimes the following works, other times I get errors:
[intermittent] errors with: An error was encountered when fetching 'PUT https://nuget.pkg.github.com/daltskin/'. The request will now be retried. An error occurred while sending the request.
Now, I'm just using curl to push the package and it seems more reliable :)
Replace
[PACKAGE]
with your package nameReplace
[USERNAME]
with your usernameGithub workflow extract:
@rido-min commented
I got it working with
dotnet nuget push
here.. but didnt work when using a repo under a GitHub organization, so I switched to curl
@Fronix commented
I'm using my nuget action under an organization and this is what's been working for us after many trial and errors.
@Airn5475 commented
I know this issue is closed, but I continue to see issues with the methods mentioned above. One time it works and then another time it doesn't. I am also working under and organization. This is SO Frustrating!
The text was updated successfully, but these errors were encountered: