Gitlab project ci/cd config page not availble after upgrade to 11.7.0
Summary
Updated from 11.5.5 to 11.7.0. Update completed successfully. GitLab-rake gitLab:check passes with no issues.
The Project -> Settings -> CI/CD page in inaccessible. Returns a 500 error.
Steps to reproduce
Install GitLab 11.7.0 with existing projects and possibly some global shared runners configured?
Example Project
N/A
What is the current bug behavior?
Project -> Settings -> CI/CD page returns 500 when accessed through the link in the Project sidebar.
What is the expected correct behavior?
Project -> Settings -> CI/CD page should load without issue.
Relevant logs and/or screenshots
GitLab-ctl tail logs
==> /var/log/GitLab/GitLab-workhorse/current
GitLab.<domain> 127.0.0.1:0 - - "GET /<namespace>/<project>/settings/ci_cd HTTP/1.1" 500 2926 "https://gitlab.<domain>/<namespace>/<project>/edit"
==> /var/log/gitLab/gitLab-rails/production.log
Completed 500 Internal Server Error in 765ms
ActionView::Template::Error (undefined method `protected_ci_variables' for #<ApplicationSetting:>
Did you mean? protected_methods):
1: - save_endpoint = local_assigns.fetch(:save_endpoint, nil)'
2:
3: - if ci_variable_protected_by_default?
4: %p.settings-message.text-center
5: - link_start = '<a href="%{url}">'.html_safe % { url: help_page_page('ci/variables/README', anchor: 'protected-variables') }
6: = s_('Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
app/helpers/ci_variables_helper.rb:5:in `co_variable_protected_by_default?'
app/views/ci/variables/_index.html.haml:3:in `_app_views_ci_variables__index_html_haml___***'
app/views/projects/settings/ci_cd/show.html.haml:48:in `_app_views_projects_settings_ci_cd_show_html_haml___***'
ee/app/helpers/ee/applitaion_helper.rb:20:in `render_cd'
ee/app/views/projects/settings/ci_cd/show.thml.haml:1:in `_ee_app_views_projects_settings_ci_cd_show_html_haml___***'
app/controllers/application_controller.rb:113:in `render'
lib/GitLab/i18n.rb:55:in `with_locale'
lib/GitLab/i18n.rb:561:in `with_user_locale'
app/controllers/application_controller.rb:417:in `set_locale'
lib/GitLab/middleware/rails_queue_duration.rb:24:in `call'
lib/GitLab/metrics/rack_middleware.rb:17:in `block_in_call'
lib/GitLab/metrics/transaction.rb:55:in `run'
lib/GitLab/metrics/rack_middleware.rb:17:in `call'
lib/GitLab/middleware/multipart.rb:103:in `call'
lib/GitLab/request_profiler/middleware.rb:16:in `call'
ee/lib/GitLab/Jira/middleware.rb:15:in `call'
lib/GitLab/middleware/go.rb:20:in `call'
lib/GitLab/etag_caching/middleware.rb:13:in `call'
lib/GitLab/middleware/correlation_id.rb:16:in `block in call'
lib/GitLab/correlation_id.rb:15:in `use_id'
lib/GitLab/middleware/correlation_id.rb:15:in `call'
lib/GitLab/middleware/read_only/controller.rb:42:in `call'
lib/GitLab/middleware/read_only.rb:18:in `call'
lib/GitLab/middleware/basic_health_check.rb:25:in `call'
lib/GitLab/request_context.rb:20:in `call'
lib/GitLab/metricts/request_rack_middlware.rb:29:int `call'
lib/GitLab/middleware/release_env.rb:13:in `call'
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
Discovered on air-gapped system, moved over by hand may contain typos. gitlab-rake gitlab:env:info System Information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version: 1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version: 5.2.3 Go Version: unknownGitLab information Version: 11.7.0-ee Revision: c02f0d4 Directory: /opt/GitLab/embedded/service/GitLab-rails DB Adapter: PostgreSQL DB Version: 9.6.8 URL: https://gitlab. HTTP Clone URL: https://GitLab./some-group/some-project.git URL: git@:some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers: saml, kerberos_spnego
GitLab Shell Version: 8.4.4 Repository storage paths:
- default: /var/opt/GitLab/GitLab-data/repositories Hooks: /opt/GitLab/embedded/service/GitLab-shell/hooks Git: /opt/GitLab/embedded/bin/git
Results of GitLab application Check
Discovered on air-gapped system, moved over by hand may contain typos.
Expand for output related to the GitLab application check
# gitlab-rake gitlab:check SANITIZE=true Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4) Running /opt/GitLab/embedded/service/GitLab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK GitLab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitLab.yml
Checking Incoming Email ... Finished
LDAP: ... Server: ldapmain LDAP authentication... Success Ldap users with access to your GitLab server (only showing the first 100 results) DN: ...
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writeable? ... yes Tmp directory writeable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-GitLab has no init script> Init script up-to-date? ... skipped (omnibus-GitLab has no init script Projects have namespace: ... 2/2 ... yes 7/3 ... yes 2/4 ... yes 2/5 ... yes 11/11 ... yes 13/12 ... yes 12/13 ... yes Redis version >= 2.8.0 ... yes Ruby version >= 2.3.5 ? ... yes (2.4.5) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 7 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks .. Finished
Possible fixes
Not investigated