Web process on Heroku idles and shuts down
See original GitHub issueThe connect middleware API requires a web process on heroku to bind to a port, but the process shuts down when it idles, which means hubot dies.
2012-01-31T18:08:56+00:00 heroku[web.1]: State changed from starting to up
2012-01-31T19:16:33+00:00 heroku[web.1]: Idling
2012-01-31T19:16:36+00:00 heroku[web.1]: State changed from up to down
2012-01-31T19:16:39+00:00 heroku[web.1]: Stopping process with SIGTERM
2012-01-31T19:16:39+00:00 heroku[web.1]: Process exited
2012-02-01T08:16:39+00:00 heroku[web.1]: Unidling
2012-02-01T08:16:39+00:00 heroku[web.1]: State changed from down to created
2012-02-01T08:16:39+00:00 heroku[web.1]: State changed from created to starting
2012-02-01T08:16:43+00:00 heroku[web.1]: Starting process with command `bin/hubot -a campfire -n hubot`
From the heroku docs:
What is dyno idling?
Apps that have only 1 web dyno will be idled out after a period of inactivity.
The web dyno will be shut down. When a request comes in to an idled app your
web dyno will be automatically spun back up, causing a few second delay for
this first request. Subsequent requests will perform normally.
Apps that have more than 1 web dyno are never idled out. Workers dynos are
never idled out.
Issue Analytics
- State:
- Created 12 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Why did my Herokuapp idle and shut down while in use?
As stated by Heroku. If an app has a free web dyno, and that dyno receives no web traffic in a 30-minute period,...
Read more >Heroku keeps shutting down when my Python Flask app idles ...
I need to manually restart the app to make it work station. EDIT2 - The solution: https://stackoverflow.com/questions/5480337/easy-way-to- ...
Read more >Heroku Error Codes
This error is thrown when a process in your web dyno accepts a connection but then closes the socket without writing anything to...
Read more >Dynos and the Dyno Manager | Heroku Dev Center
When the dyno manager restarts a dyno, the dyno manager will request that your processes shut down gracefully by sending them a SIGTERM...
Read more >One-Off Dynos | Heroku Dev Center
Connections to one-off dynos will be closed after one hour of inactivity (in both input and output). When the connection is closed, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another solution was referenced here - https://github.com/github/hubot/issues/366#issuecomment-10615132
“If you’re not using a web interface for this process, rename the web process in the procfile to something else, like “hubot”. Processes not named “web” don’t get idled.”
Yup, totally my fault.