Heroku Error - We're sorry, but something went wrong.
Hey Guys,
I deployed my app to Heroku but I am getting the "We're sorry, but something went wrong.
" so I ran heroku logs and this is what I got:
2019-11-07T18:45:20.355498+00:00 app[web.1]: I, [2019-11-07T18:45:20.355439 #4] INFO -- : [7492e320-8744-4a1c-8b10-fac1bf495c37] Rendered shared/pages/_pages-nav.html.erb (Duration: 0.5ms | Allocations: 173)
2019-11-07T18:45:20.356892+00:00 app[web.1]: I, [2019-11-07T18:45:20.356832 #4] INFO -- : [7492e320-8744-4a1c-8b10-fac1bf495c37] Rendered shared/pages/_pages-footer.html.erb (Duration: 0.4ms | Allocations: 153)
2019-11-07T18:45:20.357197+00:00 app[web.1]: I, [2019-11-07T18:45:20.356990 #4] INFO -- : [7492e320-8744-4a1c-8b10-fac1bf495c37] Rendered pages/index.html.erb within layouts/application (Duration: 2.2ms | Allocations: 834)
2019-11-07T18:45:20.358268+00:00 app[web.1]: I, [2019-11-07T18:45:20.358206 #4] INFO -- : [7492e320-8744-4a1c-8b10-fac1bf495c37] Completed 500 Internal Server Error in 4ms (Allocations: 1534)
2019-11-07T18:45:20.359681+00:00 app[web.1]: F, [2019-11-07T18:45:20.359621 #4] FATAL -- : [7492e320-8744-4a1c-8b10-fac1bf495c37]
2019-11-07T18:45:20.359685+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] ActionView::Template::Error (Webpacker can't find application in /app/public/packs/manifest.json. Possible causes:
2019-11-07T18:45:20.359687+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2019-11-07T18:45:20.359689+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2019-11-07T18:45:20.359691+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2019-11-07T18:45:20.359693+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2019-11-07T18:45:20.359696+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2019-11-07T18:45:20.359698+00:00 app[web.1]: Your manifest contains:
2019-11-07T18:45:20.359700+00:00 app[web.1]: {
2019-11-07T18:45:20.359702+00:00 app[web.1]: }
2019-11-07T18:45:20.359704+00:00 app[web.1]: ):
2019-11-07T18:45:20.359706+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 6: <%= csp_meta_tag %>
2019-11-07T18:45:20.359709+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 7:
2019-11-07T18:45:20.359711+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 8: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
2019-11-07T18:45:20.359713+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 9: <%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
2019-11-07T18:45:20.359716+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 10: <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
2019-11-07T18:45:20.359718+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 11: </head>
2019-11-07T18:45:20.359720+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] 12:
2019-11-07T18:45:20.359722+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37]
2019-11-07T18:45:20.359725+00:00 app[web.1]: [7492e320-8744-4a1c-8b10-fac1bf495c37] app/views/layouts/application.html.erb:9
2019-11-07T18:45:20.360860+00:00 heroku[router]: at=info method=GET path="/" host=secret-thicket-83846.herokuapp.com request_id=7492e320-8744-4a1c-8b10-fac1bf495c37 fwd="76.186.127.38" dyno=web.1 connect=0ms service=10ms status=500 bytes=1827 protocol=https
2019-11-07T18:49:23.000000+00:00 app[api]: Build started by user info@empuls3.com
2019-11-07T18:49:50.947351+00:00 app[api]: Deploy 1d47c257 by user info@empuls3.com
2019-11-07T18:49:51.121757+00:00 heroku[web.1]: Restarting
2019-11-07T18:49:51.158559+00:00 heroku[web.1]: State changed from up to starting
2019-11-07T18:49:50.947351+00:00 app[api]: Release v7 created by user info@empuls3.com
2019-11-07T18:49:52.658782+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2019-11-07T18:49:52.683472+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2019-11-07T18:49:52.691000+00:00 app[web.1]: === puma shutdown: 2019-11-07 18:49:52 +0000 ===
2019-11-07T18:49:52.691010+00:00 app[web.1]: - Goodbye!
2019-11-07T18:49:52.691261+00:00 app[web.1]: Exiting
2019-11-07T18:49:52.849987+00:00 heroku[web.1]: Process exited with status 143
2019-11-07T18:49:53.000000+00:00 app[api]: Build succeeded
2019-11-07T18:49:56.704516+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 3210 -e production`
2019-11-07T18:50:01.402539+00:00 app[web.1]: => Booting Puma
2019-11-07T18:50:01.402568+00:00 app[web.1]: => Rails 6.0.1 application starting in production
2019-11-07T18:50:01.402571+00:00 app[web.1]: => Run `rails server --help` for more startup options
2019-11-07T18:50:02.814579+00:00 heroku[web.1]: State changed from starting to up
2019-11-07T18:50:02.579574+00:00 app[web.1]: Puma starting in single mode...
2019-11-07T18:50:02.579617+00:00 app[web.1]: * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
2019-11-07T18:50:02.579621+00:00 app[web.1]: * Min threads: 5, max threads: 5
2019-11-07T18:50:02.579623+00:00 app[web.1]: * Environment: production
2019-11-07T18:50:02.579894+00:00 app[web.1]: * Listening on tcp://0.0.0.0:3210
2019-11-07T18:50:02.580296+00:00 app[web.1]: Use Ctrl-C to stop
2019-11-07T18:50:39.000000+00:00 app[api]: Build started by user info@empuls3.com
2019-11-07T18:51:07.918657+00:00 heroku[web.1]: Restarting
2019-11-07T18:51:07.935252+00:00 heroku[web.1]: State changed from up to starting
2019-11-07T18:51:08.881532+00:00 app[web.1]: - Gracefully stopping, waiting for requests to finish
2019-11-07T18:51:08.882629+00:00 app[web.1]: === puma shutdown: 2019-11-07 18:51:08 +0000 ===
2019-11-07T18:51:08.882673+00:00 app[web.1]: - Goodbye!
2019-11-07T18:51:08.882843+00:00 app[web.1]: Exiting
2019-11-07T18:51:08.869511+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2019-11-07T18:51:08.945205+00:00 heroku[web.1]: Process exited with status 143
2019-11-07T18:51:07.450121+00:00 app[api]: Release v8 created by user info@empuls3.com
2019-11-07T18:51:07.450121+00:00 app[api]: Deploy 10d4e58c by user info@empuls3.com
2019-11-07T18:51:10.000000+00:00 app[api]: Build succeeded
2019-11-07T18:51:14.243753+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 57251 -e production`
2019-11-07T18:51:22.012879+00:00 app[web.1]: => Booting Puma
2019-11-07T18:51:22.012909+00:00 app[web.1]: => Rails 6.0.1 application starting in production
2019-11-07T18:51:22.012911+00:00 app[web.1]: => Run `rails server --help` for more startup options
2019-11-07T18:51:23.940759+00:00 app[web.1]: Puma starting in single mode...
2019-11-07T18:51:23.940815+00:00 app[web.1]: * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
2019-11-07T18:51:23.940818+00:00 app[web.1]: * Min threads: 5, max threads: 5
2019-11-07T18:51:23.940821+00:00 app[web.1]: * Environment: production
2019-11-07T18:51:23.941113+00:00 app[web.1]: * Listening on tcp://0.0.0.0:57251
2019-11-07T18:51:23.941523+00:00 app[web.1]: Use Ctrl-C to stop
2019-11-07T18:51:24.411028+00:00 heroku[web.1]: State changed from starting to up
2019-11-07T18:51:26.442192+00:00 heroku[router]: at=info method=GET path="/" host=secret-thicket-83846.herokuapp.com request_id=8a468676-9584-4fb3-96e4-244cd24c4e54 fwd="76.186.127.38" dyno=web.1 connect=8ms service=28ms status=500 bytes=1827 protocol=https
2019-11-07T18:51:26.416853+00:00 app[web.1]: I, [2019-11-07T18:51:26.416723 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Started GET "/" for 76.186.127.38 at 2019-11-07 18:51:26 +0000
2019-11-07T18:51:26.419407+00:00 app[web.1]: I, [2019-11-07T18:51:26.419321 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Processing by PagesController#index as HTML
2019-11-07T18:51:26.429775+00:00 app[web.1]: I, [2019-11-07T18:51:26.429640 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Rendering pages/index.html.erb within layouts/application
2019-11-07T18:51:26.433285+00:00 app[web.1]: I, [2019-11-07T18:51:26.433177 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Rendered shared/pages/_pages-nav.html.erb (Duration: 1.2ms | Allocations: 428)
2019-11-07T18:51:26.436145+00:00 app[web.1]: I, [2019-11-07T18:51:26.436053 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Rendered shared/pages/_pages-footer.html.erb (Duration: 1.4ms | Allocations: 454)
2019-11-07T18:51:26.436316+00:00 app[web.1]: I, [2019-11-07T18:51:26.436241 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Rendered pages/index.html.erb within layouts/application (Duration: 6.4ms | Allocations: 2233)
2019-11-07T18:51:26.438291+00:00 app[web.1]: I, [2019-11-07T18:51:26.438178 #4] INFO -- : [8a468676-9584-4fb3-96e4-244cd24c4e54] Completed 500 Internal Server Error in 19ms (Allocations: 4225)
2019-11-07T18:51:26.439773+00:00 app[web.1]: F, [2019-11-07T18:51:26.439690 #4] FATAL -- : [8a468676-9584-4fb3-96e4-244cd24c4e54]
2019-11-07T18:51:26.439776+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] ActionView::Template::Error (Webpacker can't find application in /app/public/packs/manifest.json. Possible causes:
2019-11-07T18:51:26.439779+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2019-11-07T18:51:26.439781+00:00 app[web.1]: unless you are using the `webpack -w` or the webpack-dev-server.
2019-11-07T18:51:26.439789+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2019-11-07T18:51:26.439791+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2019-11-07T18:51:26.439794+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2019-11-07T18:51:26.439796+00:00 app[web.1]: Your manifest contains:
2019-11-07T18:51:26.439798+00:00 app[web.1]: {
2019-11-07T18:51:26.439800+00:00 app[web.1]: }
2019-11-07T18:51:26.439802+00:00 app[web.1]: ):
2019-11-07T18:51:26.439805+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 6: <%= csp_meta_tag %>
2019-11-07T18:51:26.439807+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 7:
2019-11-07T18:51:26.439809+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 8: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
2019-11-07T18:51:26.439811+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 9: <%= stylesheet_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
2019-11-07T18:51:26.439814+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 10: <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
2019-11-07T18:51:26.439816+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 11: </head>
2019-11-07T18:51:26.439818+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] 12:
2019-11-07T18:51:26.439820+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54]
2019-11-07T18:51:26.439822+00:00 app[web.1]: [8a468676-9584-4fb3-96e4-244cd24c4e54] app/views/layouts/application.html.erb:9
2019-11-07T18:51:26.884395+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=secret-thicket-83846.herokuapp.com request_id=f6ab460f-68cb-456f-a6f7-4ba7ba947b00 fwd="76.186.127.38" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https
Not sure if this will be of help but if you happen to have this line in your application.html.erb <%= stylesheet_pack_tag ‘application’, media: ‘all’, ‘data-turbolinks-track’: ‘reload’ %>
you should try removing it as this is how I fixed it