clojars

Shantanu Kumar 2021-01-27T18:34:06.000200Z

@kumarshantanu has joined the channel

Shantanu Kumar 2021-01-27T18:35:15.000900Z

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.

wilkerlucio 2021-01-27T18:44:51.001600Z

seems an authorization issue

2021-01-27T19:04:41.002Z

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

Shantanu Kumar 2021-01-27T19:08:55.002200Z

@tcrawley 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: 

Shantanu Kumar 2021-01-27T19:10:18.002400Z

This particular (non-SNAPSHOT) version is not on Clojars.

2021-01-27T19:11:48.002600Z

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.

Shantanu Kumar 2021-01-27T19:12:34.002800Z

The first deploy failed, then I retried few times that also failed.

2021-01-27T19:13:21.003Z

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.

2021-01-27T19:15:39.003200Z

I made a change on the server, can you try again now?

Shantanu Kumar 2021-01-27T19:17:01.003400Z

@tcrawley Succeeded this time, thanks!

2021-01-27T19:17:24.003600Z

Great! My pleasure!

2021-01-27T19:18:12.003800Z

And just to be clear - you didn't see the "redeploying non-snapshots is not allowed" message on any of the deploy attempts?

Shantanu Kumar 2021-01-27T19:27:17.004Z

No, I didn’t.

2021-01-27T19:27:46.004200Z

Thanks for confirming, I'll create an issue for that and investigate it further.

👍🏽 1
Shantanu Kumar 2021-01-27T18:36:07.001300Z

The JAR file size is 24KB.