This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-27
Channels
- # aws-lambda (2)
- # babashka (22)
- # beginners (188)
- # calva (24)
- # cider (16)
- # clj-kondo (2)
- # cljfx (5)
- # clojars (15)
- # clojure (146)
- # clojure-czech (1)
- # clojure-europe (10)
- # clojure-france (3)
- # clojure-provo (1)
- # clojure-sweden (8)
- # clojure-uk (6)
- # clojurescript (28)
- # conjure (3)
- # core-logic (1)
- # cursive (13)
- # datahike (2)
- # datomic (18)
- # defnpodcast (2)
- # figwheel-main (2)
- # fulcro (1)
- # honeysql (4)
- # hoplon (21)
- # jobs (3)
- # jobs-rus (1)
- # kaocha (5)
- # off-topic (49)
- # pathom (86)
- # reagent (4)
- # remote-jobs (2)
- # ring (4)
- # schema (1)
- # shadow-cljs (40)
- # spacemacs (12)
- # sql (20)
- # startup-in-a-month (30)
- # xtdb (19)
Hi, what could be the reason for this deployment error?
Could not transfer metadata bract:bract.ring/maven-metadata.xml from/to clojars ( ): Access denied to:
Failed to deploy metadata: Could not transfer metadata bract:bract.ring/maven-metadata.xml from/to clojars ( ): Access denied to:
It happened repeatedly.seems an authorization issue
Is that the full output? From looking at the logs, it looks like you trying to deploy a version that clojars thinks already exists, and that should give you a message like redeploying non-snapshots is not allowed (see
, but it easily gets lost in the other noise from the client deploy machinery
@U06SGCEHJ Here’s the complete output:
lein do clean, deploy clojars
No credentials found for clojars
See `lein help deploying` for how to configure credentials to avoid prompts.
Username: kumarshantanu
Password:
Created /Users/shantanu/projects/oss/bract/bract.ring/target/bract.ring-0.6.2-0.2.0-beta1.jar
Wrote /Users/shantanu/projects/oss/bract/bract.ring/pom.xml
Need to sign 2 files with GPG
[1/2] Signing /Users/shantanu/projects/oss/bract/bract.ring/target/bract.ring-0.6.2-0.2.0-beta1.jar with GPG
gpg: using "E13B061A08D78F261752B1A90E6D91D347AB1843" as default secret key for signing
[2/2] Signing /Users/shantanu/projects/oss/bract/bract.ring/pom.xml with GPG
gpg: using "E13B061A08D78F261752B1A90E6D91D347AB1843" as default secret key for signing
Sending bract/bract.ring/0.6.2-0.2.0-beta1/bract.ring-0.6.2-0.2.0-beta1.jar (24k)
to
Sending bract/bract.ring/0.6.2-0.2.0-beta1/bract.ring-0.6.2-0.2.0-beta1.pom (4k)
to
Sending bract/bract.ring/0.6.2-0.2.0-beta1/bract.ring-0.6.2-0.2.0-beta1.jar.asc (1k)
to
Sending bract/bract.ring/0.6.2-0.2.0-beta1/bract.ring-0.6.2-0.2.0-beta1.pom.asc (1k)
to
Retrieving bract/bract.ring/maven-metadata.xml (1k)from
Sending bract/bract.ring/maven-metadata.xml (1k)to
Could not transfer metadata bract:bract.ring/maven-metadata.xml from/to clojars ( ): Access denied to:
Failed to deploy metadata: Could not transfer metadata bract:bract.ring/maven-metadata.xml from/to clojars ( ): Access denied to:
This particular (non-SNAPSHOT) version is not on Clojars.
Was that from the first deploy attempt or the subsequent ones? I can see the first deploy mostly succeeded, but then aborted due to a 500 error from S3. From looking at the code, it looks like that would leave it in a state where clojars thinks it is deployed, but it really isn't. Let me see what I can do.
The first deploy failed, then I retried few times that also failed.
That agrees with what I see in the logs. I would have expected all deploys after the first to tell you that you can't redeploy a non-snapshot. If it didn't show that, that's a bug.
@U06SGCEHJ Succeeded this time, thanks!
And just to be clear - you didn't see the "redeploying non-snapshots is not allowed" message on any of the deploy attempts?
No, I didn’t.
The JAR file size is 24KB.