After recently upgrading to Rails 5.2 from 4.2 I am trying to test production but this occurs everytime I start.
Traceback (most recent call last):
55: from script/rails:6:in `<main>'
54: from script/rails:6:in `require'
53: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/commands.rb:18:in `<top (required)>'
52: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/command.rb:46:in `invoke'
51: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/command/base.rb:69:in `perform'
50: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
49: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
48: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
47: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/commands/console/console_command.rb:95:in `perform'
46: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
45: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/command/actions.rb:28:in `require_environment!'
44: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/application.rb:337:in `require_environment!'
43: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `require'
42: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:257:in `load_dependency'
41: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `block in require'
40: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `require'
39: from /home/deploy/DSM/config/environment.rb:5:in `<top (required)>'
38: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/railtie.rb:190:in `method_missing'
37: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/railtie.rb:190:in `public_send'
36: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/application.rb:361:in `initialize!'
35: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/initializable.rb:60:in `run_initializers'
34: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
33: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
32: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
31: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `call'
30: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:347:in `each'
29: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
28: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
27: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
26: from /home/deploy/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
25: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/initializable.rb:61:in `block in run_initializers'
24: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/initializable.rb:32:in `run'
23: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/initializable.rb:32:in `instance_exec'
22: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
21: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/application/finisher.rb:69:in `each'
20: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/engine.rb:356:in `eager_load!'
19: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/engine.rb:475:in `eager_load!'
18: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/engine.rb:475:in `each'
17: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/engine.rb:477:in `block in eager_load!'
16: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/engine.rb:477:in `each'
15: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.3/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
14: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:246:in `require_dependency'
13: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:334:in `depend_on'
12: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:356:in `require_or_load'
11: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:37:in `load_interlock'
10: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:13:in `loading'
9: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
8: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
7: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:37:in `block in load_interlock'
6: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:378:in `block in require_or_load'
5: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `require'
4: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:257:in `load_dependency'
3: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `block in require'
2: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.3/lib/active_support/dependencies.rb:291:in `require'
1: from /home/deploy/.rvm/gems/ruby-2.5.1/gems/activestorage-5.2.4.3/app/jobs/active_storage/purge_job.rb:4:in `<top (required)>'
/home/deploy/.rvm/gems/ruby-2.5.1/gems/activestorage-5.2.4.3/app/jobs/active_storage/purge_job.rb:5:in `<class:PurgeJob>': undefined method `discard_on' for ActiveStorage::PurgeJob:Class (NoMethodError)
The following doesn't happen in development/test or with eager_load disabled in production.rb, which makes sense.
I am using rvm (2.5.1, 2.5.0, 2.6.5) tried all three.
rails -v: Rails 5.2.4.3
These are built in methods so I'm not sure best way to TS/resolve.
So I figured it out.
I had attempted to go to rails 6 but there was too much that needed to be changed. In doing so I had activejob_backport-0.0.3 in my rvm gems directory and after removing it, the issue no longer occurred.
Related
I need to customize few state machines' behaviour for our business requirement and followed the documentation for the solidus recommended way of replacing an existing state machine. However, I am not being able to do so this way. Do I have to do something extra besides the fact mentioned in the documentation ? I can also think of an alternative way of clearing out existing states and events for the models and redefining the state machines required in the models themselves. However, I prefer to go with this way if possible.
Here, the application traceback for the issue.
DEPRECATION WARNING: Devise::Models::Authenticatable::BLACKLIST_FOR_SERIALIZATION is deprecated! Use Devise::Models::Authenticatable::UNSAFE_ATTRIBUTES_FOR_SERIALIZATION instead. (called from <main> at /home/sis/Bajra/adguru/config/application.rb:27)
=> Booting Puma
=> Rails 6.0.3.7 application starting in development
=> Run `rails server --help` for more startup options
Exiting
Traceback (most recent call last):
69: from bin/rails:3:in `<main>'
68: from bin/rails:3:in `load'
67: from /home/sis/Bajra/adguru/bin/spring:15:in `<top (required)>'
66: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
65: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
64: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `<top (required)>'
63: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/binstub.rb:11:in `load'
62: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/bin/spring:49:in `<top (required)>'
61: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client.rb:30:in `run'
60: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/command.rb:7:in `call'
59: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `call'
58: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/spring-2.1.1/lib/spring/client/rails.rb:28:in `load'
57: from /home/sis/Bajra/adguru/bin/rails:9:in `<top (required)>'
56: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
55: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
54: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/commands.rb:18:in `<main>'
53: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/command.rb:46:in `invoke'
52: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/command/base.rb:69:in `perform'
51: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
50: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
49: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
48: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:138:in `perform'
47: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:138:in `tap'
46: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:147:in `block in perform'
45: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:37:in `start'
44: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
43: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
42: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
41: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
40: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
39: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
38: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
37: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
36: from config.ru:5:in `block in <main>'
35: from config.ru:5:in `require_relative'
34: from /home/sis/Bajra/adguru/config/environment.rb:7:in `<main>'
33: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/application.rb:363:in `initialize!'
32: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/initializable.rb:60:in `run_initializers'
31: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
30: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
29: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
28: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `call'
27: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:347:in `each'
26: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
25: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
24: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:415:in `call'
23: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/initializable.rb:50:in `tsort_each_child'
22: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/initializable.rb:50:in `each'
21: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
20: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
19: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
18: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
17: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
16: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/initializable.rb:61:in `block in run_initializers'
15: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/initializable.rb:32:in `run'
14: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/initializable.rb:32:in `instance_exec'
13: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/engine.rb:624:in `block in <class:Engine>'
12: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/engine.rb:624:in `each'
11: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/engine.rb:625:in `block (2 levels) in <class:Engine>'
10: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/engine.rb:665:in `load_config_initializer'
9: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.7/lib/active_support/notifications.rb:182:in `instrument'
8: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/railties-6.0.3.7/lib/rails/engine.rb:666:in `block in load_config_initializer'
7: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in `load'
6: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:291:in `load_dependency'
5: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:318:in `block in load'
4: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:39:in `load'
3: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/bootsnap-1.11.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:39:in `load'
2: from /home/sis/Bajra/adguru/config/initializers/spree.rb:6:in `<main>'
1: from /home/sis/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/solidus_core-2.10.0.beta1/lib/spree/core.rb:45:in `config'
/home/sis/Bajra/adguru/config/initializers/spree.rb:22:in `block in <main>': undefined method `state_machines' for #<Spree::AppConfiguration:0x000055cc946bb3c0> (NoMethodError)
you are using an old version of Solidus. The feature described in the guides you linked, which allows using a different class for your state machines, refers to more recent versions (2.11+ if I recall correctly).
If you want you can still customize your state machines by monkey patching them. For example, to change the Order state machine:
# app/overrides/your_store/order/do_stuff_after_confirm.rb
module YourStore
module Order
module DoStuffAfterConfirm
def self.prepended(base)
base.state_machine.after_transition to: :confirm, do: :your_business!
end
def your_business!
# ...
end
Spree::Order.prepend self
end
end
end
I've been suffering from this issue for a rather long time and have mostly put up with it but I can't anymore. I have tried to look for a solution to no avail.
Whenever I try to perform a ruby/rails call from my terminal, I am missing the first line of any error output.
As you can see in the example below, the first line, which includes the actual error message, is missing.
For more info:
I am running Ubuntu 20.04 with a zsh/oh-my-zsh shell, but this also happens in bash. This has been happening for several versions of ruby now.
Example:
➜ CODE_BASE git:(branch_name) ✗ rails routes
Traceback (most recent call last):
42: from bin/rails:9:in `<main>'
41: from bin/rails:9:in `require'
40: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/commands.rb:18:in `<top (required)>'
39: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/command.rb:48:in `invoke'
38: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/command/base.rb:69:in `perform'
37: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
36: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
35: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
34: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/commands/routes/routes_command.rb:13:in `perform'
33: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
32: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/command/actions.rb:28:in `require_environment!'
31: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application.rb:367:in `require_environment!'
30: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
29: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
28: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `block in require'
27: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:332:in `require'
26: from /home/penguin/Projects/CODE_BASE/config/environment.rb:5:in `<top (required)>'
25: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application.rb:391:in `initialize!'
24: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/initializable.rb:60:in `run_initializers'
23: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
22: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
21: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
20: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:347:in `call'
19: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:347:in `each'
18: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
17: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
16: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
15: from /usr/share/rvm/rubies/ruby-2.7.6/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
14: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/initializable.rb:61:in `block in run_initializers'
13: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `run'
12: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/initializable.rb:32:in `instance_exec'
11: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/finisher.rb:195:in `block in <module:Finisher>'
10: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/routes_reloader.rb:10:in `execute'
9: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/file_update_checker.rb:83:in `execute'
8: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/routes_reloader.rb:35:in `block in updater'
7: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/routes_reloader.rb:21:in `reload!'
6: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/routes_reloader.rb:47:in `load_paths'
5: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/routes_reloader.rb:47:in `each'
4: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/railties-6.1.4.1/lib/rails/application/routes_reloader.rb:47:in `block in load_paths'
3: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `load'
2: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:299:in `load_dependency'
1: from /home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `block in load'
/home/penguin/.rvm/gems/ruby-2.7.6/gems/activesupport-6.1.4.1/lib/active_support/dependencies.rb:326:in `load':
I am getting this error while creating a migration. I'm using MySQL as the database, with rails 6.0.3.2 and ruby 2.6.6
the full error is
Traceback (most recent call last):
51: from bin/rails:4:in `<main>'
50: from bin/rails:4:in `require'
49: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands.rb:18:in `<top (required)>'
48: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/command.rb:46:in `invoke'
47: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/command/base.rb:69:in `perform'
46: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
45: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
44: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
43: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/generate/generate_command.rb:21:in `perform'
42: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/command/actions.rb:15:in `require_application_and_environment!'
41: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/command/actions.rb:28:in `require_environment!'
40: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:339:in `require_environment!'
39: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
38: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
37: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
36: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:34:in `require'
35: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/zeitwerk-2.4.0/lib/zeitwerk/kernel.rb:34:in `require'
34: from C:/Users/Ritvik/Desktop/railsProjs/bkpk/config/environment.rb:5:in `<top (required)>'
33: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/application.rb:363:in `initialize!'
32: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:60:in `run_initializers'
31: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
30: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
29: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
28: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `call'
27: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:347:in `each'
26: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
25: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
24: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
23: from C:/Ruby26-x64/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
22: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
21: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `run'
20: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/railties-6.0.3.2/lib/rails/initializable.rb:32:in `instance_exec'
19: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/railtie.rb:4:in `block in <class:Railtie>'
18: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `on_load'
17: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:42:in `each'
16: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:43:in `block in on_load'
15: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
14: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/railtie.rb:5:in `block (2 levels) in <class:Railtie>'
10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/loader.rb:3:in `load'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/loader.rb:3:in `module_eval'
8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/loader.rb:5:in `block in load'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/loader.rb:5:in `include'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/schema_definitions.rb:5:in `included'
5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/schema_definitions.rb:5:in `class_eval'
4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/schema_definitions.rb:6:in `block in included'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/schema_definitions.rb:6:in `include'
2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/concern.rb:122:in `append_features'
1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/concern.rb:122:in `class_eval'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/foreigner-1.7.4/lib/foreigner/connection_adapters/abstract/table.rb:7:in `block in <module:Table>': undefined method `alias_method_chain' for ActiveRecord::ConnectionAdapters::Table:Class (NoMethodError)
Did you mean? alias_method
I've looked at similar errors on stackoverflow, but haven't found a solution to my problem.
The gemfile has gem 'mysql2', '>= 0.4.4'. I tried it on MySQL 0.5.3 but still no luck.
Do you have foreigner gem in your gemfile ? Can you try removing it, doing a bundle install and retry ? According to the documentation of the gem it was rendered obsolete from rails 4.2 as rails added native support for the feature.
If it is not in your gemfile, you need to check what gem depends on it.
This is what I get when I type rails s. I've updated bundle, gems, rails everything I can possibly think of. How do I run this on local host 3000?
=> Rails 5.1.7 application starting in development
=> Run `rails server -h` for more startup options
Exiting
Traceback (most recent call last):
66: from bin/rails:4:in `<main>'
65: from bin/rails:4:in `require'
64: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands.rb:16:in `<top (required)>'
63: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/command.rb:44:in `invoke'
62: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/command/base.rb:63:in `perform'
61: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
60: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
59: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
58: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:130:in `perform'
57: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:130:in `tap'
56: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:135:in `block in perform'
55: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:42:in `start'
54: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:80:in `log_to_stdout'
53: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
52: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:24:in `app'
51: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
50: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
49: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
48: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
47: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
46: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
45: from config.ru:3:in `block in <main>'
44: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
43: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
42: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
41: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
40: from /Users/kevinchoi/projects/resources/misc/teachpulse/config/environment.rb:8:in `<top (required)>'
39: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:353:in `initialize!'
38: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:58:in `run_initializers'
37: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
36: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
35: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
34: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `call'
33: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `each'
32: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
31: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
30: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
29: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
28: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:59:in `block in run_initializers'
27: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `run'
26: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `instance_exec'
25: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/railtie.rb:120:in `block in <class:Railtie>'
24: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:40:in `on_load'
23: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:40:in `each'
22: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:41:in `block in on_load'
21: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:65:in `execute_hook'
20: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:60:in `with_execution_control'
19: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:69:in `block in execute_hook'
18: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:69:in `instance_eval'
17: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/railtie.rb:124:in `block (2 levels) in <class:Railtie>'
16: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_handling.rb:58:in `establish_connection'
15: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `establish_connection'
14: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/connection_specification.rb:186:in `spec'
13: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
12: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
11: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
10: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
9: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:3:in `<top (required)>'
8: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
7: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
6: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
5: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
4: from /Library/Ruby/Gems/2.6.0/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
3: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
2: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
1: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
/Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/pg-1.2.3/lib/pg_ext.bundle, 0x0009): dependent dylib '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' not found for '/usr/local/Cellar/postgresql/11.1/lib/libpq.5.11.dylib' - /Library/Ruby/Gems/2.6.0/gems/pg-1.2.3/lib/pg_ext.bundle (LoadError)
66: from bin/rails:4:in `<main>'
65: from bin/rails:4:in `require'
64: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands.rb:16:in `<top (required)>'
63: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/command.rb:44:in `invoke'
62: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/command/base.rb:63:in `perform'
61: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
60: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
59: from /Library/Ruby/Gems/2.6.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
58: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:130:in `perform'
57: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:130:in `tap'
56: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:135:in `block in perform'
55: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:42:in `start'
54: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:80:in `log_to_stdout'
53: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:422:in `wrapped_app'
52: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/commands/server/server_command.rb:24:in `app'
51: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:249:in `app'
50: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/server.rb:349:in `build_app_and_options_from_config'
49: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:66:in `parse_file'
48: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:105:in `load_file'
47: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `new_from_string'
46: from /Library/Ruby/Gems/2.6.0/gems/rack-2.2.2/lib/rack/builder.rb:116:in `eval'
45: from config.ru:3:in `block in <main>'
44: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
43: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
42: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
41: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
40: from /Users/kevinchoi/projects/resources/misc/teachpulse/config/environment.rb:8:in `<top (required)>'
39: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/application.rb:353:in `initialize!'
38: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:58:in `run_initializers'
37: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
36: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
35: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
34: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `call'
33: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:347:in `each'
32: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
31: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
30: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
29: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
28: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:59:in `block in run_initializers'
27: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `run'
26: from /Library/Ruby/Gems/2.6.0/gems/railties-5.1.7/lib/rails/initializable.rb:30:in `instance_exec'
25: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/railtie.rb:120:in `block in <class:Railtie>'
24: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:40:in `on_load'
23: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:40:in `each'
22: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:41:in `block in on_load'
21: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:65:in `execute_hook'
20: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:60:in `with_execution_control'
19: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:69:in `block in execute_hook'
18: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/lazy_load_hooks.rb:69:in `instance_eval'
17: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/railtie.rb:124:in `block (2 levels) in <class:Railtie>'
16: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_handling.rb:58:in `establish_connection'
15: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `establish_connection'
14: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/connection_specification.rb:186:in `spec'
13: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
12: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
11: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
10: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
9: from /Library/Ruby/Gems/2.6.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/postgresql_adapter.rb:3:in `<top (required)>'
8: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
7: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
6: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
5: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
4: from /Library/Ruby/Gems/2.6.0/gems/pg-1.2.3/lib/pg.rb:5:in `<top (required)>'
3: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require'
2: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:258:in `load_dependency'
1: from /Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `block in require'
/Library/Ruby/Gems/2.6.0/gems/activesupport-5.1.7/lib/active_support/dependencies.rb:292:in `require': Could not load 'active_record/connection_adapters/postgresql_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. (LoadError)
The last line of the logs:
Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. (LoadError)
Here for PostgreSQL. you can checkout a sample database.yml config file, or if you are using another adapter, add the gem to your Gemfile
eager_load = true will crash the application on boot up. This has been tested on both my local machine and server trying to boot in production. Setting eager_load to false will fix the problem but i would like to have eager load on.
I've checked the stack trace, nothing like undefined variables can be seen. I put eagerload to true in development and it works which is the strange thing.
I went through and tested all controllers and models in case something was being loading without being defined.
RAILS_ENV=production rails s
=> Booting Puma
=> Rails 5.2.3 application starting in production
=> Run `rails server -h` for more startup options
Exiting
Traceback (most recent call last):
109: from bin/rails:3:in `<main>'
108: from bin/rails:3:in `load'
107: from /home/andrew/workspace/kanadash/bin/spring:15:in `<top (required)>'
106: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
105: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
104: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<top (required)>'
103: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `load'
102: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/bin/spring:49:in `<top (required)>'
101: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client.rb:30:in `run'
100: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/command.rb:7:in `call'
99: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `call'
98: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/spring-2.1.0/lib/spring/client/rails.rb:28:in `load'
97: from /home/andrew/workspace/kanadash/bin/rails:9:in `<top (required)>'
96: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
95: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
94: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
93: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
92: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
91: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
90: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
89: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
88: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands.rb:18:in `<main>'
87: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/command.rb:46:in `invoke'
86: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/command/base.rb:65:in `perform'
85: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
84: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
83: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
82: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `perform'
81: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:142:in `tap'
80: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:147:in `block in perform'
79: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:53:in `start'
78: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:283:in `start'
77: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:354:in `wrapped_app'
76: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/commands/server/server_command.rb:27:in `app'
75: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:219:in `app'
74: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/server.rb:319:in `build_app_and_options_from_config'
73: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:40:in `parse_file'
72: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `new_from_string'
71: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:49:in `eval'
70: from config.ru:in `<main>'
69: from config.ru:in `new'
68: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `initialize'
67: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rack-2.0.7/lib/rack/builder.rb:55:in `instance_eval'
66: from config.ru:3:in `block in <main>'
65: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:48:in `require_relative'
64: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
63: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
62: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
61: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
60: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
59: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
58: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
57: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
56: from /home/andrew/workspace/kanadash/config/environment.rb:5:in `<main>'
55: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
54: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
53: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
52: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
51: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
50: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `call'
49: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:347:in `each'
48: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
47: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
46: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
45: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
44: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
43: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
42: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
41: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
40: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/application/finisher.rb:69:in `each'
39: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:356:in `eager_load!'
38: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `eager_load!'
37: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:475:in `each'
36: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `block in eager_load!'
35: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:477:in `each'
34: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-5.2.3/lib/rails/engine.rb:478:in `block (2 levels) in eager_load!'
33: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:246:in `require_dependency'
32: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:85:in `depend_on'
31: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:334:in `depend_on'
30: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:47:in `require_or_load'
29: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:16:in `allow_bootsnap_retry'
28: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/active_support.rb:48:in `block in require_or_load'
27: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:356:in `require_or_load'
26: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `load_interlock'
25: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:13:in `loading'
24: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/concurrency/share_lock.rb:151:in `exclusive'
23: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies/interlock.rb:14:in `block in loading'
22: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:37:in `block in load_interlock'
21: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:378:in `block in require_or_load'
20: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `require'
19: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:257:in `load_dependency'
18: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/dependencies.rb:291:in `block in require'
17: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
16: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
15: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
14: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
13: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
12: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:16:in `<main>'
11: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activestorage-5.2.3/app/models/active_storage/blob.rb:235:in `<class:Blob>'
10: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
9: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:51:in `each'
8: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
7: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:67:in `execute_hook'
6: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:62:in `with_execution_control'
5: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
4: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-5.2.3/lib/active_support/lazy_load_hooks.rb:71:in `instance_eval'
3: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activestorage-5.2.3/lib/active_storage/engine.rb:95:in `block (2 levels) in <class:Engine>'
2: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/erb.rb:901:in `result'
1: from /home/andrew/.rbenv/versions/2.6.3/lib/ruby/2.6.0/erb.rb:901:in `eval'
(erb):11:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)
I expected either the development server to not start up with eager_load true or the production server to start up with eager_load true. It's really strange eager_load works in development but not production.