Fork me on GitHub
#clojars
<
2022-07-12
>
genmeblog10:07:26

Trying to deploy a snapshot with lein deploy clojars and the last step fails.

$ lein deploy clojars
[...]
Sending org/scicloj/wadogo/maven-metadata.xml (1k)
    to 
Could not transfer metadata org.scicloj:wadogo/maven-metadata.xml from/to clojars (): Transfer failed for 
Failed to deploy metadata: Could not transfer metadata org.scicloj:wadogo/maven-metadata.xml from/to clojars (): Transfer failed for 
Libarary is uploaded and can be downloaded so it looks harmless. However it never happened before. Any idea what's going on here?

tcrawley11:07:54

Looking in the server logs, I don't see any errors or failures for that file (I do see successful uploads), so I'm not sure what happened. Maybe a network blip?

genmeblog11:07:51

Thanks. Maybe. I repeated it several times with the same effect. I'll try it again later.

tcrawley11:07:57

Hmm. What version of lein are you using?

genmeblog11:07:09

Leiningen 2.9.8 on Java 18-ea OpenJDK 64-Bit Server VM

genmeblog11:07:33

Tried it again and it's the same (see full log):

$ lein deploy clojars
Warning: profile :dev-codox not found.
If there are a lot of uncached dependencies this might take a while ...
Created /home/tsl/clojure/wadogo/target/wadogo-1.0.0-SNAPSHOT.jar
Wrote /home/tsl/clojure/wadogo/pom.xml
Retrieving org/scicloj/wadogo/1.0.0-SNAPSHOT/maven-metadata.xml (1k)
    from 
Sending org/scicloj/wadogo/1.0.0-SNAPSHOT/wadogo-1.0.0-20220712.112439-8.jar (30k)
    to 
Sending org/scicloj/wadogo/1.0.0-SNAPSHOT/wadogo-1.0.0-20220712.112439-8.pom (19k)
    to 
Retrieving org/scicloj/wadogo/maven-metadata.xml (1k)
    from 
Sending org/scicloj/wadogo/1.0.0-SNAPSHOT/maven-metadata.xml (1k)
    to 
Sending org/scicloj/wadogo/maven-metadata.xml (1k)
    to 
Could not transfer metadata org.scicloj:wadogo/maven-metadata.xml from/to clojars (): Transfer failed for 
Failed to deploy metadata: Could not transfer metadata org.scicloj:wadogo/maven-metadata.xml from/to clojars (): Transfer failed for 

genmeblog11:07:07

Ok, something is wrong with wadogo project, the other snapshot project was fully deployed (without the error at the end)

tcrawley11:07:43

Here is what I see for the deploy you just tried:

::ffff:172.31.6.204 - generateme [12/Jul/2022:11:25:11 +0000] "PUT /repo/org/scicloj/wadogo/maven-metadata.xml HTTP/1.1" 201 5 "-" "Leiningen/2.9.8 (Java OpenJDK 64-Bit Server VM; Linux 5.10.102.1-microsoft-standard-WSL2; amd64)"
and
2022-07-12 11:25:11,558 [qtp28515490-79360] INFO  clojars.routes.repo | {:group "org.scicloj", :username "generateme", :headers ["x-timer" "x-forwarded-host" "fastly-orig-accept-encoding" "host" "user-agent" "cookie" "content-length" "x-forwarded-port" "x-varnish" "connection" "pragma" "fastly-client-ip" "authorization" "fastly-ff" "x-amzn-trace-id" "fastly-ssl" "x-forwarded-for" "accept-encoding" "x-forwarded-proto" "cache-store" "x-forwarded-server" "cache-control" "cdn-loop"], :trace-id #uuid "1ebbfda4-1576-49b2-938c-e1ff2b737f07", :status :success, :timestamp-version nil, :artifact "wadogo", :uri "/repo/org/scicloj/wadogo/maven-metadata.xml", :tag :upload, :version nil, :request-method :put}

tcrawley11:07:12

But it is going through fastly, and I don't have easy access to those logs. I can try purging that file from the fastly cache and see if that helps.

tcrawley11:07:20

It's frustrating that aether doesn't tell you if a get or put failed since it uses the same message for either failure:

Failed to deploy metadata: Could not transfer metadata org.scicloj:wadogo/maven-metadata.xml from/to clojars

tcrawley11:07:49

it may be successfully putting, then failing to get that file. I'll purge now.

tcrawley11:07:18

Okay, purged. Would you mind trying again?

genmeblog11:07:09

Sure. Give me a minute.

genmeblog11:07:19

Did it again, and the same result 😕

tcrawley12:07:28

This is really odd. The metadata file has the correct lastUpdated value (from https://repo.clojars.org/org/scicloj/wadogo/maven-metadata.xml):

<metadata>
<groupId>org.scicloj</groupId>
<artifactId>wadogo</artifactId>
<versioning>
<versions>
<version>0.1.0-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>
</versions>
<lastUpdated>20220712115444</lastUpdated>
</versioning>
</metadata>

tcrawley12:07:54

Do you see the same thing when you access that file? (asking because I'm assuming you'll hit a different fastly node)

genmeblog12:07:20

Yes, it's the same.

tcrawley12:07:44

I'm baffled.

genmeblog12:07:56

Me too... It has happened first time on this repo (and ever).

genmeblog16:08:35

Deployed today and above issue has vanished.