I am trying to start bundle exec sidekiq
and it’s failing. I need help debugging this.
The app is up to date and I haven’t seen anyone mentioning this issue. I haven’t updated the gems. I’ve uninstalled the Plugin I was developing in case it was provoking it to crash (it was drawing a route) but I keep getting the same error.
Does this have something to do with my local Ruby (as it’s complaining from my .rvm
folder about Unable to autoload constant Version
) or is it related to my local app (it says it’s expecting Discourse to define Version
)?
Logs look like this:
➜ discourse git:(master) ✗ bundle exec sidekiq
2017-08-24T05:24:15.125Z 8881 TID-ovgo0oyhk INFO: Booting Sidekiq 5.0.3 with redis options {:host=>"localhost", :port=>6379, :namespace=>"sidekiq", :id=>"Sidekiq-server-PID-8881", :url=>nil}
/Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:495:in `load_missing_constant': Unable to autoload constant Version, expected /Users/jlijo/Documents/discourse/lib/version.rb to define it (LoadError)
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/active_support.rb:53:in `block in load_missing_constant'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/active_support.rb:6:in `with_bootsnap_fallback'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/active_support.rb:53:in `load_missing_constant'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:184:in `const_missing'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:261:in `const_get'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:261:in `block in constantize'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:259:in `each'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:259:in `inject'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:259:in `constantize'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
from /Users/jlijo/Documents/discourse/config/initializers/100-sidekiq.rb:19:in `block (2 levels) in <main>'
from /Users/jlijo/Documents/discourse/config/initializers/100-sidekiq.rb:18:in `each'
from /Users/jlijo/Documents/discourse/config/initializers/100-sidekiq.rb:18:in `block in <main>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:126:in `block in each_connection'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:124:in `each'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/rails_multisite-1.0.6/lib/rails_multisite/connection_management.rb:124:in `each_connection'
from /Users/jlijo/Documents/discourse/config/initializers/100-sidekiq.rb:17:in `<main>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `load'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `load'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:268:in `block in load'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:268:in `load'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/notifications.rb:166:in `instrument'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/engine.rb:651:in `load_config_initializer'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/engine.rb:615:in `each'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/initializable.rb:30:in `run'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/initializable.rb:44:in `each'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:415:in `call'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:415:in `each_strongly_connected_component_from'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:347:in `each'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:347:in `call'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:347:in `each_strongly_connected_component'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:226:in `tsort_each'
from /Users/jlijo/.rvm/rubies/ruby-2.4.0-turbo/lib/ruby/2.4.0/tsort.rb:205:in `tsort_each'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/application.rb:352:in `initialize!'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/railtie.rb:194:in `public_send'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/railties-4.2.9/lib/rails/railtie.rb:194:in `method_missing'
from /Users/jlijo/Documents/discourse/config/environment.rb:5:in `<main>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/bootsnap-1.0.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `require'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/sidekiq-5.0.3/lib/sidekiq/cli.rb:254:in `boot_system'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/sidekiq-5.0.3/lib/sidekiq/cli.rb:54:in `run'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/gems/sidekiq-5.0.3/bin/sidekiq:12:in `<top (required)>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/bin/sidekiq:23:in `load'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/bin/sidekiq:23:in `<main>'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/bin/ruby_executable_hooks:15:in `eval'
from /Users/jlijo/.rvm/gems/ruby-2.4.0-turbo/bin/ruby_executable_hooks:15:in `<main>'
➜ discourse git:(master) ✗