question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web process on Heroku idles and shuts down

See original GitHub issue

The 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:closed
  • Created 12 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jakeasmithcommented, Nov 27, 2012

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.”

0reactions
dkadorcommented, May 11, 2012

Yup, totally my fault.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found