Problem with restarting after upgrade to Ruby 2.7.2 and Rails 6.0.3 (delayed_jobs 4.1.8)

99 views
Skip to first unread message

Nico Clever

unread,
Nov 27, 2020, 12:43:12 PM11/27/20
to delayed_job
Hi everybody,

I tried it on Stackoverflow already (here), but cannot leave an option out, thus, I am trying it here, as well. I have an application using delayed_jobs (4.1.8) for background imports and recently upgraded to Ruby 2.7.2 and Rails 6.0.3. Now my deployment with capistrano (3.14.1) is not working any longer, the error thrown is the following:

DEBUG [29f445a9] /var/www/my_app/shared/bundle/ruby/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:34:in `require': No such file to load -- et_tag_helper.rb (LoadError) DEBUG [29f445a9] from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:324:in `block in require' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:291:in `load_dependency' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:324:in `require' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:411:in `block in require_or_load' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:40:in `block in load_interlock' DEBUG [29f445a9] from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies/interlock.rb:14:in `block in loading' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/concurrency/share_lock.rb:151:in `exclusive' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies/interlock.rb:13:in `loading' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:40:in `load_interlock' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:389:in `require_or_load' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/active_support.rb:49:in `block in require_or_load' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/active_support.rb:17:in `allow_bootsnap_retry' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in `require_or_load' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:367:in `depend_on' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/bootsnap-1.5.1/lib/bootsnap/load_path_cache/core_ext/active_support.rb:86:in `depend_on' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/activesupport-6.0.3.4/lib/active_support/dependencies.rb:280:in `require_dependency' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:481:in `block (2 levels) in eager_load!' DEBUG [29f445a9] from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:480:in `each' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:480:in `block in eager_load!' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:477:in `each' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:477:in `eager_load!' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/application.rb:509:in `eager_load!' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/engine.rb:356:in `eager_load!' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/application/finisher.rb:123:in `each' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/application/finisher.rb:123:in `block in <module:Finisher>' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/initializable.rb:32:in `instance_exec' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/initializable.rb:32:in `run' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/initializable.rb:61:in `block in run_initializers' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' DEBUG [29f445a9] from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `call' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/initializable.rb:60:in `run_initializers' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/application.rb:363:in `initialize!' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `public_send' from /var/www/my_app/shared/bundle/ruby/2.7.0/gems/railties-6.0.3.4/lib/rails/railtie.rb:190:in `method_missing' from /var/www/my_app/releases/20201126164219/config/environment.rb:5:in `<top (required)>' DEBUG [29f445a9] from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require' from /home/deploy/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require' from script/delayed_job:3:in `<main>'  

I figured out that the file that is missing (et_tag_helper.rb) should be asset_tag_helper.rb placed in the lib folder (lib/asset_tag_helper.rb).

I have tried everything to my best of knowledge, but I cannot figure out how to resolve this issue. Clearing the cache of the bootsnap gem (which is used to speed up booting the app) does not help. Manually stopping and starting the delayed_job worker(s) does not help, as well. I have read that from Rails 4 on, the delayed_job script was placed under bin and not under script anymore, but under Rails 5 it was working fine, so this cannot be the deal?

Any help is greatly appreciated.

Reply all
Reply to author
Forward
0 new messages