Hi,
I’m running into an issue with cloning repos with both omnibus version 13.6.0 and 13.6.1.
On the user side from a git clone
I’m getting the following error;
“error: The requested URL returned error: 401 while accessing ($repo)”
On the GitLab’s side I’m getting the following error in /var/log/gitlab/gitlab-rails/production.log
;
($client_ip) at 2020-12-02 23:13:25 -0800
Processing by Repositories::GitHttpController#info_refs as /
Parameters: {“service”=>“git-upload-pack”, “namespace_id”=>“kab”, “repository_id”=>"($project).git"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 7ms (Views: 0.3ms | ActiveRecord: 1.5ms | Elasticsearch: 0.0ms | Allocations: 2520)
Started GET “/($repo_path) /info/refs?service=git-upload-pack” for ($server_ip) at 2020-12-02 23:13:25 -0800
Processing by Repositories::GitHttpController#info_refs as /
Parameters: {“service”=>“git-upload-pack”, “namespace_id”=>"($user)", “repository_id”=>"($repo).git"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 9ms (Views: 0.3ms | ActiveRecord: 2.5ms | Elasticsearch: 0.0ms | Allocations: 3150)
Started GET “/($repo_path).git/info/refs” for ($server_ip) at 2020-12-02 23:13:25 -0800
Processing by Repositories::GitHttpController#info_refs as /
Parameters: {“namespace_id”=>"($user)", “repository_id”=>"($repo.git)"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 10ms (Views: 0.3ms | ActiveRecord: 2.8ms | Elasticsearch: 0.0ms | Allocations: 3149)
Notes:
- I’ve made no configuration changes in many months, just upgrades as they are released.
- Running
reconfigure
or restarting the stack has no impact. - This problem doesn’t impact all clients. Some clients are able to clone with no issues. There are no common denominators I can find. Tried Git version, OS version, different users, different projects, and different ip ranges.
Any thoughts, suggestions, places to look ,etc are all appreciated.
Thanks.