gerrit lfs authentication issue

563 views
Skip to first unread message

will...@gmail.com

unread,
Oct 3, 2021, 7:11:59 PM10/3/21
to Repo and Gerrit Discussion
Hello,

We have gerrit (3.4.1) and lfs all working fine most of the time, but for one user on one machine it is not working (other users on the same machine work fine, as does the user on a different machine).

I realise this is probably a client side issue and perhaps I should be mailing the git lfs mailing list, but thought I'd try here first.

The repository is cloned via ssh but then it falls back to https to fetch the lfs files. When git tries to fetch the lfs files it returns the error:
Authentication required: Not authorized to perform operation download on repository

Looking in the gerrit logs I see:
ERROR com.googlesource.gerrit.plugins.lfs.auth.LfsSshRequestAuthorizer : Invalid data was provided with auth token ....(some token here)

Rerunning the git command with logging I think what is happening is:
- attempts to run ssh command git-lfs-transfer /repo/path download
- gerrit returns an error as not supported
- runs ssh command git-lfs-authenticate /repo/path download
- gerrit returns a temporary auth key to use via https
- does http post, including temporary auth key
- gerrit reports unauthorized

This is working fine for other machines/users.

What can be going wrong here? I feel it must be something local to the client but can't work it out. Anyone able to give me some pointers or give instructions on how to debug?

Thanks
Will

will...@gmail.com

unread,
Oct 4, 2021, 6:03:33 AM10/4/21
to Repo and Gerrit Discussion
Have managed to resolve the issue. The problem was git lfs 3.0.1 was not working, downgrading to 2.13.1 has fixed the issue
Reply all
Reply to author
Forward
0 new messages