Hi Everyone. I'm asking on behalf of someone who wishes to publish up a jar. A bit of background first, I've volunteered and tidied up this library <https://github.com/getsentry/sentry-clj>
. The original person who did it (employee of Sentry) has long left the company. I don't work for Sentry btw. Someone within Sentry is trying to now push up the jar (after requesting help from the Admins at Clojars to reclaim ownership of the repo). This person is now having difficultly uploading the jar (I'm trying to walk them through it). I can upload (via my own username), they can't.
They are getting Failed to transfer file: <https://clojars.org/repo/io/sentry/sentry-clj/3.1.0/sentry-clj-3.1.0.pom>. Return code is: 401, ReasonPhrase: Unauthorized.
THey are using their own username and they are using CLOJARS_
and apparently the token scope is set to *
Is their user a member of the io.sentry group on Clojars? I see brungarc
and sentry
as members: https://clojars.org/groups/io.sentry/
Is the token they are using created under their own clojars account?
Yes, I believe so (to the first question)
Checking for the second question
They created the token under their own account
I think they need to do this, right?
any artifact within a group you have access to ('group-name/*')
a new deploy token for the io.sentry group
I token with *
should be able to deploy to any group they are a member of. I'll ssh into the server and look at the logs to see if there is any more context there.
thank you
The log message is :invalid-token
, which means one of:
• the token itself is incorrect
• the token is for another user
• the token is disabled
See https://github.com/clojars/clojars-web/blob/main/src/clojars/auth.clj#L106-L116
Recommendation?
Regenerate a new token and try?
(going to try that)
If I query the db for tokens for brungarc
, it returns 0. So that would imply that they are using a token created for another user.
They need to create a token under their own account and use that. Or use the username of the account where the token was created (`sentry`?)
Thank you, I shall pass that along. Hopefully they can sort it 🙂
done! they were using the wrong username!!!
thank you @tcrawley
<https://clojars.org/io.sentry/sentry-clj>
in all it's glory
Great! Glad y'all figured it out. I do see that there is no link to the source though :( Lein auto-adds that to the pom.xml
- are y'all deploying with some other tool?
yes deps-deploy
I will fix it and do a MR
Baby steps 😉
Cool. It will require another release to update it on http://clojars.org, just FYI
I'll do it as a patch
thank you very much!
My pleasure!