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

[STAGE_FAILURE] Failed to promote the repository #282

Closed
MrPowers opened this issue Feb 8, 2022 · 2 comments
Closed

[STAGE_FAILURE] Failed to promote the repository #282

MrPowers opened this issue Feb 8, 2022 · 2 comments

Comments

@MrPowers
Copy link

MrPowers commented Feb 8, 2022

Describe the bug

I ran the command to deploy and it errored out. Now I'm trying to bump the version to version 1.1.0 and the old version version that didn't deploy correctly is still causing an error (version 1.0.1). Here's the abbreviated stack trace:

2022-02-08 12:01:39.435-0200 error [SonatypeClient] [promote] Failed  - (SonatypeClient.scala:182)
2022-02-08 12:01:39.435-0200 error [SonatypeClient] Activity name:release, started:2022-02-08T14:01:31.933Z, stopped:2022-02-08T14:01:37.172Z  - (SonatypeClient.scala:458)
2022-02-08 12:01:39.438-0200 error [SonatypeClient]     Failed: RepositoryWritePolicy, failureMessage:Artifact updating: Repository ='releases:Releases' does not allow updating artifact='/com/github/mrpowers/spark-daria_2.12/1.0.1/spark-daria_2.12-1.0.1-javadoc.jar'  - (SonatypeClient.scala:376)
2022-02-08 12:01:39.451-0200 error [Sonatype] [STAGE_FAILURE] Failed to promote the repository.  - (Sonatype.scala:440)

I get this error when running sbt sonatypeRelease.

How to reproduce the issue

Here's the repo. This errors out when running ; + publishSigned; sonatypeBundleRelease.

  • sbt version: 1.4.3
  • sbt-sonatype version: 3.9.10
  • Show your build settings:
$ sbt
> sonatypeProfileName
[info] com.github.mrpowers
> sonatypeRepository
[info] https://oss.sonatype.org/service/local
...

Additional context

I tried running sbt sonatypeClose and that errored out with "java.lang.IllegalStateException: No open repository is found. Run publishSigned first".

sbt sonatypeClean returns "info [SonatypeService] No previous staging repository for [sbt-sonatype] spark-daria 1.0.1 was found - (SonatypeService.scala:99)".

I ran sbt publishSigned and then ran sbt sonatypeClean, but that's still erroring out with "java.lang.IllegalStateException: No staging repository is found. Run publishSigned first".

Any additional suggestions?

@MrPowers
Copy link
Author

MrPowers commented Feb 9, 2022

Looks like sbt clean was able to fix it 🤦

Sorry for the false alarm!

@MrPowers MrPowers closed this as completed Feb 9, 2022
@xerial
Copy link
Owner

xerial commented Feb 9, 2022

No worries. It's good your problem was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants