Project

General

Profile

LoadError on startup using Docker Compose

Added by Matthew Clark almost 7 years ago

I'm not sure where to start debugging the issue. The configuration worked for months, then I was making some updates to my nginx proxy (that I later reverted) and now redmine crashes everytime it starts. Help!

My docker-compose.yml file is thus:

version: '3.1'

services:

  redmine:
    depends_on:
      - db
    image: redmine:3.4
#    restart: always
    volumes:
      - s_files:/usr/src/redmine/files
      - s_plugins:/usr/src/redmine/plugins
      - s_themes:/usr/src/redmine/public/themes
    ports:
      - 8080:3000
#    command: gem install bundler --pre
    environment:
      REDMINE_DB_MYSQL: redminewhoismattclark_db_1
      REDMINE_DB_PASSWORD: xxxxxxxxxxxxx
      VIRTUAL_HOST: wiki.whoismattclark.com
      REDMINE_NO_DB_MIGRATE: 'true'

  db:
    image: mysql:5.7
    ports:
       - 3396:3306
    volumes:
       - db_data:/var/lib/mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: xxxxxxxxxxxxx
      MYSQL_DATABASE: redmine

volumes:
    db_data:
    s_files:
    s_plugins:
    s_themes:

networks:
  default:
    external:
      name: nginx-proxy

Here's the error:

redmine_1  | Bundle complete! 34 Gemfile dependencies, 60 gems now installed.
redmine_1  | Gems in the groups development and test were not installed.
redmine_1  | Bundled gems are installed into `/usr/local/bundle`
redmine_1  | /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- dispatcher (LoadError)
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
redmine_1  |     from /usr/src/redmine/plugins/redmine_todos_plugin/init.rb:7:in `<top (required)>'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
redmine_1  |     from /usr/src/redmine/lib/redmine/plugin.rb:155:in `block in load'
redmine_1  |     from /usr/src/redmine/lib/redmine/plugin.rb:146:in `each'
redmine_1  |     from /usr/src/redmine/lib/redmine/plugin.rb:146:in `load'
redmine_1  |     from /usr/src/redmine/config/initializers/30-redmine.rb:21:in `<top (required)>'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/engine.rb:652:in `block in load_config_initializer'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/notifications.rb:166:in `instrument'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/engine.rb:651:in `load_config_initializer'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/engine.rb:615:in `each'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/engine.rb:615:in `block in <class:Engine>'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `instance_exec'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:30:in `run'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `each'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:44:in `tsort_each_child'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:415:in `call'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `each'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `call'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
redmine_1  |     from /usr/local/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/initializable.rb:54:in `run_initializers'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/application.rb:352:in `initialize!'
redmine_1  |     from /usr/src/redmine/config/environment.rb:14:in `<top (required)>'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
redmine_1  |     from /usr/local/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
redmine_1  |     from /usr/src/redmine/config.ru:3:in `block in <main>'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
redmine_1  |     from /usr/src/redmine/config.ru:in `new'
redmine_1  |     from /usr/src/redmine/config.ru:in `<main>'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:49:in `eval'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:49:in `new_from_string'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/builder.rb:40:in `parse_file'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:300:in `build_app_and_options_from_config'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:209:in `app'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands/server.rb:61:in `app'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:337:in `wrapped_app'
redmine_1  |     from /usr/local/bundle/gems/rack-1.6.8/lib/rack/server.rb:273:in `start'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands/server.rb:80:in `start'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:80:in `block in server'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `tap'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `server'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
redmine_1  |     from /usr/local/bundle/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
redmine_1  |     from bin/rails:4:in `require'
redmine_1  |     from bin/rails:4:in `<main>'
redmine_1  | => Booting WEBrick
redmine_1  | => Rails 4.2.8 application starting in production on http://0.0.0.0:3000
redmine_1  | => Run `rails server -h` for more startup options
redmine_1  | => Ctrl-C to shutdown server
redmine_1  | Exiting
redminewhoismattclark_redmine_1 exited with code 1