clojars

http://clojars.org discussion and “support”, see http://status.clojars.org for status.
Captain Porcelain 2020-02-25T10:33:29.023900Z

Hello everyone, this might be a rather stupid question but I'm stuck on it. I'm trying to deploy a jar to clojars using deps-deploy. I've set my username and password as env variables as per requirement of deps-deploy. But I still receive an error 401 unauthorized. The username and password are correct, and at least the username is picked up by deps-deploy as I can see it in the logs. What can I do to figure out what is happening?

2020-02-26T11:20:29.028900Z

No worries, and my pleasure!

2020-02-25T11:36:22.024Z

I've never used deps-deploy, but just gave it a try and it worked for me:

$ env CLOJARS_USERNAME=tcrawley CLOJARS_PASSWORD=<redacted> clj -A:deploy
Deploying org.clojars.tcrawley/deploytest3-0.1.0-SNAPSHOT to clojars as tcrawley
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.
done.
I would confirm you have the correct env var name, and double check that the username and password are indeed correct. Does the password contain any characters that may be expanded by your shell? If so, try quoting it.

Captain Porcelain 2020-02-25T11:49:54.024300Z

Thanks for checking. I had copied the password from the env variable to the login form and was able to login. It doesn't contain and special chars that can be expanded.

Captain Porcelain 2020-02-25T11:50:48.024500Z

But I've changed my password and can't login anymore. So I'll have to reset it before I can test further.

Captain Porcelain 2020-02-25T11:51:09.024700Z

Do you know if one is locked out of ones account after a couple of failed logins?

Captain Porcelain 2020-02-25T11:55:54.024900Z

Hmm, I don't receive and passwort reset email when I enter my username, but I do when I enter my email. After the reset I still can't login. I guess I messed this up somehow...

Captain Porcelain 2020-02-25T11:58:07.025100Z

I've just created a new account captainporcelain instead of captain-porcelain and with that I can login and deploy my jar. So I guess the issue lies with the dash in my initial username.

2020-02-25T11:58:48.025300Z

We don't lock accounts due to failed logins. Does the login in the password reset email match what you expect?

2020-02-25T11:59:06.025500Z

oh, interesting.

Captain Porcelain 2020-02-25T11:59:18.025700Z

yes it did.

2020-02-25T11:59:23.025900Z

I'm trying to think why a dash would matter

2020-02-25T11:59:39.026100Z

but it's possible we have a bug there somewhere

Captain Porcelain 2020-02-25T12:00:27.026300Z

I guess it's relevant, that my initial group of org.clojars.captain-porcelain is listed in my new account too.

2020-02-25T12:03:05.026500Z

I can see in the nginx logs the 401s for captain-porcelain, and the name there is correct. But that name is just being pulled from the basic auth, so before it gets to the clojars application.

2020-02-25T12:03:22.026700Z

Do you also see org.clojars.captainporcelain as a group under the new account?

2020-02-25T12:03:49.026900Z

Because having access to the - version really feels like a bug and a security hole

Captain Porcelain 2020-02-25T12:05:59.027100Z

Yes I can see both.

Captain Porcelain 2020-02-25T12:07:05.027300Z

It may have been created by the jar I've uploaded. I've used it in the pom and didn't change it to the version without - before uploading.

Captain Porcelain 2020-02-25T12:49:26.027600Z

Is there a way to delete my first account (captain-porcelain)?

Captain Porcelain 2020-02-25T12:50:05.027800Z

Anyways, thank you very much for your help 😃