Open nsenave opened 3 months ago
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:
gradle-build-action@v3
in the workflow)actions/setup-gradle@v3
)gradle-build-action@v3
back: publication succeededSeems 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 https://github.com/joffrey-bion/chrome-devtools-kotlin/actions/workflows/release.yml
The latest build scan: https://gradle.com/s/hu4rt37gjoa2o
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 setup-gradle
action (v4 now), but the failure doesn't seem to correlate with the version change, nor the use of setup-gradle
for me. I wonder if this could be some kind of caching issue.
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?
https://central.sonatype.com/account
@joffrey-bion
Do you guys generate tokens from here? https://central.sonatype.com/account
No that's for the new Publisher Api. I think you probably still need to generate your token for OSSRH in the Nexus: https://oss.sonatype.org/#welcome
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.
Then, change the drop down (just below the tab headers) from Summary
to User Token
.
From there, you can regenerate a new token for the "old way" of publishing.
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.