sameersbn / sameersbn/docker-gitlab

NoMethodError (undefined method `theme_id=' for #<User id: @>):

Open
#1,386 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

after upgrading from 9.x.x to 10.0.3 Im getting http 500 instead of login page.

Raven 2.5.3 configured not to capture errors: DSN not set
Raven 2.5.3 configured not to capture errors: DSN not set
Started GET "/" for 192.168.163.196 at 2017-10-22 04:59:40 +0000
Processing by RootController#index as HTML
Redirected to http://192.168.163.196:10080/users/sign_in
Filter chain halted as :redirect_unlogged_user rendered or redirected
Completed 302 Found in 8ms (ActiveRecord: 0.0ms)
Started GET "/users/sign_in" for 192.168.163.196 at 2017-10-22 04:59:42 +0000
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 54ms (ActiveRecord: 3.5ms)

NoMethodError (undefined method `theme_id=' for #<User id: @>):
  app/controllers/sessions_controller.rb:20:in `new'
  lib/gitlab/i18n.rb:46:in `with_locale'
  lib/gitlab/i18n.rb:52:in `with_user_locale'
  app/controllers/application_controller.rb:326:in `set_locale'
  lib/gitlab/middleware/multipart.rb:93: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/request_context.rb:18:in `call'
  lib/gitlab/metrics/requests_rack_middleware.rb:27:in `call'


StuckCiJobsWorker: Cleaning stuck builds

looks similar to this https://gitlab.com/gitlab-org/gitlab-ce/issues/38324.
As the issue resolved using gitlabctl reconfigure, please advise how can I run an alternative as gitlabctl is not available in the docker image.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with app/controllers/sessions_controller.rb:20 and the Docker image's initialization or reconfigure scripts, then compare the 9.x-to-10.0.3 upgrade path. Reproduce the sign-in failure and determine whether the image exposes an equivalent setup path to gitlabctl reconfigure; document the supported path when the login page works.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, gitlab, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.