error 500 when accessing a project's CI/CD settings
Good afternoon,
Summary
On a specific project of our gitlab CE instance, trying to access the CI / CD settings results in a HTTP 500 error. The issue is specific to this project. We can access other project's settings fine.
Steps to reproduce
While logged in, try to access https://xxxx/{{ project_path }}/settings/ci_cd
What is the current bug behavior?
The user gets an error page (HTTP 500)
What is the expected correct behavior?
The user should access the CI/CD settings
Relevant logs and/or screenshots
Processing by Projects::Settings::CiCdController#show as HTML
Parameters: {"namespace_id"=>"{{ project_path }}", "project_id"=>"{{ project_id }}"}
Completed 200 OK in 127ms (Views: 0.3ms | ActiveRecord: 36.6ms)
Completed 200 OK in 327ms (Views: 0.6ms | ActiveRecord: 261.7ms)
Completed 200 OK in 356ms (Views: 1.0ms | ActiveRecord: 288.4ms)
Completed 200 OK in 458ms (Views: 0.2ms | ActiveRecord: 436.8ms)
Completed 500 Internal Server Error in 364ms (ActiveRecord: 71.1ms)
ActionView::Template::Error (Project#group_runners_enabled? delegated to ci_cd_settings.group_runners_enabled?, but ci_cd_settings is nil: #<Project id:3905 {{ project_path }} >):
9:
10: - if @project.group
11: %hr
12: - if @project.group_runners_enabled?
13: = link_to toggle_group_runners_project_runners_path(@project), class: 'btn btn-close', method: :post do
14: = _('Disable group Runners')
15: - else
app/models/project.rb:267:in `rescue in group_runners_enabled?'
app/models/project.rb:267:in `group_runners_enabled?'
lib/gitlab/metrics/instrumentation.rb:159:in `block in group_runners_enabled?'
lib/gitlab/metrics/method_call.rb:36:in `measure'
lib/gitlab/metrics/instrumentation.rb:159:in `group_runners_enabled?'
app/views/projects/runners/_group_runners.html.haml:12:in `_app_views_projects_runners__group_runners_html_haml__175202392511887706_70195463768160'
app/views/projects/runners/_index.html.haml:11:in `_app_views_projects_runners__index_html_haml__259750920931982903_70195458734420'
app/views/projects/settings/ci_cd/show.html.haml:40:in `_app_views_projects_settings_ci_cd_show_html_haml___1660898333498809992_70195450629200'
lib/gitlab/i18n.rb:50:in `with_locale'
lib/gitlab/i18n.rb:56:in `with_user_locale'
app/controllers/application_controller.rb:350:in `set_locale'
lib/gitlab/middleware/multipart.rb:95:in `call'
lib/gitlab/request_profiler/middleware.rb:14:in `call'
lib/gitlab/middleware/go.rb:17:in `call'
lib/gitlab/etag_caching/middleware.rb:11:in `call'
lib/gitlab/middleware/rails_queue_duration.rb:22:in `call'
lib/gitlab/metrics/rack_middleware.rb:15:in `block in call'
lib/gitlab/metrics/transaction.rb:53:in `run'
lib/gitlab/metrics/rack_middleware.rb:15:in `call'
lib/gitlab/middleware/read_only/controller.rb:28:in `call'
lib/gitlab/middleware/read_only.rb:16:in `call'
lib/gitlab/request_context.rb:18:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'
lib/gitlab/middleware/release_env.rb:10:in `call'
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Amazon 2 Current User: git Using RVM: no Ruby Version: 2.3.7p456 Gem Version: 2.6.14 Bundler Version:1.13.7 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.16.4 Sidekiq Version:5.0.5 Go Version: unknown
GitLab information Version: 10.8.3 Revision: 564c342 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://xxxx HTTP Clone URL: https://xxxx/some-group/some-project.git SSH Clone URL: git@xxxx:some-group/some-project.git Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 7.1.2 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git