We’re running a RAILS 6.1.4.1 with ruby 3.0.2.
Our database is restored through a structure.sql.
VMs are running on Ubuntu latest stable version (18.04 is also failing).
The following command is failing with undefined method `hooks’
RAILS_ENV=test bin/rails db:drop && bin/rails db:create && bin/rails db:structure:load && bin/rails db:test:prepare
No luck with a simpler one
RAILS_ENV=test bin/rails db:setup
Everything goes fine locally (if we don’t forget to run bin/rails db:test:prepare
).
Failure Logs
NoMethodError: undefined method `hooks’ for nil:NilClass
38/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb:61:in `block (2 levels) in generate_action_hooks’
39/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb:***8:in `each’
40/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb:***8:in `block in generate_action_hooks’
41/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb:***7:in `each’
42/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb:***7:in `generate_action_hooks’
43/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb:84:in `generate_apimap’
44/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/.0.0/gems/forest_liana-6.6.2/lib/forest_liana/bootstrapper.rb::in `initialize’
45/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/engine.rb:88:in `new’
46/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/forest_liana-6.6.2/lib/forest_liana/engine.rb:88:in `block in class:Engine’
47/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:68:in `block in execute_hook’
48/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control’
49/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook’
50/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:***2:in `block in run_load_hooks’
51/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:***1:in `each’
52/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/activesupport-6.1.4.1/lib/active_support/lazy_load_hooks.rb:***1:in `run_load_hooks’
53/home/runner/work/okarito-api/okarito-api/vendor/bundle/ruby/***.0.0/gems/railties-6.1.4.1/lib/rails/application/finisher.rb:140:in `block in module:Finisher’
Context
See on top of post:
- Database Dialect: Postgresql
- Database Version: 11.x