Error 500 after login on redirect to dashboard
Summary
After upgrading to 10.8.3 to 11.8.1(Debian 8.11 jessie) getting 500 error after user log in and redirected to Dashboard.
Steps to reproduce
Upgrade, after that try to log in.
What is the current bug behavior?
Getting
Whoops, something went wrong on our end.
Try refreshing the page, or going back and attempting the action again.
error message
What is the expected correct behavior?
After login user redirected to dashboard
Relevant logs and/or screenshots
Getting this in production.log
Started GET "/" for 77.222.159.24 at 2019-03-14 14:10:34 +0100
Processing by RootController#index as HTML
Completed 500 Internal Server Error in 47ms (ActiveRecord: 1.5ms)
NoMethodError (undefined method `dashboard' for #<User id:2 @ekaz>):
app/controllers/root_controller.rb:35:in `redirect_logged_user'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
app/controllers/application_controller.rb:423:in `set_locale'
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'
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
gitlab-rake gitlab:env:info System information System: Debian 8.11 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.5 Go Version: unknown GitLab information Version: 11.8.1 Revision: 657d508 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.stone-labs.com HTTP Clone URL: https://gitlab.stone-labs.com/some-group/some-project.git SSH Clone URL: git@gitlab.stone-labs.com:some-group/some-project.git Using LDAP: no 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
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
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
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: ... 2/9 ... yes 2/10 ... yes 2/11 ... yes 2/12 ... yes 2/13 ... yes 12/19 ... yes 2/20 ... yes 12/21 ... yes 6/22 ... yes 2/23 ... yes 2/24 ... yes 2/26 ... yes 14/27 ... yes 12/28 ... yes 2/29 ... yes 2/34 ... yes 2/35 ... yes 2/37 ... yes 5/39 ... yes 5/40 ... yes 2/41 ... yes 20/42 ... yes 2/43 ... yes 2/44 ... yes 2/45 ... yes 2/46 ... yes 2/47 ... yes 2/48 ... yes 2/49 ... yes 2/50 ... yes 2/52 ... yes 2/53 ... yes 24/54 ... yes 2/55 ... yes 2/56 ... yes 17/57 ... yes 2/58 ... yes 2/59 ... yes 2/60 ... yes 2/61 ... yes 2/62 ... yes 2/63 ... yes 26/64 ... yes 2/65 ... yes 27/66 ... yes 34/67 ... yes 2/68 ... yes 2/69 ... yes 2/70 ... yes 2/71 ... yes 2/72 ... yes 2/73 ... yes 2/74 ... yes 2/75 ... yes 2/76 ... yes 2/77 ... yes 2/78 ... yes 2/79 ... yes 2/80 ... yes 2/81 ... yes 41/82 ... yes 44/83 ... yes 43/84 ... yes 2/85 ... yes 2/86 ... yes 2/87 ... yes 2/88 ... yes 2/89 ... yes 2/90 ... yes 2/92 ... yes 64/93 ... yes 2/94 ... yes 2/95 ... yes 2/96 ... yes 2/97 ... yes 2/98 ... yes 36/99 ... yes 2/100 ... yes 2/102 ... yes 2/103 ... yes 2/104 ... yes 62/108 ... yes 62/109 ... yes 62/110 ... yes 62/111 ... yes 62/112 ... yes 64/113 ... yes 64/114 ... yes 74/115 ... yes 60/116 ... yes 2/118 ... 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: ... 62
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)