MayamaTakeshi / redmine_rt

Redmine plugin for Real-Time notification of events
GNU General Public License v3.0
24 stars 4 forks source link

Failure to start redmine 5 in production environment #12

Closed MayamaTakeshi closed 1 year ago

MayamaTakeshi commented 1 year ago

No problem with redmine 4.2.9:

[redmine-4.2.9]$ bundle exec rails server puma -e development -b 0.0.0.0
=> Booting Puma
=> Rails 5.2.8.1 application starting in development 
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Puma version: 5.6.5 (ruby 2.7.4-p191) ("Birdie's Version")
*  Min threads: 0
*  Max threads: 5
*  Environment: development
*          PID: 2394480
* Listening on http://0.0.0.0:3000
Use Ctrl-C to stop

[redmine-4.2.9]$ bundle exec rails server puma -e production -b 0.0.0.0
=> Booting Puma
=> Rails 5.2.8.1 application starting in production 
=> Run `rails server -h` for more startup options
Puma starting in single mode...
* Puma version: 5.6.5 (ruby 2.7.4-p191) ("Birdie's Version")
*  Min threads: 0
*  Max threads: 5
*  Environment: production
*          PID: 2394486
* Listening on http://0.0.0.0:3000
Use Ctrl-C to stop

And starting in development mode in 5.0.4 is OK:

[redmine-5.0.4]$ bundle exec rails server -e development -b 0.0.0.0
=> Booting Puma
=> Rails 6.1.7 application starting in development 
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Puma version: 5.6.5 (ruby 2.7.4-p191) ("Birdie's Version")
*  Min threads: 0
*  Max threads: 5
*  Environment: development
*          PID: 2394620
* Listening on http://0.0.0.0:3000
Use Ctrl-C to stop

But it fails with this in production:

[redmine-5.0.4]$ bundle exec rails server -e production -b 0.0.0.0               
=> Booting Puma                                                                                                                                                                                            
=> Rails 6.1.7 application starting in production                                                                                                                                                          
=> Run `bin/rails server --help` for more startup options                                                                                                                                                  
Exiting                                                                                                                                                                                                    
Traceback (most recent call last):                                                                                                                                                                         
        61: from bin/rails:4:in `<main>'                                                                                                                                                                   
        60: from bin/rails:4:in `require'                                                                                                                                                                  
        59: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/commands.rb:18:in `<top (required)>'
        58: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/command.rb:48:in `invoke'        
        57: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/command/base.rb:69:in `perform'                                                                                                         
        56: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'                                                                                                                         
        55: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'                                                                                                        
        54: from /var/lib/gems/2.7.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'                                                                                                                       
        53: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in `perform'
        52: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:135:in `tap'               
        51: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:144:in `block in perform'
        50: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/commands/server/server_command.rb:39:in `start'
        49: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/server.rb:311:in `start'
        48: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/server.rb:379:in `handle_profiling'
        47: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/server.rb:312:in `block in start'
        46: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/server.rb:422:in `wrapped_app'
        45: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/server.rb:249:in `app'
        44: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/server.rb:349:in `build_app_and_options_from_config'
        43: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/builder.rb:66:in `parse_file'
        42: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/builder.rb:105:in `load_file'
        41: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/builder.rb:116:in `new_from_string'
        40: from /var/lib/gems/2.7.0/gems/rack-2.2.5/lib/rack/builder.rb:116:in `eval'
        39: from config.ru:3:in `block in <main>'
        38: from /var/lib/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `require'
        37: from /var/lib/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:299:in `load_dependency'
        36: from /var/lib/gems/2.7.0/gems/activesupport-6.1.7/lib/active_support/dependencies.rb:332:in `block in require'
        35: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
        34: from /var/lib/gems/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        33: from /var/lib/gems/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
        32: from /usr/local/src/redmine-5.0.4/config/environment.rb:16:in `<top (required)>'
        31: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/application.rb:391:in `initialize!'
        30: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:60:in `run_initializers'
        29: from /usr/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
        28: from /usr/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
        27: from /usr/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
        26: from /usr/lib/ruby/2.7.0/tsort.rb:347:in `call'
        25: from /usr/lib/ruby/2.7.0/tsort.rb:347:in `each'
        24: from /usr/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
        23: from /usr/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
        22: from /usr/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        21: from /usr/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
        20: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:61:in `block in run_initializers'
        19: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `run'
        18: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/initializable.rb:32:in `instance_exec'
        17: from /var/lib/gems/2.7.0/gems/railties-6.1.7/lib/rails/application/finisher.rb:133:in `block in <module:Finisher>'
        16: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader.rb:294:in `eager_load_all'
        15: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader.rb:294:in `each'
        14: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader.rb:296:in `block in eager_load_all'
        13: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:10:in `eager_load'
        12: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:10:in `synchronize'
        11: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:16:in `block in eager_load'
        10: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:16:in `each'
         9: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:17:in `block (2 levels) in eager_load'
         8: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:164:in `actual_eager_load_dir'
         7: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:25:in `ls'
         6: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:25:in `each'
         5: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:40:in `block in ls'
         4: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/eager_load.rb:169:in `block in actual_eager_load_dir'
         3: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:135:in `cget'
         2: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/helpers.rb:135:in `const_get'
         1: from /var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:31:in `require'
/var/lib/gems/2.7.0/gems/zeitwerk-2.6.6/lib/zeitwerk/loader/callbacks.rb:25:in `on_file_autoloaded': expected file /usr/local/src/redmine-5.0.4/plugins/redmine_rt/app/channels/channel.rb to define constant Channel, but didn't (Zeitwerk::NameError)