After 11.x to 12.x upgrade, Project Details and Files pages give 500 error
Summary
After upgrading gitlab-ce to 12.0.X, loading certain projects in the Web ui results in a 500 error.
Steps to reproduce
After upgrade to 12.0.x, load the "Details" or "Files" page of a repository.
What is the current bug behavior?
"spinner" for a minute, then Server 500 error page.
What is the expected correct behavior?
Should see the Details or Files page of the repository.
Relevant logs
Relevant logs
From/var/log/gitlab/gitlab-rails/production_json.log: {"method":"GET","path":"/powershell/-sanitized-","format":"html","controller":"ProjectsController","action":"show","status":500,"error":"ActionView::Template::Error: PG::QueryCanceled: ERROR: canceling statement due to statement timeout\n: SELECT \"services\".* FROM \"services\" WHERE \"services\".\"project_id\" = 302 AND \"services\".\"category\" = 'ci' AND \"services\".\"active\" = 't' LIMIT 1","duration":60150.22,"view":0.0,"db":60056.04,"time":"2019-07-08T17:44:28.038Z","params":[{"key":"namespace_id","value":"powershell"},{"key":"id","value":"-sanitized-"}],"remote_ip":"-sanitized-","user_id":2,"username":"-sanitized-","ua":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36","queue_duration":null,"gitaly_calls":3,"gitaly_duration":5.75,"correlation_id":"cshLuDOS1K7"}
Details of package version
Provide the package version installation details
gitlab-ce-12.0.3-ce.0.el7.x86_64 gitlab-runner-12.0.2-1.x86_64
Environment details
- Operating System:
CentOS 7.6.1810
- Installation Target, remove incorrect values:
- VM: vSphere ESXi
- Installation Type, remove incorrect values:
- Upgrade from version
11.x
(was most recent 11.x version because of nightly yum-cron)
- Upgrade from version
- Is there any other software running on the machine:
no
- Is this a single or multiple node installation?: single-node
- Resources
- CPU:
4 vCPU
- Memory total:
6 GB
- CPU:
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
external_url 'https://-sanitized-' gitlab_rails['backup_keep_time'] = 604800 gitlab_rails['gitlab_default_projects_features_wiki'] = false gitlab_rails['gitlab_username_changing_enabled'] = false gitlab_rails['ldap_enabled'] = true gitlab_rails['ldap_servers'] = {"main"=>{"active_directory"=>true, "allow_username_or_email_login"=>false, "base"=>"", "bind_dn"=>"-sanitized-", "host"=>"-sanitized-", "label"=>"-sanitized-", "method"=>"ssl", "password"=>"-sanitized-", "port"=>636, "uid"=>"userPrincipalName", "user_filter"=>"(objectclass=user)"}} gitlab_rails['lfs_enabled'] = true gitlab_rails['time_zone'] = "America/Los_Angeles" nginx['redirect_http_to_https'] = true nginx['ssl_certificate'] = "/etc/gitlab/ssl/-sanitized-.crt" nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/-sanitized-.key" nginx['ssl_protocols'] = "TLSv1.2" prometheus['listen_address'] = "0.0.0.0:9090"
Edited by Tim