For some time now my sidekiq keeps getting stuck and us not executing jobs in my development environment. They are stuck in "busy" and it seems to be arbitrary because I tried it with different jobs and sometimes they run and then they stop, even after restarting sidekiq and clearing the queue with 'redis-cli FLUSHALL`.
I researched and with kill -TTIN pid I got a backtrace but I don't even know what to look for. Find the logs down below.
Other assumptions I have/things I changed before it happened:
I had cron jobs running locally, which worked fine
Changed concurrecny from 10 to 50 and then back to 10
upgraded to Rails 6
Something with redis?
I really appreciate any help, as it is blocking me :(
/2.6.5/lib/ruby/2.6.0/monitor.rb:114:in `sleep'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:114:in `wait'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:114:in `block (2 levels) in wait'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:113:in `handle_interrupt'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:113:in `block in wait'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:109:in `handle_interrupt'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:109:in `wait'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:128:in `wait_while'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:221:in `wait_for'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:83:in `block (2 levels) in start_exclusive'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:82:in `block in start_exclusive'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:77:in `start_exclusive'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies/interlock.rb:13:in `loading'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:40:in `load_interlock'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:390:in `require_or_load'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:545:in `load_missing_constant'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:214:in `const_missing'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:582:in `load_missing_constant'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:214:in `const_missing'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:582:in `load_missing_constant'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:214:in `const_missing'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/actiontext-6.0.0/lib/action_text/engine.rb:46:in `block (2 levels) in <class:Engine>'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `class_eval'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:72:in `block in execute_hook'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `each'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/actiontext-6.0.0/lib/action_text/content.rb:132:in `<top (required)>'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `block in require'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:291:in `load_dependency'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/dependencies.rb:325:in `require'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/actiontext-6.0.0/lib/action_text/engine.rb:42:in `block (2 levels) in <class:Engine>'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:429:in `instance_exec'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:429:in `block in make_lambda'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:201:in `block (2 levels) in halting'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:607:in `block (2 levels) in default_terminator'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:606:in `catch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:606:in `block in default_terminator'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:202:in `block in halting'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:514:in `block in invoke_before'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:514:in `each'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:514:in `invoke_before'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/callbacks.rb:134:in `run_callbacks'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/execution_wrapper.rb:111:in `run!'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/execution_wrapper.rb:73:in `block in run!'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/execution_wrapper.rb:70:in `tap'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/execution_wrapper.rb:70:in `run!'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/execution_wrapper.rb:86:in `wrap'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.0/lib/active_support/reloader.rb:71:in `wrap'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/rails.rb:42:in `call'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:131:in `block (4 levels) in dispatch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:257:in `stats'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:126:in `block (3 levels) in dispatch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/job_logger.rb:13:in `call'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:125:in `block (2 levels) in dispatch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/job_retry.rb:78:in `global'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:124:in `block in dispatch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/logger.rb:10:in `with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/job_logger.rb:33:in `prepare'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:123:in `dispatch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:162:in `process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:78:in `process_one'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:68:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:15:in `watchdog'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:24:in `block in safe_thread'
2020-05-13T20:24:27.362Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5k041l processor
2020-05-13T20:24:27.362Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:69:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:69:in `rescue in _read_from_socket'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:65:in `_read_from_socket'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:57:in `gets'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:396:in `read'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:273:in `block in read'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:261:in `io'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:272:in `read'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:125:in `block in call'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:241:in `block (2 levels) in process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:385:in `ensure_connected'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:231:in `block in process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:320:in `logging'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:230:in `process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:125:in `call'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:219:in `block in call_with_timeout'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:293:in `with_socket_timeout'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:218:in `call_with_timeout'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:1187:in `block in _bpop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:51:in `block in synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:51:in `synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:1184:in `_bpop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:1229:in `brpop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/fetch.rb:37:in `block in retrieve_work'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq.rb:97:in `block in redis'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:65:in `block (2 levels) in with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `handle_interrupt'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `block in with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `handle_interrupt'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq.rb:94:in `redis'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/fetch.rb:37:in `retrieve_work'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:83:in `get_one'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:95:in `fetch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:77:in `process_one'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:68:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:15:in `watchdog'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:24:in `block in safe_thread'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5k049h processor
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:69:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:69:in `rescue in _read_from_socket'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:65:in `_read_from_socket'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:57:in `gets'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/connection/ruby.rb:396:in `read'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:273:in `block in read'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:261:in `io'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:272:in `read'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:125:in `block in call'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:241:in `block (2 levels) in process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:385:in `ensure_connected'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:231:in `block in process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:320:in `logging'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:230:in `process'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:125:in `call'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:219:in `block in call_with_timeout'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:293:in `with_socket_timeout'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis/client.rb:218:in `call_with_timeout'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:1187:in `block in _bpop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:51:in `block in synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:51:in `synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:1184:in `_bpop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/redis-4.1.4/lib/redis.rb:1229:in `brpop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/fetch.rb:37:in `block in retrieve_work'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq.rb:97:in `block in redis'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:65:in `block (2 levels) in with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `handle_interrupt'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:64:in `block in with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `handle_interrupt'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool.rb:61:in `with'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq.rb:94:in `redis'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/fetch.rb:37:in `retrieve_work'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:83:in `get_one'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:95:in `fetch'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:77:in `process_one'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/processor.rb:68:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:15:in `watchdog'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:24:in `block in safe_thread'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5k04dx scheduler
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:88:in `sleep'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:88:in `wait'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:88:in `block (2 levels) in pop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:79:in `loop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:79:in `block in pop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:78:in `synchronize'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb:78:in `pop'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/scheduled.rb:89:in `wait'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/scheduled.rb:71:in `block in start'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:15:in `watchdog'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/sidekiq-6.0.7/lib/sidekiq/util.rb:24:in `block in safe_thread'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5egk7d
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5egkj5
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5egkv5
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5egjkd
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5egk01
2020-05-13T20:24:27.363Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu5egk2h
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu67uhyx
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu67ui6h
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: Thread TID-ovu67uif1
2020-05-13T20:24:27.364Z pid=2993 tid=ovu5fxgf9 WARN: /Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `select'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rb-fsevent-0.10.4/lib/rb-fsevent/fsevent.rb:44:in `run'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:77:in `block (2 levels) in _run_workers_in_background'
/Users/claramorgeneyer/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add
For any one running into the same issue:
After upgrading to Rails 6, I didn't change the auto loader to zeitwerk by mistake.
Find some more information here: issue on Sidekiq repo
Change this in:
# application.rb
...
config.load_defaults "6.0"
...
You can also test if you have zeitwerk enabled with
rails zeitwerk:check
Related
Getting this error even though email_verification does not exist in our codebase. Here's the stack trace:
NoMethodError: undefined method `email_verification' for UserMailer:Class
from action_mailer/base.rb:582:in `method_missing'
from action_mailer/delivery_job.rb:16:in `public_send'
from action_mailer/delivery_job.rb:16:in `perform'
from active_job/execution.rb:39:in `block in perform_now'
from active_support/callbacks.rb:109:in `block in run_callbacks'
from raven/integrations/rails/active_job.rb:18:in `capture_and_reraise_with_sentry'
from raven/integrations/rails/active_job.rb:12:in `block (2 levels) in included'
from active_support/callbacks.rb:118:in `instance_exec'
from active_support/callbacks.rb:118:in `block in run_callbacks'
from new_relic/agent/instrumentation/active_job.rb:53:in `perform'
from new_relic/agent/instrumentation/active_job.rb:23:in `block (4 levels) in <main>'
from active_support/callbacks.rb:118:in `instance_exec'
from active_support/callbacks.rb:118:in `block in run_callbacks'
from i18n.rb:313:in `with_locale'
from active_job/translation.rb:9:in `block (2 levels) in <module:Translation>'
from active_support/callbacks.rb:118:in `instance_exec'
from active_support/callbacks.rb:118:in `block in run_callbacks'
from active_job/logging.rb:26:in `block (4 levels) in <module:Logging>'
from active_support/notifications.rb:168:in `block in instrument'
from active_support/notifications/instrumenter.rb:23:in `instrument'
from active_support/notifications.rb:168:in `instrument'
from active_job/logging.rb:25:in `block (3 levels) in <module:Logging>'
from active_job/logging.rb:46:in `block in tag_logger'
from active_support/tagged_logging.rb:71:in `block in tagged'
from active_support/tagged_logging.rb:28:in `tagged'
from active_support/tagged_logging.rb:71:in `tagged'
from active_job/logging.rb:46:in `tag_logger'
from active_job/logging.rb:22:in `block (2 levels) in <module:Logging>'
from active_support/callbacks.rb:118:in `instance_exec'
from active_support/callbacks.rb:118:in `block in run_callbacks'
from active_support/callbacks.rb:136:in `run_callbacks'
from active_job/execution.rb:38:in `perform_now'
from active_job/execution.rb:24:in `block in execute'
from active_support/callbacks.rb:109:in `block in run_callbacks'
from active_job/railtie.rb:28:in `block (4 levels) in <class:Railtie>'
from active_support/execution_wrapper.rb:87:in `wrap'
from active_support/reloader.rb:73:in `block in wrap'
from active_support/execution_wrapper.rb:83:in `wrap'
from active_support/reloader.rb:72:in `wrap'
from active_job/railtie.rb:27:in `block (3 levels) in <class:Railtie>'
from active_support/callbacks.rb:118:in `instance_exec'
from active_support/callbacks.rb:118:in `block in run_callbacks'
from active_support/callbacks.rb:136:in `run_callbacks'
from active_job/execution.rb:22:in `execute'
from active_job/queue_adapters/sidekiq_adapter.rb:42:in `perform'
from sidekiq/processor.rb:192:in `execute_job'
from sidekiq/processor.rb:165:in `block (2 levels) in process'
from sidekiq/middleware/chain.rb:128:in `block in invoke'
from new_relic/agent/instrumentation/sidekiq.rb:33:in `block in call'
from new_relic/agent/instrumentation/controller_instrumentation.rb:376:in `perform_action_with_newrelic_trace'
from new_relic/agent/instrumentation/sidekiq.rb:29:in `call'
from sidekiq/middleware/chain.rb:130:in `block in invoke'
from raven/integrations/sidekiq.rb:9:in `call'
from sidekiq/middleware/chain.rb:130:in `block in invoke'
from sidekiq/middleware/chain.rb:133:in `invoke'
from sidekiq/processor.rb:164:in `block in process'
from sidekiq/processor.rb:137:in `block (6 levels) in dispatch'
from sidekiq/job_retry.rb:109:in `local'
from sidekiq/processor.rb:136:in `block (5 levels) in dispatch'
from sidekiq/rails.rb:43:in `block in call'
from active_support/execution_wrapper.rb:87:in `wrap'
from active_support/reloader.rb:73:in `block in wrap'
from active_support/execution_wrapper.rb:87:in `wrap'
from active_support/reloader.rb:72:in `wrap'
from sidekiq/rails.rb:42:in `call'
from sidekiq/processor.rb:132:in `block (4 levels) in dispatch'
from sidekiq/processor.rb:250:in `stats'
from sidekiq/processor.rb:127:in `block (3 levels) in dispatch'
from sidekiq/job_logger.rb:8:in `call'
from sidekiq/processor.rb:126:in `block (2 levels) in dispatch'
from sidekiq/job_retry.rb:74:in `global'
from sidekiq/processor.rb:125:in `block in dispatch'
from sidekiq/logging.rb:48:in `with_context'
from sidekiq/logging.rb:42:in `with_job_hash_context'
from sidekiq/processor.rb:124:in `dispatch'
from sidekiq/processor.rb:163:in `process'
from sidekiq/processor.rb:83:in `process_one'
from sidekiq/processor.rb:71:in `run'
from sidekiq/util.rb:16:in `watchdog'
from sidekiq/util.rb:25:in `block in safe_thread'
Unresolved Rails issue: https://github.com/rails/rails/issues/40607
I am launching Cuttlefish (https://cuttlefish.io/) SMTP process like this:
bundle exec rake cuttlefish:smtp RAILS_ENV=production
But when I try to send the test mail thru Cuttlefish's web, this process crashes with this last message:
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)
What am I missing? Cuttlefish is connected to a MySQL DB, and this seems to be OK. Also, I have Postfix on the same machine, which has also been tested OK. How to make this SMTP process work?
Here is the full crash stack:
I'm listening for emails via SMTP on 0.0.0.0 port 2525
I'm in the production environment
rake aborted!
Redis::CannotConnectError: Error connecting to Redis on 127.0.0.1:6379 (ECONNREFUSED)
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:320:in `rescue in establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:311:in `establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:91:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:90:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:337:in `ensure_connected'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:204:in `block in process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:286:in `logging'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:203:in `process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:174:in `call_pipelined'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:146:in `block in call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:144:in `call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2147:in `block in multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `block in synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2139:in `multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:180:in `block in raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/connection_pool-2.1.0/lib/connection_pool.rb:58:in `with'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:179:in `raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:68:in `push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:85:in `client_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:40:in `perform_async'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_smtp_server.rb:117:in `receive_message'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:539:in `process_data_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:196:in `receive_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/linetext2.rb:64:in `receive_data'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_control.rb:22:in `smtp_start'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/tasks/cuttlefish.rake:6:in `block (2 levels) in <top (required)>'
/soft/wordpress/home/tupromail/.gem/ruby/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:6379
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:129:in `rescue in connect_addrinfo'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:121:in `connect_addrinfo'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:162:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each_with_index'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:211:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:316:in `establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:91:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:90:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:337:in `ensure_connected'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:204:in `block in process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:286:in `logging'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:203:in `process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:174:in `call_pipelined'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:146:in `block in call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:144:in `call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2147:in `block in multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `block in synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2139:in `multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:180:in `block in raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/connection_pool-2.1.0/lib/connection_pool.rb:58:in `with'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:179:in `raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:68:in `push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:85:in `client_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:40:in `perform_async'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_smtp_server.rb:117:in `receive_message'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:539:in `process_data_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:196:in `receive_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/linetext2.rb:64:in `receive_data'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_control.rb:22:in `smtp_start'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/tasks/cuttlefish.rake:6:in `block (2 levels) in <top (required)>'
/soft/wordpress/home/tupromail/.gem/ruby/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
IO::EINPROGRESSWaitWritable: Operation now in progress - connect(2) would block
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:122:in `connect_addrinfo'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:162:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `each_with_index'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:160:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/connection/ruby.rb:211:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:316:in `establish_connection'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:91:in `block in connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:90:in `connect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:337:in `ensure_connected'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:204:in `block in process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:286:in `logging'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:203:in `process'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:174:in `call_pipelined'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:146:in `block in call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:273:in `with_reconnect'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis/client.rb:144:in `call_pipeline'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2147:in `block in multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `block in synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:37:in `synchronize'
/soft/wordpress/home/tupromail/.gem/ruby/gems/redis-3.2.0/lib/redis.rb:2139:in `multi'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:180:in `block in raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/connection_pool-2.1.0/lib/connection_pool.rb:58:in `with'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:179:in `raw_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/client.rb:68:in `push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:85:in `client_push'
/soft/wordpress/home/tupromail/.gem/ruby/gems/sidekiq-3.3.0/lib/sidekiq/worker.rb:40:in `perform_async'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_smtp_server.rb:117:in `receive_message'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:539:in `process_data_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/smtpserver.rb:196:in `receive_line'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/em/protocols/linetext2.rb:64:in `receive_data'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run_machine'
/soft/wordpress/home/tupromail/.gem/ruby/gems/eventmachine-1.0.4/lib/eventmachine.rb:187:in `run'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/cuttlefish_control.rb:22:in `smtp_start'
/soft/wordpress/home/tupromail/cuttlefish-master/lib/tasks/cuttlefish.rake:6:in `block (2 levels) in <top (required)>'
/soft/wordpress/home/tupromail/.gem/ruby/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => cuttlefish:smtp
Your app is failing due to redis connection, check if you are using redis in some module and install redis or else remove redis dependency
I solved the problem by launching Redis server:
redis-server&
I have tried twice to install an installation of RubyMine on a CentOS7 VM. They have now both failed due to a Redis::TimeoutError.
I have received this error when attempting to start the rails server. This happens both through RubyMine and through the Konsole after I start redis through the "service redis start" command.
I can start the rails server fine without starting redis first. And the application works fine (so far) if I start redis after the server starts. However this is only a short term solution as I will be adding automatic start for all services such as redis when my VM starts.
My backtrace
/root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/connection/ruby.rb:111:in `rescue in _write_to_socket': Connection timed out (Redis::TimeoutError)
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/connection/ruby.rb:104:in `_write_to_socket'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/connection/ruby.rb:131:in `block in write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/connection/ruby.rb:130:in `loop'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/connection/ruby.rb:130:in `write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/connection/ruby.rb:374:in `write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:271:in `block in write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:250:in `io'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:269:in `write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:228:in `block (3 levels) in process'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:222:in `each'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:222:in `block (2 levels) in process'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:367:in `ensure_connected'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:221:in `block in process'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:306:in `logging'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:220:in `process'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis/client.rb:120:in `call'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/newrelic_rpm-3.16.2.321/lib/new_relic/agent/instrumentation/redis.rb:42:in `block in call'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/newrelic_rpm-3.16.2.321/lib/new_relic/agent/datastores.rb:111:in `wrap'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/newrelic_rpm-3.16.2.321/lib/new_relic/agent/instrumentation/redis.rb:41:in `call'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis.rb:754:in `block in set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis.rb:58:in `block in synchronize'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis.rb:58:in `synchronize'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-3.3.2/lib/redis.rb:750:in `set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/interface.rb:9:in `set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/ttl.rb:8:in `set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/marshalling.rb:5:in `block in set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/marshalling.rb:29:in `_marshal'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/marshalling.rb:5:in `set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:5:in `block in set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:74:in `namespace'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-store-1.1.7/lib/redis/store/namespace.rb:5:in `set'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:223:in `block in write_entry'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:212:in `call'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:212:in `with'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:223:in `write_entry'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:60:in `block in write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `block in instrument'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/notifications.rb:166:in `instrument'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `instrument'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/redis-activesupport-4.1.5/lib/active_support/cache/redis_store.rb:58:in `write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/st_core-1.5.0.2/lib/st_core/entity_factory/entity_store.rb:105:in `write'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/st_core-1.5.0.2/lib/st_core/entity_factory/entity_store.rb:54:in `store'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/st_core-1.5.0.2/lib/st_core/engine.rb:63:in `block (2 levels) in <class:Engine>'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/st_core-1.5.0.2/lib/st_core/engine.rb:62:in `block in <class:Engine>'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /root/.rbenv/versions/2.2.3/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
from /root/RubymineProjects/chop/config/environment.rb:5:in `<top (required)>'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
from /root/RubymineProjects/chop/config.ru:3:in `block in <main>'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /root/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
I hava a same problem when I create redis-cluster.Finally,I find the problem.
you should do that:
1、gem uninstall redis
2、gem install redis --version 3.0.0
Please see update at bottom
I'm trying to use the 'delayed_jobs' gem in my project. I got everything working in my local environment, however when I moved the project to production on Heroku I was unable to 'rake db:migrate', and am not able to get my server started. Here are the steps I followed.
*Run bundle_install with 'delayed_job' and 'delayed_job_active_record' in my gem file
*I did not run 'ails generate delayed_job:active_record' as the migration file was moved to the server from when I ran 'ails generate delayed_job:active_record' in DEV
*I ran rake db:migrate and it failed with the following error, not sure how to fix. (Note: It appears that the migration is failing due to the table not existing, which is a big issue as I need to run the migration to create the table).
[?25l[?25hUnable to write PID file to /app/tmp/pids/delayed_job.pid
[ActiveJob] Enqueued SquareOrderCleanupJob (Job ID: c364f5c1-a3c3-401a-95a6-a567a2813942) to DelayedJob(default) at 2016-06-04 14:57:56 UTC
[ActiveJob] Mysql2::Error: Table 'heroku_fc2daea183dcdd6.delayed_jobs' doesn't exist: SHOW FULL FIELDS FROM `delayed_jobs`
rake aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: Table 'heroku_fc2daea183dcdd6.delayed_jobs' doesn't exist: SHOW FULL FIELDS FROM `delayed_jobs`
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `_query'
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `block in query'
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `handle_interrupt'
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `query'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `block in execute'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `execute'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:312:in `execute_and_free'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:457:in `columns'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/attributes.rb:93:in `columns'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/attributes.rb:98:in `columns_hash'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/inheritance.rb:205:in `subclass_from_attributes?'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/inheritance.rb:54:in `new'
/app/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:16:in `enqueue_job'
/app/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:12:in `enqueue'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/queue_adapters/delayed_job_adapter.rb:22:in `enqueue_at'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/enqueuing.rb:69:in `block in enqueue'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:496:in `block (2 levels) in around'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `block (2 levels) in simple'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:14:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:14:in `block (3 levels) in '
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `block in tag_logger'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `tag_logger'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:13:in `block (2 levels) in '
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `instance_exec'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `block in make_lambda'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `block in simple'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `block in around'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/enqueuing.rb:67:in `enqueue'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/configured_job.rb:13:in `perform_later'
/app/config/initializers/schedule_jobs.rb:2:in `'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `block in load'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:652:in `block in load_config_initializer'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:166:in `instrument'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:651:in `load_config_initializer'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:616:in `block (2 levels) in '
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:615:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:615:in `block in '
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `instance_exec'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `run'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `tsort_each_child'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `tsort_each_child'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:54:in `run_initializers'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:352:in `initialize!'
/app/config/environment.rb:5:in `'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:328:in `require_environment!'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Mysql2::Error: Table 'heroku_fc2daea183dcdd6.delayed_jobs' doesn't exist
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `_query'
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `block in query'
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `handle_interrupt'
/app/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `query'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `block in execute'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `execute'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:312:in `execute_and_free'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:457:in `columns'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/attributes.rb:93:in `columns'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/attributes.rb:98:in `columns_hash'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/inheritance.rb:205:in `subclass_from_attributes?'
/app/vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/inheritance.rb:54:in `new'
/app/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:16:in `enqueue_job'
/app/vendor/bundle/ruby/2.2.0/gems/delayed_job-4.1.2/lib/delayed/backend/base.rb:12:in `enqueue'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/queue_adapters/delayed_job_adapter.rb:22:in `enqueue_at'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/enqueuing.rb:69:in `block in enqueue'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:496:in `block (2 levels) in around'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:341:in `block (2 levels) in simple'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:14:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:14:in `block (3 levels) in '
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `block in tag_logger'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:43:in `tag_logger'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/logging.rb:13:in `block (2 levels) in '
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `instance_exec'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:439:in `block in make_lambda'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:340:in `block in simple'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `block in around'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/enqueuing.rb:67:in `enqueue'
/app/vendor/bundle/ruby/2.2.0/gems/activejob-4.2.3/lib/active_job/configured_job.rb:13:in `perform_later'
/app/config/initializers/schedule_jobs.rb:2:in `'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `block in load'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:652:in `block in load_config_initializer'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:166:in `instrument'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:651:in `load_config_initializer'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:616:in `block (2 levels) in '
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:615:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:615:in `block in '
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `instance_exec'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `run'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `tsort_each_child'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `each'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:44:in `tsort_each_child'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/initializable.rb:54:in `run_initializers'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:352:in `initialize!'
/app/config/environment.rb:5:in `'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `block in require'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
/app/vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:274:in `require'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:328:in `require_environment!'
/app/vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:457:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
[?25h
UPDATE
I figured out the problem was caused by executing the following code at the initialization of my rails app. I was able to get the migration to work by temporarily removing it, and then adding it back in after the migration was complete (the code require the migration to be run before it was run). This is a temporary patch so I am going to work on getting a better solution for future PROD pushes. I'm thinking I can find a way to check if the table exists before running the code, but if anyone knows of a better way please let me know.
system("ruby lib/background_job start")
SquareOrderCleanupJob.set(wait: 10.minute).perform_later()
at_exit do
system("ruby lib/background_job stop")
end
You can check if a table exists, and therefore if migrations have been run:
ActiveRecord::Base.connection.table_exists? 'table_name'
That answer is also in SO here.
I installed redis server by default it's running 6379 port but when i am running sidekiq its not starting, I added in Gemfile gem 'sidekiq', '3.3.0'
please help me out with this problem
thanks in ADVANCE
this is the error
santosh#santosh-Vostro-3560:~/Roorah$ bundle exec sidekiq
Starting up a new ElasticSearch client with
Net::ReadTimeout
/usr/lib/ruby/2.1.0/net/protocol.rb:158:in `rescue in rbuf_fill'
/usr/lib/ruby/2.1.0/net/protocol.rb:152:in `rbuf_fill'
/usr/lib/ruby/2.1.0/net/protocol.rb:134:in `readuntil'
/usr/lib/ruby/2.1.0/net/protocol.rb:144:in `readline'
/usr/lib/ruby/2.1.0/net/http/response.rb:39:in `read_status_line'
/usr/lib/ruby/2.1.0/net/http/response.rb:28:in `read_new'
/usr/lib/ruby/2.1.0/net/http.rb:1408:in `block in transport_request'
/usr/lib/ruby/2.1.0/net/http.rb:1405:in `catch'
/usr/lib/ruby/2.1.0/net/http.rb:1405:in `transport_request'
/usr/lib/ruby/2.1.0/net/http.rb:1378:in `request'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/instrumentation/net.rb:27:in `block (2 levels) in request_with_newrelic_trace'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent.rb:454:in `disable_all_tracing'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/instrumentation/net.rb:26:in `block in request_with_newrelic_trace'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/cross_app_tracing.rb:38:in `tl_trace_http_request'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/instrumentation/net.rb:23:in `request_with_newrelic_trace'
/usr/lib/ruby/2.1.0/net/http.rb:1371:in `block in request'
/usr/lib/ruby/2.1.0/net/http.rb:853:in `start'
/usr/lib/ruby/2.1.0/net/http.rb:1369:in `request'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/instrumentation/net.rb:27:in `block (2 levels) in request_with_newrelic_trace'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent.rb:454:in `disable_all_tracing'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/instrumentation/net.rb:26:in `block in request_with_newrelic_trace'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/cross_app_tracing.rb:43:in `tl_trace_http_request'
/var/lib/gems/2.1.0/gems/newrelic_rpm-3.9.5.251/lib/new_relic/agent/instrumentation/net.rb:23:in `request_with_newrelic_trace'
/var/lib/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:80:in `perform_request'
/var/lib/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/adapter/net_http.rb:39:in `call'
/var/lib/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:139:in `build_response'
/var/lib/gems/2.1.0/gems/faraday-0.9.0/lib/faraday/connection.rb:377:in `run_request'
/var/lib/gems/2.1.0/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:21:in `block in perform_request'
/var/lib/gems/2.1.0/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/base.rb:187:in `call'
/var/lib/gems/2.1.0/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/base.rb:187:in `perform_request'
/var/lib/gems/2.1.0/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/transport/http/faraday.rb:20:in `perform_request'
/var/lib/gems/2.1.0/gems/elasticsearch-transport-1.0.5/lib/elasticsearch/transport/client.rb:104:in `perform_request'
/var/lib/gems/2.1.0/gems/elasticsearch-api-1.0.5/lib/elasticsearch/api/actions/bulk.rb:81:in `bulk'
/var/lib/gems/2.1.0/gems/elasticsearch-model-0.1.6/lib/elasticsearch/model/importing.rb:120:in `block in import'
/var/lib/gems/2.1.0/gems/elasticsearch-model-0.1.6/lib/elasticsearch/model/adapters/active_record.rb:96:in `block in __find_in_batches'
/var/lib/gems/2.1.0/gems/activerecord-4.1.4/lib/active_record/relation/batches.rb:125:in `find_in_batches'
/var/lib/gems/2.1.0/gems/activerecord-4.1.4/lib/active_record/querying.rb:9:in `find_in_batches'
/var/lib/gems/2.1.0/gems/elasticsearch-model-0.1.6/lib/elasticsearch/model/proxy.rb:80:in `method_missing'
/var/lib/gems/2.1.0/gems/elasticsearch-model-0.1.6/lib/elasticsearch/model/adapters/active_record.rb:95:in `__find_in_batches'
/var/lib/gems/2.1.0/gems/elasticsearch-model-0.1.6/lib/elasticsearch/model/importing.rb:119:in `import'
/var/lib/gems/2.1.0/gems/elasticsearch-model-0.1.6/lib/elasticsearch/model.rb:112:in `import'
/home/santosh/Roorah/app/models/city_coordinate.rb:8:in `<top (required)>'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `load'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in `block in load_file'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in `new_constants_in'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in `load_file'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in `require_or_load'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in `depend_on'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in `require_dependency'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `each'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:467:in `block in eager_load!'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `each'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:465:in `eager_load!'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/engine.rb:346:in `eager_load!'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `each'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:30:in `run'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
/usr/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
/usr/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
/usr/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
/usr/lib/ruby/2.1.0/tsort.rb:345:in `each'
/usr/lib/ruby/2.1.0/tsort.rb:345:in `call'
/usr/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
/usr/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
/usr/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/initializable.rb:54:in `run_initializers'
/var/lib/gems/2.1.0/gems/railties-4.1.4/lib/rails/application.rb:300:in `initialize!'
/home/santosh/Roorah/config/environment.rb:5:in `<top (required)>'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support /dependencies.rb:247:in `require'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `block in require'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:232:in `load_dependency'
/var/lib/gems/2.1.0/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'
/var/lib/gems/2.1.0/gems/sidekiq-3.3.0/lib/sidekiq/cli.rb:236:in `boot_system'
/var/lib/gems/2.1.0/gems/sidekiq-3.3.0/lib/sidekiq/cli.rb:50:in `run'
/var/lib/ gems/2.1.0/gems/sidekiq-3.3.0/bin/sidekiq:8:in `<top (required)>'
/usr/local/bin/sidekiq:23:in `load'
Here is the city_coordinate model
class CityCoordinate < ActiveRecord::Base
include Elasticsearch::Model
include Elasticsearch::Model::Callbacks
# Elasticsearch::Model.client = Elasticsearch::Client.new url: ENV['BONSAI_URL'], log: true
end
CityCoordinate.import