Template Admin Error
Summary
Error 500 at /admin
Steps to reproduce
- Upgrade to latest version
- Click on admin dashboard
- Raise a 500 error
What is the current bug behavior?
Error 500: unable to load dashboard
What is the expected correct behavior?
Show the admin dashboard
Relevant logs
sudo gitlab-ctl tail
Relevant logs
==> /var/log/gitlab/gitlab-rails/production.log <== Completed 500 Internal Server Error in 1710ms (ActiveRecord: 93.8ms) ActionView::Template::Error (undefined method `becomes' for nil:NilClass): 174: %h4 Latest projects 175: - @projects.each do |project| 176: %p 177: = link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated-60' 178: %span.light.float-right 179: #{time_ago_with_tooltip(project.created_at)} 180: .col-md-4
Details of package version
Gitlab Community Edition on Debian 9 gitlab-ce 11.6.0-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis)
Environment details
- Operating System:
Debian 9 - Installation Target, remove incorrect values:
- VPS
- Installation Type, remove incorrect values:
- Upgrade from version
11.5
- Is there any other software running on the machine:
No - Is this a single or multiple node installation? Single
- Resources
- CPU:
8GB - Memory total:
200
- CPU:
Fixing it:
edit /opt/gitlab/embedded/service/gitlab-rails/app/views/admin/dashboard/index.html.haml
l.177 Replace
= link_to project.full_name, [:admin, project.namespace.becomes(Namespace), project], class: 'str-truncated-60'
by
= link_to project.full_name, [:admin, project.becomes(Namespace), project], class: 'str-truncated-60'
Edited by c24b