heroku error while deploying app - ruby-on-rails

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?

Related

Application error on deployed app on heroku

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.

My Rails app is deployed but not working

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.

Application error on Heroku on deploying rails 5 app

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

heroku application error, possibly devise

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'

Faye on Heroku "error code=H10 desc="App crashed"

I've installed a web app cloned from : https://github.com/ntenisOT/Faye-Heroku-Cedar
I push it on heroku but it doesnt work.
In my log, this errors :
2014-01-22T11:06:51.110578+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/faye.js host=my-url-faye-server.herokuapp.com request_id=72478a42-485c-4984-a3b9-3f9e252c2fdc fwd="82.240.110.195" dyno= connect= service= status=503 bytes=
2014-01-22T11:06:51.482947+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=my-url-faye-server.herokuapp.com request_id=36789c9a-d18d-46ac-bdf1-9b848ca50f7c fwd="82.240.110.195" dyno= connect= service= status=503 bytes=
I dont know how to solve this problem, so i need help :)
Thanks for advance !

Resources