JustPaste.it

Heroku CanCan error

2022-10-07T16:17:46.931140+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-10-07T16:17:46.931154+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-10-07T16:17:46.931156+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-10-07T16:17:46.931163+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-10-07T16:17:46.931177+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-10-07T16:17:46.931179+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-10-07T16:17:46.931188+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-10-07T16:17:46.931195+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:38:in `start'
2022-10-07T16:17:46.931202+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-10-07T16:17:46.931210+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-10-07T16:17:46.931217+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-10-07T16:17:46.931225+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-10-07T16:17:46.931239+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-10-07T16:17:46.931239+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-10-07T16:17:46.931240+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform'
2022-10-07T16:17:46.931247+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke'
2022-10-07T16:17:46.931261+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2022-10-07T16:17:46.931263+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-10-07T16:17:46.931273+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-10-07T16:17:46.931280+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-10-07T16:17:47.081662+00:00 heroku[web.1]: Process exited with status 1
2022-10-07T16:17:47.149274+00:00 heroku[web.1]: State changed from starting to crashed
2022-10-07T16:17:47.154324+00:00 heroku[web.1]: State changed from crashed to starting
2022-10-07T16:17:50.508338+00:00 heroku[web.1]: Starting process with command `bin/rails server -p ${PORT:-5000} -e production`
2022-10-07T16:17:53.018124+00:00 app[web.1]: => Booting Puma
2022-10-07T16:17:53.018137+00:00 app[web.1]: => Rails 7.0.4 application starting in production
2022-10-07T16:17:53.018138+00:00 app[web.1]: => Run `bin/rails server --help` for more startup options
2022-10-07T16:17:53.819715+00:00 app[web.1]: Exiting
2022-10-07T16:17:53.820258+00:00 app[web.1]: /app/app/models/ability.rb:2:in `<class:Ability>': uninitialized constant Ability::CanCan (NameError)
2022-10-07T16:17:53.820261+00:00 app[web.1]:
2022-10-07T16:17:53.820262+00:00 app[web.1]: include CanCan::Ability
2022-10-07T16:17:53.820264+00:00 app[web.1]: ^^^^^^
2022-10-07T16:17:53.820273+00:00 app[web.1]: from /app/app/models/ability.rb:1:in `<main>'
2022-10-07T16:17:53.820276+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-10-07T16:17:53.820284+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-10-07T16:17:53.820292+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/kernel.rb:27:in `require'
2022-10-07T16:17:53.820295+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader/helpers.rb:127:in `const_get'
2022-10-07T16:17:53.820303+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader/helpers.rb:127:in `cget'
2022-10-07T16:17:53.820312+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader.rb:239:in `block (2 levels) in eager_load'
2022-10-07T16:17:53.820314+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader/helpers.rb:41:in `block in ls'
2022-10-07T16:17:53.820322+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader/helpers.rb:27:in `each'
2022-10-07T16:17:53.820330+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader/helpers.rb:27:in `ls'
2022-10-07T16:17:53.820337+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader.rb:234:in `block in eager_load'
2022-10-07T16:17:53.820345+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader.rb:219:in `synchronize'
2022-10-07T16:17:53.820353+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader.rb:219:in `eager_load'
2022-10-07T16:17:53.820360+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader.rb:318:in `each'
2022-10-07T16:17:53.820368+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/zeitwerk-2.6.1/lib/zeitwerk/loader.rb:318:in `eager_load_all'
2022-10-07T16:17:53.820376+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application/finisher.rb:74:in `block in <module:Finisher>'
2022-10-07T16:17:53.820384+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `instance_exec'
2022-10-07T16:17:53.820386+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:32:in `run'
2022-10-07T16:17:53.820395+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-10-07T16:17:53.820403+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-10-07T16:17:53.820410+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-10-07T16:17:53.820418+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-10-07T16:17:53.820425+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-10-07T16:17:53.820434+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `each'
2022-10-07T16:17:53.820436+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:347:in `call'
2022-10-07T16:17:53.820444+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-10-07T16:17:53.820452+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:226:in `tsort_each'
2022-10-07T16:17:53.820459+00:00 app[web.1]: from /app/vendor/ruby-3.1.2/lib/ruby/3.1.0/tsort.rb:205:in `tsort_each'
2022-10-07T16:17:53.820467+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/initializable.rb:60:in `run_initializers'
2022-10-07T16:17:53.820474+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/application.rb:372:in `initialize!'
2022-10-07T16:17:53.820482+00:00 app[web.1]: from /app/config/environment.rb:5:in `<main>'
2022-10-07T16:17:53.820489+00:00 app[web.1]: from config.ru:3:in `require_relative'
2022-10-07T16:17:53.820497+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2022-10-07T16:17:53.820505+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-10-07T16:17:53.820512+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-10-07T16:17:53.820520+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-10-07T16:17:53.820522+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-10-07T16:17:53.820531+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-10-07T16:17:53.820538+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-10-07T16:17:53.820546+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-10-07T16:17:53.820554+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-10-07T16:17:53.820561+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-10-07T16:17:53.820569+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-10-07T16:17:53.820576+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:38:in `start'
2022-10-07T16:17:53.820584+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:143:in `block in perform'
2022-10-07T16:17:53.820591+00:00 app[web.1]: from <internal:kernel>:90:in `tap'
2022-10-07T16:17:53.820599+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands/server/server_command.rb:134:in `perform'
2022-10-07T16:17:53.820606+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-10-07T16:17:53.820614+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-10-07T16:17:53.820622+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-10-07T16:17:53.820629+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command/base.rb:87:in `perform'
2022-10-07T16:17:53.820637+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/command.rb:48:in `invoke'
2022-10-07T16:17:53.820644+00:00 app[web.1]: from /app/vendor/bundle/ruby/3.1.0/gems/railties-7.0.4/lib/rails/commands.rb:18:in `<main>'
2022-10-07T16:17:53.820652+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-10-07T16:17:53.820659+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-10-07T16:17:53.820667+00:00 app[web.1]: from bin/rails:4:in `<main>'
2022-10-07T16:17:53.968515+00:00 heroku[web.1]: Process exited with status 1
2022-10-07T16:17:54.010414+00:00 heroku[web.1]: State changed from starting to crashed
2022-10-07T16:17:58.321286+00:00 app[api]: Starting process with command `rails db:migrate` by user dafne.********@gmail.com
2022-10-07T16:18:02.134614+00:00 heroku[run.7965]: Awaiting client
2022-10-07T16:18:02.151032+00:00 heroku[run.7965]: Starting process with command `rails db:migrate`
2022-10-07T16:18:02.235921+00:00 heroku[run.7965]: State changed from starting to up
2022-10-07T16:18:08.512885+00:00 heroku[run.7965]: Process exited with status 0
2022-10-07T16:18:08.819830+00:00 heroku[run.7965]: State changed from up to complete
2022-10-07T16:18:18.693471+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=thawing-citadel-39347.herokuapp.com request_id=481ba3da-665d-4ae3-846a-0ad969c4017e fwd="190.3.50.171" dyno= connect= service= status=503 bytes= protocol=https
2022-10-07T16:18:20.040967+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=thawing-citadel-39347.herokuapp.com request_id=7e08ddcf-22ed-4781-bc85-69192e9bef81 fwd="190.3.50.171" dyno= connect= service= status=503 bytes= protocol=https
2022-10-07T16:18:26.664797+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=thawing-citadel-39347.herokuapp.com request_id=9b9133bc-3e80-4c46-9d67-c84d17caa1fb fwd="190.3.50.171" dyno= connect= service= status=503 bytes= protocol=https
2022-10-07T16:18:28.028782+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=thawing-citadel-39347.herokuapp.com request_id=317db17a-2d76-41d2-a17a-f4679b468e45 fwd="190.3.50.171" dyno= connect= service= status=503 bytes= protocol=https