Error 500 clone / push / pull after version update in Gitlab CE
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
After successfully updating from version 12.10.14 to version 13.0.14 of Gitlab CE, I have checked the status of the service to verify that everything works correctly. I have launched the following commands to verify that everything is ok, not giving any error message that needs to be solved:
sudo -u git -H bundle exec rake gitlab: env: info RAILS_ENV = production
sudo -u git -H bundle exec rake gitlab: check RAILS_ENV = production
I verify that I correctly access the Gitlab GUI, that I can validate against the LDAP configuration that I have correctly configured from previous versions.
The last test I have done has been to create an empty project, and do clone, push and pull tests from the local machine to gitlab and vice versa. And here I have verified that it is giving me a 500 error.
The error gives me when doing a git clone on a project that I have created new to test:
@ tfhc6c03 MINGW64 ~ / Downloads / GITLAB-test
$ git clone https://www.mydomain.com/educacion/cau_ce/repositoriocodigo_pre/test/test2.git
Cloning into 'test2' ...
fatal: unable to access 'https://www.mydomain.com/educacion/cau_ce/repositoriocodigo_pre/test/test2.git/': The requested URL returned error: 500
I have checked the file “production.log” and here it shows the following trace:
Started GET "/educacion/cau_ce/repositoriocodigo_pre/test/test2.git/info/refs?service=git-upload-pack" for 10.140.214.139 at 2021-03-23 09:34:58 +0000
Processing by Repositories :: GitHttpController # info_refs as * / *
Parameters: {"service" => "git-upload-pack", "namespace_id" => "test", "repository_id" => "test2.git"}
Filter chain halted as: authenticate_user rendered or redirected
Completed 401 Unauthorized in 11ms (Views: 1.4ms | ActiveRecord: 1.7ms | Elasticsearch: 0.0ms | Allocations: 2558)
Started GET "/educacion/cau_ce/repositoriocodigo_pre/test/test2.git/info/refs?service=git-upload-pack" for 10.140.214.139 at 2021-03-23 09:34:58 +0000
Processing by Repositories :: GitHttpController # info_refs as * / *
Parameters: {"service" => "git-upload-pack", "namespace_id" => "test", "repository_id" => "test2.git"}
Completed 500 Internal Server Error in 83ms (ActiveRecord: 14.9ms | Elasticsearch: 0.0ms | Allocations: 23570)
NameError (uninitialized constant Gitlab :: Auth :: Ldap :: Authentication
Did you mean? Gitlab :: Auth :: AuthenticationError):
lib / gitlab / auth / o_auth / provider.rb: 21: in `authentication '
lib / gitlab / auth.rb: 86: in `block (2 levels) in find_with_user_password '
lib / gitlab / auth.rb: 85: in `block in find_with_user_password '
lib / gitlab / auth / unique_ips_limiter.rb: 19: in `limit_user! '
lib / gitlab / auth.rb: 74: in `find_with_user_password '
lib / gitlab / auth.rb: 159: in `user_with_password_for_git '
lib / gitlab / auth.rb: 53: in `find_for_git_client '
app / controllers / repositories / git_http_client_controller.rb: 106: in `handle_basic_authentication '
app / controllers / repositories / git_http_client_controller.rb: 39: in `authenticate_user '
lib / gitlab / request_profiler / middleware.rb: 17: in `call '
lib / gitlab / middleware / go.rb: 20: in `call '
lib / gitlab / etag_caching / middleware.rb: 13: in `call '
lib / gitlab / middleware / multipart.rb: 125: in `call '
lib / gitlab / middleware / read_only / controller.rb: 51: in `call '
lib / gitlab / middleware / read_only.rb: 18: in `call '
lib / gitlab / middleware / same_site_cookies.rb: 27: in `call '
lib / gitlab / middleware / basic_health_check.rb: 25: in `call '
lib / gitlab / middleware / request_context.rb: 23: in `call '
config / initializers / fix_local_cache_middleware.rb: 9: in `call '
lib / gitlab / metrics / requests_rack_middleware.rb: 60: in `call '
lib / gitlab / middleware / release_env.rb: 12: in `call '
Steps to reproduce
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.6.5p114
Gem Version: 3.0.3
Bundler Version:1.17.2
Rake Version: 12.3.3
Redis Version: 6.2.1
Git Version: 2.29.0
Sidekiq Version:5.2.7
Go Version: go1.13.5 linux/amd64
GitLab information
Version: 13.0.14
Revision: ad4adc9d0e1
Directory: /home/git/gitlab
DB Adapter: PostgreSQL
DB Version: 11.4
URL: https://www3.gobiernodecanarias.org/educacion/cau_ce/repositoriocodigo_pre
HTTP Clone URL: https://www3.gobiernodecanarias.org/educacion/cau_ce/repositoriocodigo_pre/some-group/some-project.git
SSH Clone URL: git@www3.gobiernodecanarias.org:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 13.2.0
Repository storage paths:
- default: /home/git/repositories
GitLab Shell path: /home/git/gitlab-shell
Git: /usr/local/bin/git
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)