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