please help, i have no idea. I am getting this from my heroku logs.
i am on ruby 2.3
rails 5.1
2019-03-20T15:05:15.000000+00:00 app[api]: Build succeeded
2019-03-20T15:05:53.943996+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-reef-51265.herokuapp.com request_id=5c0b7d49-b20e-4469-a483-88093fd77f5e fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:54.781463+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-reef-51265.herokuapp.com request_id=de8a1df2-fc24-4e69-8b36-7cb1e92a73da fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:58.794279+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-reef-51265.herokuapp.com request_id=d53446ea-a1bd-474e-ad6c-ddf62b74689f fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:59.021626+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-reef-51265.herokuapp.com request_id=63bd925f-fc04-4169-94ce-d08afd620a57 fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
^CTerminate batch job (Y/N)? y
Try to run heroku local or heroku run rails c. The first command will try to run the server locally and the second will run the rails console on your heroku server. Both of them should crash because of the error that is causing your heroku app to fail to launch, but they should provide a more detailed explanation as to the cause. I have seen this error a couple times before and one time it was because I wasn't autoloading classes correctly, i.e require 'devise in application.rb and the other time it was because there was an error in a controller class name.
Related
I have my Rails app deployed, but when I go to open it, I get this error in my web browser :
Application error
An error occurred in the application and your page could not beserved. If you are the application owner, check your logs for details.
Here are my log errors:
2018-03-19T04:48:12.360662+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/" host=marmelade1.herokuapp.com
request_id=613511e2-940f-4aac-8f42-7fa7f85a8a76 fwd="172.90.196.64"
dyno= connect= service= status=503 bytes= protocol=https
2018-03-19T04:48:31.712091+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/" host=marmelade1.herokuapp.com
request_id=813d50a1-8cee-4a57-81d5-b9f303084cf6 fwd="172.90.196.64"
dyno= connect= service= status=503 bytes= protocol=https
2018-03-19T04:48:32.039194+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=marmelade1.herokuapp.com
request_id=854ceb16-62c4-430e-9771-d64bb334f006 fwd="172.90.196.64"
dyno= connect= service= status=503 bytes= protocol=https
2018-03-19T05:01:26.721459+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/" host=marmelade1.herokuapp.com
request_id=e112728e-af23-48c1-aef2-c2fd995466dd fwd="172.90.196.64"
dyno= connect= service= status=503 bytes= protocol=https
What am I doing wrong?
I experienced the same error. Rails 6.1.4.1 ruby 2.7.1p83
I ran $ heroku run rails console
Below was the error at the bottom of the terminal: Error loading the 'postgresql' Active Record adapter. Missing a gem it depends on? can't activate pg (~> 1.1), already activated pg-0.18.4. Make sure all dependencies are added to Gemfile. (LoadError)
I updated the postgresql gem version from 0.18.1 to 1.1 in my gem file, pushed the changes to heroku and the issued was fixed.
I'm facing the Heroku deploy error. When I deploy my rails 5 app on Heroku the following error occurs:
"An error occurred in the application and your page could not be
served. If you are the application owner, check your logs for
details".
My Heroku app logs is this
2018-01-11T11:31:08.702143+00:00 heroku[web.1]: State changed from starting to crashed
2018-01-11T11:31:08.687436+00:00 heroku[web.1]: Process exited with status 1
2018-01-11T11:31:56.372775+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=concept-car-dealer.herokuapp.com request_id=61c90fd0-3588-4f34-b463-45cc6c37e73e fwd="103.255.6.80" dyno= connect= service= status=503 bytes= protocol=https
2018-01-11T11:31:57.235468+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=concept-car-dealer.herokuapp.com request_id=0edb9bee-a765-4500-98b2-09b0826082c9 fwd="103.255.6.80" dyno= connect= service= status=503 bytes= protocol=https
2018-01-11T11:31:56.859412+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=concept-car-dealer.herokuapp.com request_id=b72c7768-541c-42db-b7f1-6f02a853fef2 fwd="103.255.6.80" dyno= connect= service= status=503 bytes= protocol=https
2018-01-11T11:31:55.750150+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/robots.txt" host=concept-car-dealer.herokuapp.com request_id=780a212f-5fa1-4143-9b26-d245acb50444 fwd="103.255.6.80" dyno= connect= service= status=503 bytes= protocol=https
Here is the link of my Heroku App . And here is the link of my GitHub repo
while trying to open my app in heroku I get the following a screen saying:

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.
If you are the application owner, check your logs for details.
The logs with the error are as follow:
2014-10-14T13:43:20.222314+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/"
host=dry-reaches-7872.herokuapp.com
request_id=5356a97b-0f65-4af0-947b-fe1c42418c1d fwd="74.118.24.162"
dyno= connect= service= status=503 bytes=
2014-10-14T13:43:20.334555+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=dry-reaches-7872.herokuapp.com
request_id=768945b5-b9b6-4a0b-ba4f-fa0e389d4a29 fwd="74.118.24.162"
dyno= connect= service= status=503 bytes=
2014-10-14T13:47:16.518787+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/"
host=dry-reaches-7872.herokuapp.com
request_id=3931e254-4f51-4c90-954a-6bbbf4fe4298 fwd="74.118.24.162"
dyno= connect= service= status=503 bytes=
2014-10-14T13:47:16.734809+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path="/favicon.ico"
host=dry-reaches-7872.herokuapp.com
request_id=69b7e4bb-3953-46af-b608-1625c7556152 fwd="74.118.24.162"
dyno= connect= service= status=503 bytes=
I tried to use devise for authentication in my project but failed, I think the error is some of the code from devise
You should include the devise gem in the Gemfile.Add this line to your Gemfile and run bundle install
gem 'devise'
It's first time I'm trying to deploy on heroku. Short description of taken steps:
I use heroku gem(probably should be using heroku toolbelt)
In production I use postgres and thin server, in dev sqlite3 and webrick, in production I give url and in application.rb - config.assets.initialize_on_precompile = false
have an account on heroku, I do git push heroku master
heroku run rake db:setup, than heroku restart
when I heroku open it shows me 'An error occurred in the application and your page could not be served. Please try again in a few moments.'
While uploading to heroku app doesn't show any error (just some warnings about deprecation). I have tried with another application and everything worked out, however with application I need something is wrong and can't even see where to look what is wrong. Maybe because of different gems I use, don't even know now.
Those lines below are highlighted in red while heroku logs:
2013-09-17T12:25:12.421144+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
2013-09-17T12:25:35.921328+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
2013-09-17T12:25:37.150365+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
2013-09-17T12:25:40.022882+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
2013-09-17T12:25:43.650378+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
2013-09-17T12:25:45.025048+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
2013-09-17T12:25:48.171649+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=nibeer.herokuapp.com fwd="78.63.251.237" dyno= connect= service= status=503 bytes=
Any suggestion on what is not good?
It's now been 48 hours since my heroku app has started crashing.
I don't honestly know what is making it crash, i've tried restarting it, changing the dynos and running heroku run rake db:migrate but none of these seem to work.
These are my heroku logs
at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=serene-savannah-7550.herokuapp.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
2013-08-27T12:51:50+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK measure.current_transaction=26940 measure.db_size=56841336bytes measure.tables=23 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.85317 measure.table-cache-hit-rate=0.99704
2013-08-27T12:52:45+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK measure.current_transaction=26940 measure.db_size=56841336bytes measure.tables=23 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.85317 measure.table-cache-hit-rate=0.99704
2013-08-27T12:53:34.027760+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.website.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
2013-08-27T12:54:35.129270+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.website.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
2013-08-27T12:54:36+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK measure.current_transaction=26940 measure.db_size=56841336bytes measure.tables=23 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99998 measure.table-cache-hit-rate=1
2013-08-27T12:55:15.018337+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.website.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
I have tried changing to 2 Dynos x1 and 1 Dyno x2 but it doesnt change anything
I have PostgreSQL Crane installed and set as my DATABASE_URL.
Why is it crashing and how could I fix this annoying error?
Thanks
It looks like your app is repeatedly crashing (but you already knew that). Have you created migrations that haven't been run, yet?
Try heroku run bundle exec rake db:migrate.
If that doesn't work, try running the Rails console on Heroku to help diagnose the issue. Run heroku run bundle exec rails console.