This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-12
Channels
- # aleph (5)
- # announcements (1)
- # asami (29)
- # babashka (2)
- # beginners (36)
- # biff (1)
- # cider (6)
- # clj-kondo (29)
- # clj-together (5)
- # clojars (21)
- # clojure (11)
- # clojure-austin (5)
- # clojure-czech (1)
- # clojure-europe (23)
- # clojure-hk (1)
- # clojure-italy (1)
- # clojure-nl (1)
- # clojure-uk (1)
- # clojurescript (38)
- # clojurewerkz (1)
- # cursive (10)
- # data-science (2)
- # datalevin (15)
- # datomic (8)
- # duct (5)
- # emacs (36)
- # events (4)
- # fulcro (7)
- # garden (1)
- # gratitude (1)
- # interop (4)
- # introduce-yourself (1)
- # leiningen (1)
- # missionary (3)
- # music (3)
- # nbb (4)
- # off-topic (21)
- # polylith (6)
- # remote-jobs (5)
- # shadow-cljs (19)
- # specter (4)
- # xtdb (4)
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?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?
Thanks. Maybe. I repeated it several times with the same effect. I'll try it again later.
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
Ok, something is wrong with wadogo
project, the other snapshot project was fully deployed (without the error at the end)
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}
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.
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
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>