Clojars deployment failing

205 views
Skip to first unread message

Aaron D.

unread,
Feb 17, 2020, 12:25:49 AM2/17/20
to Clojure
My gpg creds are as usual (and verified) and I'm deploying in standard fashion but my last attempt at lein deploy fails with 400/Bad Request at the very ened trying  to retrieve maven-metadata.xml -- is anyone / has anyone seen this? My last deploy was 10 days ago...

The log to error:

Created /code/thurber/target/thurber-0.0.3-alpha5-SNAPSHOT.jar
Wrote /code/thurber/pom.xml
Could not find metadata com.github.atdixon:thurber:0.0.3-alpha5-SNAPSHOT/maven-metadata.xml in snapshots (https://repo.clojars.org)
Sending com/github/atdixon/thurber/0.0.3-alpha5-SNAPSHOT/thurber-0.0.3-alpha5-20200217.002121-1.jar (52k)
Sending com/github/atdixon/thurber/0.0.3-alpha5-SNAPSHOT/thurber-0.0.3-alpha5-20200217.002121-1.pom (4k)
Could not transfer metadata com.github.atdixon:thurber/maven-metadata.xml from/to snapshots (https://repo.clojars.org): Failed to transfer file: https://repo.clojars.org/com/github/atdixon/thurber/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.
Failed to retrieve remote metadata com.github.atdixon:thurber/maven-metadata.xml: Could not transfer metadata com.github.atdixon:thurber/maven-metadata.xml from/to snapshots (https://repo.clojars.org): Failed to transfer file: https://repo.clojars.org/com/github/atdixon/thurber/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.

Aaron Dixon

unread,
Feb 17, 2020, 12:37:57 AM2/17/20
to clo...@googlegroups.com
update, I disabled :checksum checking for clojars and was able to get a release thru.

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/0xEg6HewEgM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/f4773905-5ded-4da1-ba5e-872b0fc925d4%40googlegroups.com.

Toby Crawley

unread,
Feb 20, 2020, 1:15:44 AM2/20/20
to clo...@googlegroups.com
Howdy Aaron:

We've had a report from another user on Slack of this same issue, but
I haven't been able to recreate it.

What do you mean by "I disabled :checksum checking for clojars"?

What version of java are you using? What is the output of java -version?

Thanks!
- Toby

--
"Arrogance is quoting yourself." - Toby Crawley
"Ignorance is quoting others." - Aaron T. Dixon
> You received this message because you are subscribed to the Google Groups "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAFahMUqiPBxHVbZeQGw4B1iHQQyvj7Z2hLb75ejfKf4VmbJpJg%40mail.gmail.com.

Toby Crawley

unread,
Feb 20, 2020, 1:25:13 AM2/20/20
to clo...@googlegroups.com
Also, what version of lein are you using? What is the output of `lein version`?

Aaron D.

unread,
Feb 20, 2020, 4:24:47 AM2/20/20
to Clojure
Hey Toby 

> What do you mean by "I disabled :checksum checking for clojars"?

I added `:checksum :ignore` to :repositories in profile.clj -- per lein example here

> $ lein version
Leiningen 2.9.1 on Java 1.8.0_181 Java HotSpot(TM) 64-Bit Server VM

I tried another release just now (without the checksum config) and am able to reproduce the failure -- you can see that the release/deploy is successful in transferring the signed jar artifacts but the final failure is something to do with checking the checksum of maven-metadata.xml (see output log below).

Let me know if I can help anyway -- by running release attempts or what-have-you .. will try to jump on slack and sync up there

$ lein release :alpha
[master 19022c5] Version 0.0.3-alpha8
 1 file changed, 1 insertion(+), 1 deletion(-)
Compiling 16 source files to /Users/atdixon/_work/code-sandbox/thurber/target/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Created /Users/atdixon/_work/code-sandbox/thurber/target/thurber-0.0.3-alpha8.jar
Wrote /Users/atdixon/_work/code-sandbox/thurber/pom.xml
Need to sign 2 files with GPG
[1/2] Signing /Users/atdixon/_work/code-sandbox/thurber/target/thurber-0.0.3-alpha8.jar with GPG
[2/2] Signing /Users/atdixon/_work/code-sandbox/thurber/pom.xml with GPG
Sending com/github/atdixon/thurber/0.0.3-alpha8/thurber-0.0.3-alpha8.jar (52k)
Sending com/github/atdixon/thurber/0.0.3-alpha8/thurber-0.0.3-alpha8.pom (4k)
Sending com/github/atdixon/thurber/0.0.3-alpha8/thurber-0.0.3-alpha8.jar.asc (1k)
Sending com/github/atdixon/thurber/0.0.3-alpha8/thurber-0.0.3-alpha8.pom.asc (1k)
Could not transfer metadata com.github.atdixon:thurber/maven-metadata.xml from/to releases (https://repo.clojars.org): Failed to transfer file: https://repo.clojars.org/com/github/atdixon/thurber/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.
Failed to retrieve remote metadata com.github.atdixon:thurber/maven-metadata.xml: Could not transfer metadata com.github.atdixon:thurber/maven-metadata.xml from/to releases (https://repo.clojars.org): Failed to transfer file: https://repo.clojars.org/com/github/atdixon/thurber/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.

On Sunday, February 16, 2020 at 6:25:49 PM UTC-6, Aaron D. wrote:
My gpg creds are as usual (and verified) and I'm deploying in standard fashion but my last attempt at lein deploy fails with 400/Bad Request at the very ened trying  to retrieve maven-metadata.xml -- is anyone / has anyone seen this? My last deploy was 10 days ago...

The log to error:

Created /code/thurber/target/thurber-0.0.3-alpha5-SNAPSHOT.jar
Wrote /code/thurber/pom.xml
Could not find metadata com.github.atdixon:thurber:0.0.3-alpha5-SNAPSHOT/maven-metadata.xml in snapshots (https://repo.clojars.org)
Sending com/github/atdixon/thurber/0.0.3-alpha5-SNAPSHOT/thurber-0.0.3-alpha5-20200217.002121-1.jar (52k)
Sending com/github/atdixon/thurber/0.0.3-alpha5-SNAPSHOT/thurber-0.0.3-alpha5-20200217.002121-1.pom (4k)
Could not transfer metadata com.github.atdixon:thurber/maven-metadata.xml from/to snapshots (https://repo.clojars.org): Failed to transfer file: https://repo.clojars.org/com/github/atdixon/thurber/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.
Failed to retrieve remote metadata com.github.atdixon:thurber/maven-metadata.xml: Could not transfer metadata com.github.atdixon:thurber/maven-metadata.xml from/to snapshots (https://repo.clojars.org): Failed to transfer file: https://repo.clojars.org/com/github/atdixon/thurber/maven-metadata.xml. Return code is: 400 , ReasonPhrase:Bad Request.


> >> For more options, visit this group at
> >> http://groups.google.com/group/clojure?hl=en
> >> ---
> >> You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
> >> To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/0xEg6HewEgM/unsubscribe.
> >> To unsubscribe from this group and all its topics, send an email to clo...@googlegroups.com.
> >> To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/f4773905-5ded-4da1-ba5e-872b0fc925d4%40googlegroups.com.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clo...@googlegroups.com
> > Note that posts from new members are moderated - please be patient with your first post.
> > To unsubscribe from this group, send email to
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to clo...@googlegroups.com.

Aaron D.

unread,
Feb 20, 2020, 4:40:32 AM2/20/20
to Clojure
Whelp -- Just another data point -- I got two releases through just now successfully. So this is intermittent or something was fixed.

Alan Thompson

unread,
Feb 20, 2020, 11:52:21 AM2/20/20
to clojure
I just did a `lein deploy clojars` and it worked fine.
Alan



For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/f7167f72-a162-4b7e-8b7c-7bd6ea9a38f1%40googlegroups.com.

Toby Crawley

unread,
Feb 22, 2020, 5:21:45 PM2/22/20
to clo...@googlegroups.com
Just to follow up on this: we still haven't been able to figure out
the cause, but have collected some data at
https://github.com/clojars/clojars-web/issues/744. If other folks are
experiencing the issue, plus let us know on that issue or in #clojars
on the Clojurians slack.

- Toby
> To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/CAN67zA04ad%2BRF1ocGofnm44BrKAjCs-%3Dd6uwyZJ%3Dz0%3DjNfimYg%40mail.gmail.com.

Toby Crawley

unread,
Feb 23, 2020, 12:12:48 AM2/23/20
to clo...@googlegroups.com
A further followup - we believe we have resolved the issue. Please see
https://github.com/clojars/clojars-web/issues/744 for the details, and
please comment there if you are still seeing issues with 400 Bad
Request responses when deploying.

I'd like to thank Aaron Dixon, Ambrose Bonnaire-Sergeant, and Benito
Gonzalez for their patience and assistance in debugging this issue.

- Toby

Aaron D.

unread,
Feb 23, 2020, 9:57:14 PM2/23/20
to Clojure
Thanks for working on this Toby and for the detailed post-mortem. Looks like that one was a tricky tackle. 
> >> To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/f7167f72-a162-4b7e-8b7c-7bd6ea9a38f1%40googlegroups.com.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clo...@googlegroups.com
> > Note that posts from new members are moderated - please be patient with your first post.
> > To unsubscribe from this group, send email to
> > clo...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/clojure?hl=en
> > ---
> > You received this message because you are subscribed to the Google Groups "Clojure" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to clo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages