-
Notifications
You must be signed in to change notification settings - Fork 29
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
Task initializeSonatypeStagingRepository
fails when using gradle-setup
action
#347
Comments
I got the same error, but I think that has to do with Sonatype changing its authentication system. Did you check that you can still login on https://oss.sonatype.org/? Did you try to generate a new user token? |
I would also recommend generating the new token. Some other people were reporting the similar problem on the Sonatype mailing list recently. |
Thanks for the quick answers. I should have precised that I managed to publish a few minutes after receving the 403 error by using back the "gradle-build-action". A sonatype login could look coherent indeed, yet it seems that it doesn't match in my case:
Seems like something weird happens with caching, but I'm having a hard time understanding what that could be: maybe definitely an issue for the gradle setup action. |
I'm getting errors too, but 401s now. Any news on this? |
@joffrey-bion Is this still happening after 12-24 hours? |
Yes, the first occurrence was about 4 days ago, and I'm still facing the issue in multiple repositories. For example: https://github.com/joffrey-bion/socketio-kotlin/actions/workflows/release.yml The latest build scan: |
Have you re-generated your Nexus token (and updated in in GH)? |
Yes, sorry not to have mentioned this more clearly. I generated a new token and updated my repo secrets with it (a while back, a few days ago, and again yesterday), to no avail. FTR, I'm also using the |
It looks like for some repos the failure correlates with the upgrade to Gradle 8.10, but that might be a red herring, because at least one of my repos could publish fine with Gradle 8.10 and setup-gradle v4. |
Ok sorry for the noise about this, the 401s were caused because of an unfortunate naming of secrets, and I had swapped the username and password. All good now. |
@joffrey-bion Thanks for the update! @nsenave Have you manager to solve the problem with your repo? |
Situation didn't change for me since my last comment, I'll give it another try and keep you informed. |
Same issue happened with me; I'm sure that all my secrets are correct! the 401 status code https://github.com/OneBusAway/kotlin-sdk/actions/runs/11241615588/job/31254075229 Do you guys generate tokens from here? |
No that's for the new Publisher Api. I think you probably still need to generate your token for OSSRH in the Nexus: You can log in in the top right (with the same credentials as for central.sonatype.com), then click on your logged in username in the same place, and open your Profile. |
Hi, thanks for your plugin which helps a lot.
I use the plugin in a GitHub workflow which can be summarized like this:
Works fine.
I've recently replaced
gradle/gradle-build-action@v3
(which is deprecated) withgradle/actions/setup-gradle@v3
.Then, I have this error:
Gradle wrapper version used: 8.6
Actions
gradle-build-action
andactions/setup-gradle
are supposed to be functionally identical, so it might be an issue on their side in the end.Yet, I thought you might have an idea / ways to reproduce the bug and diagnose why the error happens.
The text was updated successfully, but these errors were encountered: