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

we're trying to release 1.1.2 but tag-based publishing is failing #194

Closed
SethTisue opened this issue Apr 5, 2019 · 13 comments
Closed

we're trying to release 1.1.2 but tag-based publishing is failing #194

SethTisue opened this issue Apr 5, 2019 · 13 comments

Comments

@SethTisue
Copy link
Member

SethTisue commented Apr 5, 2019

v1.1.2 tag was pushed by @Philippus, https://github.com/scala/scala-parser-combinators/releases/tag/v1.1.2

but at https://travis-ci.org/scala/scala-parser-combinators/builds/516214537 we see

[error] Unable to find credentials for [Sonatype Nexus Repository Manager @ oss.sonatype.org].
[warn] CLIENT ERROR: 401 Unauthorized. Check your resolvers username and password.
[error] Unable to find credentials for [Sonatype Nexus Repository Manager @ oss.sonatype.org].
[error] java.io.IOException: Access to URL https://oss.sonatype.org/service/local/staging/deploy/maven2/org/scala-lang/modules/scala-parser-combinators_2.12/1.1.2/scala-parser-combinators_2.12-1.1.2-sources.jar.asc was refused by the server: Unauthorized
@SethTisue
Copy link
Member Author

Adriaan Moors [17 minutes ago]
huh, any idea of what happened? I looked at the script and it looks fine to me

Seth Tisue [14 minutes ago]
I don't have a guess yet. I'm only starting to investigate now.

Seth Tisue [13 minutes ago]
we upgraded to sbt 1 since the last release, so maybe

-addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3") // only added when publishing, see build.sh
+addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1") // only added when publishing, see build.sh```

is the culprit somehow

Seth Tisue [12 minutes ago]
scala-parallel-collections published okay from sbt 1

Seth Tisue [11 minutes ago]
scala/scala-parallel-collections@633a226 is the same as what scala-parser-combinators has afaict

eugene yokota [9 minutes ago]
do you use access token for Sonatype OSS? (edited)

eugene yokota [9 minutes ago]
because they changed the user name recently, I think

Seth Tisue [7 minutes ago]
encrypted username/password https://github.com/scala/scala-parser-combinators/blob/1.1.x/.travis.yml#L13-L20

eugene yokota [7 minutes ago]
yea it says 4 years ago

eugene yokota [7 minutes ago]
so you might want to check https://oss.sonatype.org/#profile;User%20Token

eugene yokota [6 minutes ago]
it used to be the same as Sonatype login name, but I recently noticed that the user name for the access token has changed

Seth Tisue [6 minutes ago]
that sounds like a good tip. I set up scala-parallel-collections in March 2017, so that could be the difference I guess. I will try regenerating that stuff

Seth Tisue [4 minutes ago]
I don't see anything about tokens at https://oss.sonatype.org/#profile;Summary

Seth Tisue [4 minutes ago]
I'm logged as the lamp user which is what we use for this stuff

eugene yokota [4 minutes ago]
there's a weird pull down menu

eugene yokota [4 minutes ago]
it should say "Summary"

Seth Tisue [4 minutes ago]
yeah and there are no other choices on the menu

eugene yokota [4 minutes ago]
mine shows "Summary" and "User Token"

Seth Tisue [3 minutes ago]
I'll just redo what I did for scala-parallel-collections, seems highly likely that will fix it

SethTisue added a commit that referenced this issue Apr 5, 2019
references #194. let's see if this fixes it
@SethTisue
Copy link
Member Author

the admin/build.sh differences between the scala-parallel-collections repo and this one are confusing. so I'm first trying changing nothing except re-encrypting SONA_USER and SONA_PASS (in c3d56e5)

I pushed the test tag v1.1.2-TEST1 which is building at https://travis-ci.org/scala/scala-parser-combinators/builds/516338173

hmm, no improvement

[error] Unable to find credentials for [Sonatype Nexus Repository Manager @ oss.sonatype.org].
[warn] CLIENT ERROR: 401 Unauthorized. Check your resolvers username and password.
[error] Unable to find credentials for [Sonatype Nexus Repository Manager @ oss.sonatype.org].
[error] java.io.IOException: Access to URL https://oss.sonatype.org/service/local/staging/deploy/maven2/org/scala-lang/modules/scala-parser-combinators_2.13.0-RC1/1.1.2-TEST1/scala-parser-combinators_2.13.0-RC1-1.1.2-TEST1-sources.jar.asc was refused by the server: Unauthorized
[error] 	at org.apache.ivy.util.url.AbstractURLHandler.validatePutStatusCode(AbstractURLHandler.java:79)
[error] 	at sbt.internal.librarymanagement.ivyint.GigahorseUrlHandler.upload(GigahorseUrlHandler.scala:191)

SethTisue added a commit that referenced this issue Apr 5, 2019
@SethTisue
Copy link
Member Author

admin/build.sh is rather different in this repo from the scala-parallel-collections one, our admin/build.sh is modeled on scala-xml's

scala-xml published successfully today, so maybe I can look into what might be different there

@SethTisue
Copy link
Member Author

I must have merged #190 without actually trying it. gah

@SethTisue
Copy link
Member Author

scala-xml published successfully today, so maybe I can look into what might be different there

gah, but scala-xml is still on sbt 0.13.x

@SethTisue
Copy link
Member Author

idk though, I just don't understand why SONATYPE_USER and SONATYPE_PASSWORD stuff would be affected by any of these other changes

@eed3si9n
Copy link
Member

eed3si9n commented Apr 5, 2019

Here's my take - #196

@SethTisue
Copy link
Member Author

I'm doing a test on the v1.1.2-TEST4 tag now, I think the combination of #195 and #196 might do the trick

@SethTisue
Copy link
Member Author

(I think it's #174 that was never tested)

@SethTisue
Copy link
Member Author

[info] published scala-parser-combinators_2.12 to https://oss.sonatype.org/service/local/staging/deploy/maven2/org/scala-lang/modules/scala-parser-combinators_2.12/1.1.2/scala-parser-combinators_2.12-1.1.2-sources.jar.asc

🎉 💯 🍺 🍾

@eed3si9n
Copy link
Member

eed3si9n commented Apr 5, 2019

Nice.

@Philippus
Copy link
Member

good sleuthing everyone!

@SethTisue
Copy link
Member Author

being a module maintainer's tons of fun, we promise!

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

3 participants