LFS Authentification Required: Not authorized

1,293 views
Skip to first unread message

Lawrence Dubé

unread,
Oct 4, 2021, 12:16:45 PM10/4/21
to repo-d...@googlegroups.com
Gerrit version :  3.2.3
git-lfs : git-lfs/3.0.1 (GitHub; darwin amd64; go 1.17.1)

I get the following error when trying to clone a repository with LFS on a MacOS machine with one of our admin user, while there is another user that is able to clone the repository on his machine.

Error downloading object: [...]: Smudge error: Error downloading  [...]  : batch response: Authentication required: Not authorized to perform operation download on repository  [...]

In the error_log file I get
ERROR com.googlesource.gerrit.plugins.lfs.auth.LfsSshRequestAuthorizer : Invalid data was provided with auth token 5l5jcPhfwUSEm2WIv0+L6pt965HLQHP7uoR3vVNquMbyHGUvbnJehnPBdJnUbEZ3g4dPqsBBAgg0sWr+v7D+8+G24zmTWi8SYU6IelTsqhw=.

Any help would be appreciated.

Lawrence Dubé

unread,
Oct 4, 2021, 12:53:53 PM10/4/21
to repo-d...@googlegroups.com
Downgrading to git-lfs 2.13.3 fixed the issue.
Any plan on "fixing" gerrit lfs plug-in so that we can update git-lfs ? 
Currently git-lfs doesn't have 2.13.3 on Homebrew anymore, so I had to scp it from another machine...

Thomas Broyer

unread,
Oct 6, 2021, 1:28:18 PM10/6/21
to Repo and Gerrit Discussion
On Monday, October 4, 2021 at 6:53:53 PM UTC+2 ld...@audiokinetic.com wrote:
Any plan on "fixing" gerrit lfs plug-in so that we can update git-lfs ? 


(I also filed https://bugs.chromium.org/p/gerrit/issues/detail?id=15140 BTW about adding support for the new pure SSH-based protocol, but let's first get the HTTP transport fixed 😜)

Lawrence Dubé

unread,
Nov 19, 2021, 6:07:22 PM11/19/21
to Thomas Broyer, Repo and Gerrit Discussion
I looked at gerritforge to get a build for the git lfs fix, but the build is failing 
https://gerrit-ci.gerritforge.com/view/Plugins-stable-3.2/job/plugin-lfs-bazel-master-stable-3.2/41/console

Is it known? 

Thanks again!

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2c1e6105-7a4e-481f-9dc3-c608e3cc06fbn%40googlegroups.com.

tech....@gmail.com

unread,
Jul 10, 2024, 12:14:59 AM7/10/24
to Repo and Gerrit Discussion
On Saturday 20 November 2021 at 04:37:22 UTC+5:30 Lawrence Dubé wrote:
I looked at gerritforge to get a build for the git lfs fix, but the build is failing 
https://gerrit-ci.gerritforge.com/view/Plugins-stable-3.2/job/plugin-lfs-bazel-master-stable-3.2/41/console

Is it known? 

Thanks again!
Can anyone update, if LFS issue is fixed or not? if yes which version has the fix
Message has been deleted

cdesai

unread,
Jul 23, 2024, 4:24:07 PM7/23/24
to Repo and Gerrit Discussion
Updating the LFS plugin solved the issue.

cdesai

unread,
Jul 23, 2024, 4:42:07 PM7/23/24
to Repo and Gerrit Discussion
Nevermind, I spoke too soon. A gerrit restart helps until it breaks again :(

tech....@gmail.com

unread,
Aug 20, 2024, 2:27:06 AM8/20/24
to Repo and Gerrit Discussion
On Wednesday 24 July 2024 at 02:12:07 UTC+5:30 cdesai wrote:
Nevermind, I spoke too soon. A gerrit restart helps until it breaks again :(
Is there any permanent fix to this issue?
We cannot keep on restarting the service.
batch response: Authentication required: Not authorized to perform operation upload on repository vendor/google 

tech....@gmail.com

unread,
Aug 20, 2024, 2:30:32 AM8/20/24
to Repo and Gerrit Discussion
On Tuesday 20 August 2024 at 11:57:06 UTC+5:30 tech....@gmail.com wrote:
On Wednesday 24 July 2024 at 02:12:07 UTC+5:30 cdesai wrote:
Nevermind, I spoke too soon. A gerrit restart helps until it breaks again :(
Is there any permanent fix to this issue?
We cannot keep on restarting the service.
batch response: Authentication required: Not authorized to perform operation upload on repository vendor/google 
All of sudden when we do git push -f auth becomes to basic from none

Endpoint=https://androidhubtest.com/vendor/google.git/info/lfs (auth=basic)
  SSH=us...@androidhubtest.com:vendor/google

what is the way to keep auth to none forever ?
Reply all
Reply to author
Forward
0 new messages