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

Maven release process fails randomly when trying to push to sonatype #845

Closed
markpatton opened this issue Nov 29, 2023 · 1 comment · Fixed by eclipse-pass/pass-core#73 or eclipse-pass/pass-support#78
Assignees
Milestone

Comments

@markpatton
Copy link
Contributor

markpatton commented Nov 29, 2023

Error in logs releasing pass-core:

Error: [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project pass-core-main: 
Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy failed: A message body reader for Java class
 com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and Java type class 
com.sonatype.nexus.staging.api.dto.StagingProfileRepositoryDTO, and MIME media type text/html was not found -> [Help 1]

This happens after

[INFO] [INFO]  * Closing staging repository with ID "orgeclipsepass-1046".
[INFO] 
[INFO] Waiting for operation to complete...
[INFO] ..................
[INFO] 
[INFO] [INFO] Remote staged 1 repositories, finished with success.
[INFO] [INFO] Remote staging repositories are being released...
[INFO] 
[INFO] Waiting for operation to complete...

Also note that despite the above failure, in every case the deployment to maven central has succeeded.

These issues seem to be the same:

@markpatton markpatton converted this from a draft issue Nov 29, 2023
@markpatton markpatton added this to the 1.3.0 milestone Nov 29, 2023
@markpatton markpatton moved this from Ready for Development to In Progress in Eclipse PASS Nov 30, 2023
@markpatton markpatton self-assigned this Nov 30, 2023
@markpatton
Copy link
Contributor Author

markpatton commented Nov 30, 2023

As can be see from the first issue linked https://issues.sonatype.org/browse/OSSRH-51097, this is still happening to folks now. It is caused by heave load on there servers.

I spent a bunch of time digging into the source code. The maven plugin uses the Nexus 2 branch of https://github.com/sonatype/nexus-public. The REST API is based on Jersey. I wanted to see if the interactions could be made more reliable, but the interactions are buried in various abstractions. There are some timeouts that could be increased. See https://help.sonatype.com/repomanager2/staging-releases/configuring-your-project-for-deployment.
We should try setting stagingProgressTimeoutMinutes to something like 10 minutes, the default is 5.

One way to make things better is having the release process be able to be easily restarted.

@markpatton markpatton moved this from In Progress to Peer Review/QA in Eclipse PASS Dec 19, 2023
@github-project-automation github-project-automation bot moved this from Peer Review/QA to Done in Eclipse PASS Dec 20, 2023
@dkriethof dkriethof moved this from Done to Deployed in Eclipse PASS Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
1 participant