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.
Related
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.
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.
How I can solve the error. I see build success and no error. But I am not able to see the rails app working on the link.
I see these lines in the log file :
heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp.herokuapp.com request_id=some_id_here fwd="47.247.8.241" dyno= connect= service= status=503 bytes= protocol=https
$heroku restart
And if it didn't work use
$heroku run rails console
will give you the details on why the app has crashed
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?
My app had been running for over 24 hours with no problem.
I decided to try and add a custom domain to my site. I followed the instructions and then went to my godaddy panel and changed the www from # to mysite.heroku.com
I went to sleep and when I woke up this morning I get this 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."
After checking the logs this is what I see
2013-03-02T10:22:24+00:00 heroku[web.1]: Process exited with status 1
2013-03-02T10:22:24+00:00 heroku[web.1]: State changed from starting to crashed
2013-03-02T10:22:25+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=vauxden.herokuapp.com fwd="176.251.155.165" dyno= queue= wait= connect= service= status=503 bytes=
2013-03-02T10:22:26+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=vauxden.herokuapp.com fwd="176.251.155.165" dyno= queue= wait= connect= service= status=503 bytes=
2013-03-02T10:22:39+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=vauxden.herokuapp.com fwd="176.251.155.165" dyno= queue= wait= connect= service= status=503 bytes=
2013-03-02T10:22:39+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=vauxden.herokuapp.com fwd="176.251.155.165" dyno= queue= wait= connect= service= status=503 bytes=
I am fairly new to ruby on rails and heroku so I have no idea how to fix this error.
I also deleted the custom domain and changed everything back to normal in my godaddy panel yet I still get this error.
I tried to push the newest version of my code and that did not make any difference.
Did you execute heroku run rake db:migrate after deploying your app?
GoDaddy can be a pain in the ass, and I second what dev said above^. It can take a day or two to load properly, so looking for the source of the problem on that end can be unreliable.
Check to make sure everythings running correctly on Heroku's side for your app.
Heroku's Status looks OK, https://status.heroku.com/.
Your app hasn't crashed when locally testing has it? http:// localhost:3000/whatever
Check your gems, others seem to have a similar issue. link