Can't run rails console (9.3.6)


#1

Hi,

I can’t run rails console. Here the error :

# sudo -u git bundle exec rails console                          
/home/git/gitlab/config/initializers/routing_draw.rb:5:in `instance_eval': uninitialized constant LetterOpenerWeb (NameError)
    from /home/git/gitlab/config/initializers/routing_draw.rb:5:in `instance_eval'
    from /home/git/gitlab/config/initializers/routing_draw.rb:5:in `draw'
    from /home/git/gitlab/config/routes.rb:15:in `block in <top (required)>'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.8/lib/action_dispatch/routing/route_set.rb:432:in `instance_exec'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.8/lib/action_dispatch/routing/route_set.rb:432:in `eval_block'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.8/lib/action_dispatch/routing/route_set.rb:410:in `draw'
    from /home/git/gitlab/config/routes.rb:4:in `<top (required)>'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:40:in `each'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:40:in `load_paths'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:26:in `block in updater'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/file_update_checker.rb:75:in `execute'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:27:in `updater'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /usr/lib64/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
    from /usr/lib64/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
    from /usr/lib64/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
    from /usr/lib64/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
    from /usr/lib64/ruby/2.3.0/tsort.rb:347:in `each'
    from /usr/lib64/ruby/2.3.0/tsort.rb:347:in `call'
    from /usr/lib64/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
    from /usr/lib64/ruby/2.3.0/tsort.rb:226:in `tsort_each'
    from /usr/lib64/ruby/2.3.0/tsort.rb:205:in `tsort_each'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
    from /home/git/gitlab/config/environment.rb:5:in `<top (required)>'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/application.rb:328:in `require_environment!'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:142:in `require_application_and_environment!'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:67:in `console'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:9:in `require'
    from bin/rails:9:in `<main>'

Do you know how can I fix this ?

I update GitLab to 9.3.6.