realpython / flask-boilerplate

Boilerplate template for a Python Flask application with Flask-SQLAlchemy, Flask-WTF, Fabric, Coverage, and Bootstrap
http://www.flaskboilerplate.com
Apache License 2.0
1.54k stars 537 forks source link

Heroku\H10 Error\Node.js\ Please, guys help! #29

Open st3p4nb01 opened 6 years ago

st3p4nb01 commented 6 years ago

Hello! As in one day I made my bot for the social network VKontakte. Bot did on Node.js on the VK-Promise module.

I downloaded the bot on Heroku by connecting GitHub. At the beginning when I deploy the code, the whole process goes perfectly. All is over, I open the application. For a while everything is fine, I check the bot .. it works. But .. it takes a couple of seconds, and here's the error.

Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.

I enter the command line. I enter heroku logs -tail --app , of course, I add my application. And there are many mistakes:

2018-05-29T20:12:41.862099+00:00 app[web.1]: > vk-promise@1.0.0 start /app
2018-05-29T20:12:41.862101+00:00 app[web.1]: > node index.js
2018-05-29T20:12:41.862102+00:00 app[web.1]:
2018-05-29T20:12:41.997050+00:00 app[web.1]: Бот работает •
2018-05-29T20:12:55.743043+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=vk-bot-stepan-api.herokuapp.com request_id=e9d54edd-746a-4752-9fb2
-199b7e50f89c fwd="104.129.18.21" dyno= connect= service= status=503 bytes= protocol=https
2018-05-29T20:12:55.743043+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=vk-bot-stepan-api.herokuapp.com request_id=e9d54edd-746a-4752-9fb2
-199b7e50f89c fwd="104.129.18.21" dyno= connect= service= status=503 bytes= protocol=https
2018-05-29T20:13:40.189315+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2018-05-29T20:13:40.189561+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-05-29T20:13:40.286712+00:00 heroku[web.1]: Process exited with status 22
2018-05-29T20:13:40.189315+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2018-05-29T20:13:40.189561+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-05-29T20:13:40.286712+00:00 heroku[web.1]: Process exited with status 22
2018-05-29T20:13:40.213979+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2018-05-29T20:13:40.213979+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2018-05-29T20:13:40.324227+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-29T20:13:40.324227+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-29T20:13:42.259516+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=vk-bot-stepan-api.herokuapp.com request_id=ab736056-2336-4cbb-8b0c-a2bb
47cb381f fwd="104.129.18.21" dyno= connect= service= status=503 bytes= protocol=https
2018-05-29T20:13:42.259516+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=vk-bot-stepan-api.herokuapp.com request_id=ab736056-2336-4cbb-8b0c-a2bb
47cb381f fwd="104.129.18.21" dyno= connect= service= status=503 bytes= protocol=https
2018-05-29T20:13:44.023607+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vk-bot-stepan-api.herokuapp.com request_id=f40b3e71-7b61-484
6-8440-df9475e26858 fwd="104.129.18.21" dyno= connect= service= status=503 bytes= protocol=https
2018-05-29T20:13:44.023607+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=vk-bot-stepan-api.herokuapp.com request_id=f40b3e71-7b61-484
6-8440-df9475e26858 fwd="104.129.18.21" dyno= connect= service= status=503 bytes= protocol=https

I do not understand what to do. I very much ask you, anyone who faced such a problem, help me please!

Thank you for attention!