1
I’m new to putting projects on the Heroku server, I saw in the videos lessons I got on the internet and the step by step was going all right, the Heroku commands that everything else, when I did the project’s Deployment on Heroku I immediately typed the URL to see if it worked, when least expect an error, I typed the command in Heroku to view the logs of messages to see what it was that there was, and returned me H10 code error as you can see below;
2017-06-16T13:11:20.179943+00:00 heroku[web.1]: Process exited with status 1
2017-06-16T13:11:20.199776+00:00 heroku[web.1]: State changed from starting to crashed
2017-06-16T13:14:48.671863+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/home" host=wb-arm-wladimir.herokuapp.com
request_id=8d98b1e0-f357-469c-a4a3-a44853b744bd fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:14:49.793531+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=wb-arm-wladimir.herokua
pp.com request_id=55dd4647-dc26-4a2a-8902-c424d4135237 fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:14:57.646730+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=wb-arm-wladimir.herokuapp.com requ
est_id=03aae088-c67c-421c-9963-e4fca4efb42a fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:14:57.829488+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=wb-arm-wladimir.herokua
pp.com request_id=9a369bd9-3318-41dc-9c79-6629c4d40b38 fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:15:11.725485+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/login" host=wb-arm-wladimir.herokuapp.com
request_id=929713b6-181a-41d6-801c-066a726dfaf7 fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:15:11.902088+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=wb-arm-wladimir.herokua
pp.com request_id=84a93f65-7892-4207-8f4b-233a8a19fb04 fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:17:21.077246+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/home" host=wb-arm-wladimir.herokuapp.com
request_id=05a13753-4a19-418f-8cd7-7afc1f9cd726 fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
2017-06-16T13:17:21.258993+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=wb-arm-wladimir.herokua
pp.com request_id=9b275540-fb81-4680-bcbd-36b5e459dc88 fwd="177.223.27.239" dyno= connect= service= status=503 bytes= protocol=http
I can not understand what is wrong, I believe the problem is not the project, because my Spring Boot project works perfectly on your local server, but when it will run on the Heroku server gives this error.
I’ve done a lot of research, found links like this CLICK HERE
But the solutions given in the links did not solve my problem, I already gave a Heroku Restart , Heroku run rake db:migrate and nothing.
Someone has been through a similar problem to mine, I really need help to solve this problem.
Click here to gain access to my project in the Github repository
At @Sidon’s request
I executed all these commands;
- Heroku Keys:add
- Heroku apps:create Wb-Arm-Wladimir
- git init
- git add .
- Heroku git:remote -a Wb-Arm-Wladimir
- Heroku Addons:create Heroku-postgresql:hobby-dev
- git commit -am "Wladimir project"
- git push Heroku master
And presented the same problem, and this is the log
[INFO] Installing /tmp/build_85e5d5182621018e85ec0dd8ddf4c326/arm/target/arm-1.0.0-SNAPSHOT.jar to /app/tmp/cache/.m2/repository/br/com/arm/arm/1.0.0-SNAPSHOT/arm-1.0.0-SNAPSHOT.jar
[INFO] Installing /tmp/build_85e5d5182621018e85ec0dd8ddf4c326/arm/pom.xml to /app/tmp/cache/.m2/repository/br/com/arm/arm/1.0.0-SNAPSHOT/arm-1.0.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.801 s
[INFO] Finished at: 2017-06-16T16:15:29Z
[INFO] Final Memory: 41M/328M
[INFO] ------------------------------------------------------------------------
-----> Discovering process types
Procfile declares types -> (none)
Default types for buildpack -> web
-----> Compressing...
Done: 85.6M
-----> Launching...
Released v4
https://wb-arm-wladimir.herokuapp.com/ deployed to Heroku
I need to point out that it gave the same problem, and I did it all over again, but it didn’t solve.
Tip: Sign in to your Heroku account, go to Dashboard and click on the application, on the right side you will see the builds, click on
view build log
, At least in my case, I always find the query better in this log. Another thing I sometimes do and always works out is to simply delete the app on Heroku and "rebuild" it with attention to detail. To delete it go to Settings.– Sidon
I’ll do it now and pass you the step by step of what I did on git commands, just a minute
– wladyband
Take a look please.
– wladyband
Difficult to evaluate without knowing the full context. The first log has an error but this second says that the build has been successfully built. Your environment is linux or windows? if it is linux try the command :
heroku logs --tail -a <sua app> | grep 'error\|failed'
or its equivalent in windows.– Sidon
The first log was taken from the Heroku logs --Tail command, this command serves to track the Heroku server logs on the local pc. The second log shows View Build Log logs seen on the very site of Heroku as you yourself suggested to check. My environment is Windows. I suggest you download my Github project and try to perform Deployment straight from your computer to the Heroku server from your Heroku account for any questions.
– wladyband