Error after Upgrade to 11.8.0: undefined method `first_day_of_week'
Summary
Internal Server Error after Upgrade from 11.7.5 to 11.8.0
- Selfhosted instance on openSUSE Leap 42.3 (with latest Updates).
- Installed via https://packages.gitlab.com/gitlab/gitlab-ce/opensuse/42.3/x86_64
Steps to reproduce
try to access frontpage
What is the current bug behavior?
Whoops, something went wrong on our end.
Relevant logs and/or screenshots
==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 500 Internal Server Error in 75ms (ActiveRecord: 0.0ms)
NoMethodError (undefined method `first_day_of_week' for #<ApplicationSetting:0x00007f0b90d9bbe0>):
lib/gitlab/current_settings.rb:15:in `method_missing'
lib/gitlab/gon_helper.rb:27:in `add_gon_variables'
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'
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:40: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/metrics/requests_rack_middleware.rb:29:in `call'
lib/gitlab/middleware/release_env.rb:13:in `call'
Started GET "/favicon.ico" for 127.0.0.1 at 2019-02-24 11:33:59 +0100
Output of checks
gitlab:~ # /opt/gitlab/bin/gitlab-ctl status
run: alertmanager: (pid 1375) 1356s; run: log: (pid 1374) 1356s
run: gitaly: (pid 1382) 1356s; run: log: (pid 1370) 1356s
run: gitlab-monitor: (pid 1379) 1356s; run: log: (pid 1378) 1356s
run: gitlab-workhorse: (pid 1392) 1356s; run: log: (pid 1391) 1356s
run: logrotate: (pid 1390) 1356s; run: log: (pid 1389) 1356s
run: node-exporter: (pid 1395) 1356s; run: log: (pid 1394) 1356s
run: postgres-exporter: (pid 1388) 1356s; run: log: (pid 1387) 1356s
run: postgresql: (pid 1373) 1356s; run: log: (pid 1369) 1356s
run: prometheus: (pid 1372) 1356s; run: log: (pid 1371) 1356s
run: redis: (pid 1385) 1356s; run: log: (pid 1383) 1356s
run: redis-exporter: (pid 1381) 1356s; run: log: (pid 1380) 1356s
run: sidekiq: (pid 1377) 1356s; run: log: (pid 1376) 1356s
run: unicorn: (pid 1386) 1356s; run: log: (pid 1384) 1356s
Results of GitLab environment info
gitlab:~ # /opt/gitlab/bin/gitlab-rake gitlab:env:info
System information
System:
Current User: gitlab
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.5
Go Version: unknown
GitLab information
Version: 11.8.0
Revision: ce13864
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.tbz-pariv.lan
HTTP Clone URL: https://gitlab.tbz-pariv.lan/some-group/some-project.git
SSH Clone URL: gitlab@gitlab.tbz-pariv.lan:some-group/some-project.git
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 8.4.4
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
gitlab:~ # /opt/gitlab/bin/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
Checking LDAP ...
LDAP: ... Server: ldapmain
not verifying SSL hostname of LDAPS server 'ldap.XXX.YYY:636'
LDAP authentication... Anonymous. No `bind_dn` or `password` configured
LDAP users with access to your GitLab server (only showing the first 100 results)
DN: uid=mgoppold,dc=XXX,dc=YYY uid: mgoppold
...
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 writable? ... yes
Tmp directory writable? ... 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: ...
3/1 ... yes
6/3 ... yes
...
4/249 ... yes
14/250 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.3)
Git version >= 2.18.0 ? ... yes (2.18.1)
Git user has default SSH configuration? ... yes
Active users: ... 18
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Edited by Mario Goppold