Issue with starting delayed_job ...

16 views
Skip to first unread message

Sonny Chee

unread,
Apr 21, 2022, 7:54:11 PMApr 21
to delayed_job
Hey Guys,

So, when I attempt to start delayed_job worker on my development server (I don't get this message on my production server) I get the following error message and backtrace. Strangely enough, the workers do get started as the status message reveals their presence...

Any help would be appreciated. 

>> RAILS_ENV=development script/delayed_job -n 2 start
delayed_job.0: process with pid 26594 started.
E, [2022-04-21T11:46:25.542405 #26594] ERROR -- : Exception rescued in listen-run_thread:
IOError: closed stream
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:317:in `select'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:317:in `readpartial'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:290:in `read_events'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:263:in `process'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:236:in `block in run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:232:in `synchronize'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:232:in `run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/adapter/linux.rb:38:in `_run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/adapter/base.rb:79:in `block in start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/thread.rb:26:in `rescue_and_log'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/thread.rb:18:in `block in new'
--- Thread.new ---
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/adapter/base.rb:75:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/3.0.0/forwardable.rb:238:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/listener.rb:71:in `block in <class:Listener>'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:124:in `instance_eval'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:124:in `call'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:105:in `transition_with_callbacks!'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:72:in `transition'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/listener.rb:92:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/evented_file_update_checker.rb:109:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/evented_file_update_checker.rb:89:in `block in initialize'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:38:in `each'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:38:in `check!'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:14:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:27:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:13:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:27:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/daemonize.rb:10:in `safefork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/daemonize.rb:67:in `call_as_daemon'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/application.rb:281:in `start_proc'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/application.rb:307:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/controller.rb:56:in `run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons.rb:199:in `block in run_proc'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/cmdline.rb:124:in `catch_exceptions'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons.rb:198:in `run_proc'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:123:in `run_process'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:104:in `block in daemonize'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:102:in `times'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:102:in `daemonize'
script/delayed_job:6:in `<main>'
E, [2022-04-21T11:46:25.608722 #26604] ERROR -- : Exception rescued in listen-run_thread:
IOError: closed stream
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:317:in `select'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:317:in `readpartial'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:290:in `read_events'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:263:in `process'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:236:in `block in run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:232:in `synchronize'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:232:in `run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/adapter/linux.rb:38:in `_run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/adapter/base.rb:79:in `block in start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/thread.rb:26:in `rescue_and_log'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/thread.rb:18:in `block in new'
--- Thread.new ---
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/adapter/base.rb:75:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/3.0.0/forwardable.rb:238:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/listener.rb:71:in `block in <class:Listener>'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:124:in `instance_eval'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:124:in `call'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:105:in `transition_with_callbacks!'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/fsm.rb:72:in `transition'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/listen-3.7.1/lib/listen/listener.rb:92:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/evented_file_update_checker.rb:109:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/evented_file_update_checker.rb:89:in `block in initialize'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:38:in `each'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:38:in `check!'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:14:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:27:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:13:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/activesupport-6.1.5/lib/active_support/fork_tracker.rb:27:in `fork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/daemonize.rb:10:in `safefork'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/daemonize.rb:67:in `call_as_daemon'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/application.rb:281:in `start_proc'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/application.rb:307:in `start'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/controller.rb:56:in `run'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons.rb:199:in `block in run_proc'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons/cmdline.rb:124:in `catch_exceptions'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/daemons-1.4.1/lib/daemons.rb:198:in `run_proc'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:123:in `run_process'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:104:in `block in daemonize'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:102:in `times'
/home/sonnychee/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/delayed_job-4.1.10/lib/delayed/command.rb:102:in `daemonize'
script/delayed_job:6:in `<main>'
delayed_job.1: process with pid 26604 started.

>> RAIL_ENV=development script/delayed_job -n 2 status
delayed_job.0: running [pid 26594]
delayed_job.1: running [pid 26604]
Reply all
Reply to author
Forward
0 new messages