-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `eager_autoload!' for Mail:Module #1553
Comments
We were also hitting this. While troubleshooting, the error would match the original post above, but also sometimes it would be
ruby 2.7.7 |
We also ran into this issue, and found it was caused by the incorrect file permissions in 2.8.0 bug. Pinning mail version to |
Merged
4 tasks
Closing as this was related to the permission problem which is fixed as of |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ruby 2.7.0
rails 6.1.6.1
mail 2.8.0
config/environments/production.rb :
config.eager_load = true
exception :
[21756] ! Unable to start worker
'[21756] undefined method
eager_autoload!' for Mail:Module [21756] /var/app/current/vendor/bundle/ruby/2.7.0/gems/actionmailer-6.1.6.1/lib/action_mailer.rb:61:in
eager_load!'/var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:134:in
each' /var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/application/finisher.rb:134:in
block in module:Finisher'/var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in
instance_exec' /var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:32:in
run'/var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:61:in
block in run_initializers' /opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:228:in
block in tsort_each'/opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component' /opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:431:in
each_strongly_connected_component_from'/opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:349:in
block in each_strongly_connected_component' /opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:347:in
each'/opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:347:in
call' /opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:347:in
each_strongly_connected_component'/opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:226:in
tsort_each' /opt/rubies/ruby-2.7.7/lib/ruby/2.7.0/tsort.rb:205:in
tsort_each'/var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/initializable.rb:60:in
run_initializers' /var/app/current/vendor/bundle/ruby/2.7.0/gems/railties-6.1.6.1/lib/rails/application.rb:391:in
initialize!'/var/app/current/config/environment.rb:6:in
<top (required)>' config.ru:3:in
require_relative'config.ru:3:in
block in <main>' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/rack/builder.rb:186:in
instance_eval'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/rack/builder.rb:186:in
initialize' config.ru:in
new'config.ru:in
<main>' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/rack/builder.rb:172:in
eval'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/rack/builder.rb:172:in
new_from_string' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/rack/builder.rb:163:in
parse_file'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/configuration.rb:364:in
load_rackup' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/configuration.rb:286:in
app'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/runner.rb:169:in
app' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/runner.rb:173:in
start_server'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster/worker.rb:60:in
run' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:208:in
worker'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:101:in
block in spawn_worker' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:101:in
fork'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:101:in
spawn_worker' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:83:in
block in spawn_workers'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:76:in
times' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:76:in
spawn_workers'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:165:in
check_workers' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cluster.rb:438:in
run'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/launcher.rb:186:in
run' /opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/lib/puma/cli.rb:75:in
run'/opt/rubies/ruby-2.7.7/lib/ruby/gems/2.7.0/gems/puma-6.0.0/bin/puma:10:in
<top (required)>' /opt/elasticbeanstalk/.rbenv/versions/2.7.7/bin/puma:25:in
load'/opt/elasticbeanstalk/.rbenv/versions/2.7.7/bin/puma:25:in `
with mail 2.7.1, it works fine
The text was updated successfully, but these errors were encountered: