We've moved discussions to Discord

ActsAsTenant::Errors::NoTenantSet:

Lance Foley
Upon deployment to Heroku,  I am getting this error and the application will not load, development works just fine causing app to crash code=H10
Lance Foley
2022-09-07T16:25:05.000000+00:00 app[api]: Build succeeded
2022-09-07T16:34:20.000000+00:00 app[api]: Build started by user lancef************.com
2022-09-07T16:35:40.255860+00:00 heroku[web.1]: State changed from crashed to starting
2022-09-07T16:35:38.962837+00:00 app[api]: Deploy 12280f79 by user lancef************.com
2022-09-07T16:35:38.962837+00:00 app[api]: Release v28 created by user lancef************.com
2022-09-07T16:35:48.265407+00:00 heroku[web.1]: Starting process with command `bin/rails server`
2022-09-07T16:35:52.032175+00:00 app[web.1]: => Booting Puma
2022-09-07T16:35:52.032183+00:00 app[web.1]: => Rails 7.0.3.1 application starting in production 
2022-09-07T16:35:52.032183+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2022-09-07T16:35:53.193190+00:00 app[web.1]: Exiting
2022-09-07T16:35:53.193405+00:00 app[web.1]: /app/vendor/bundle/ruby/3.1.0/gems/acts_as_tenant-0.5.2/lib/acts_as_tenant/model_extensions.rb:20:in `block in acts_as_tenant': ActsAsTenant::Errors::NoTenantSet (ActsAsTenant::Errors::NoTenantSet)
2022-09-07T16:35:53.193414+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:153:in `instance_exec'
2022-09-07T16:35:53.193429+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:153:in `block (2 levels) in build_default_scope'
2022-09-07T16:35:53.193430+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:149:in `each'
2022-09-07T16:35:53.193431+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:149:in `inject'
2022-09-07T16:35:53.193431+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:149:in `block in build_default_scope'
2022-09-07T16:35:53.193432+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:185:in `evaluate_default_scope'
2022-09-07T16:35:53.193433+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/default.rb:148:in `build_default_scope'
2022-09-07T16:35:53.193441+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/named.rb:46:in `default_scoped'
2022-09-07T16:35:53.193444+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.3.1/lib/active_record/scoping/named.rb:32:in `all'
2022-09-07T16:35:53.193453+00:00 app[web.1]: from /app/app/models/e_rating.rb:3:in `<class:ERating>'
2022-09-07T16:35:53.193455+00:00 app[web.1]: from /app/app/models/e_rating.rb:1:in `<main>'
2022-09-07T16:35:53.193463+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-09-07T16:35:53.193465+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-09-07T16:35:53.193474+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/kernel.rb:27:in `require'
2022-09-07T16:35:53.193475+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:127:in `const_get'
2022-09-07T16:35:53.193483+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:127:in `cget'
2022-09-07T16:35:53.193485+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:239:in `block (2 levels) in eager_load'
2022-09-07T16:35:53.193493+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:41:in `block in ls'
2022-09-07T16:35:53.193495+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:27:in `each'
2022-09-07T16:35:53.193503+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader/helpers.rb:27:in `ls'
2022-09-07T16:35:53.193505+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:234:in `block in eager_load'
2022-09-07T16:35:53.193513+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:219:in `synchronize'
2022-09-07T16:35:53.193515+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:219:in `eager_load'
2022-09-07T16:35:53.193523+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:318:in `each'
2022-09-07T16:35:53.193525+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.0/lib/zeitwerk/loader.rb:318:in `eager_load_all'
2022-09-07T16:35:53.193533+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
2022-09-07T16:35:53.193534+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `instance_exec'
2022-09-07T16:35:53.193543+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:32:in `run'
2022-09-07T16:35:53.193545+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-09-07T16:35:53.193553+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:228:in `block in tsort_each'
2022-09-07T16:35:53.193555+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2022-09-07T16:35:53.193563+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:431:in `each_strongly_connected_component_from'
2022-09-07T16:35:53.193564+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:349:in `block in each_strongly_connected_component'
2022-09-07T16:35:53.193573+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-09-07T16:35:53.193574+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-09-07T16:35:53.193582+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each_strongly_connected_component'
2022-09-07T16:35:53.193584+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-09-07T16:35:53.193591+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-09-07T16:35:53.193593+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/initializable.rb:60:in `run_initializers'
2022-09-07T16:35:53.193601+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/application.rb:372:in `initialize!'
2022-09-07T16:35:53.193602+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2022-09-07T16:35:53.193611+00:00 app[web.1]: from config.ru:3:in `require_relative'
2022-09-07T16:35:53.193612+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-09-07T16:35:53.193621+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `eval'
2022-09-07T16:35:53.193622+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:116:in `new_from_string'
2022-09-07T16:35:53.193631+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:105:in `load_file'
2022-09-07T16:35:53.193632+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/builder.rb:66:in `parse_file'
2022-09-07T16:35:53.193641+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:349:in `build_app_and_options_from_config'
2022-09-07T16:35:53.193642+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:249:in `app'
2022-09-07T16:35:53.193651+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:422:in `wrapped_app'
2022-09-07T16:35:53.193653+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:312:in `block in start'
2022-09-07T16:35:53.193661+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:379:in `handle_profiling'
2022-09-07T16:35:53.193663+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/rack-2.2.4/lib/rack/server.rb:311:in `start'
2022-09-07T16:35:53.193672+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/server/server_command.rb:38:in `start'
2022-09-07T16:35:53.193673+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-09-07T16:35:53.193682+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-09-07T16:35:53.193684+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-09-07T16:35:53.193693+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
2022-09-07T16:35:53.193694+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
2022-09-07T16:35:53.193703+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
2022-09-07T16:35:53.193704+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/command/base.rb:87:in `perform'
2022-09-07T16:35:53.193713+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/command.rb:48:in `invoke'
2022-09-07T16:35:53.193714+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.3.1/lib/rails/commands.rb:18:in `<main>'
2022-09-07T16:35:53.193723+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-09-07T16:35:53.193724+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require'
2022-09-07T16:35:53.193733+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-09-07T16:35:53.317290+00:00 heroku[web.1]: Process exited with status 1
2022-09-07T16:35:53.469592+00:00 heroku[web.1]: State changed from starting to crashed
Notifications
You’re not receiving notifications from this thread.