tijagi
tijagi

Reputation: 1244

Can’t connect to gitolite: gl-auth-command not found

$ git push
sh: /usr/bin/gl-auth-command: No such file or directory
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

gl-auth-command is called from ~/.ssh/authorized_keys, and is supposed to be in the gitolite repo under src/

I’ve pulled the last changes for gitolite repo successfully, but didn’t find any gl-auth-command in it.

git@home ~ $ find gitolite -iname "gl-auth*"
git@home ~ $ 

I’ve accomplished migration to v3 a month ago, and it worked back then. The logs in ~/.gitolite/logs/ have last messages about successful repo updates on September, 10th. Then something happened and users can’t log in since then. I have no idea what could it be, moreover, if it looks for gl-auth-command, that means that the ssh connection goes normal, so at least, it is not a network problem.

Upvotes: 2

Views: 2165

Answers (1)

VonC
VonC

Reputation: 1327034

the gitolite repo under src/

No, it should be in a bin folder after intalling gitolite.
And gl-auth-command seems to indicate an old gitolite 2, which is why you don't find it in the latest gitolite changes.

Redo a clean installation of the gitolite 3 (and regenerate your authorized_keys file: gitolite trigger POST_COMPILE)

Upvotes: 1

Related Questions