Why am I getting "Error waiting for network: Resource temporarily unavailable" errors?

Issue

Your application is occasionally showing an error similar to this:

2017-01-12T13:30:21.393132+00:00 app[web.1]: Error waiting for network: Resource temporarily unavailable

After it happens your dyno either crashes or is eventually restarted.

Resolution

This is caused by kernel-level issues that can surface occasionally on the backend instances that dynos run on. Unfortunately, there is not really a work around for this issue. Scheduler dynos will crash if this happens and the job will not be executed again until its next scheduled run time. Other dyno types will typically enter a bad state and require a manual restart (you may see "App boot timeout" errors when this happens).

Unfortunately, the only known way to reduce the chances you'll see this is to switch to Performance dynos which see this problem much less frequently due to their backing server only running one dyno at a time (which results in the bug being triggered less frequently). If that's not an option, you might look into using the webhook functionality of some log retention add-ons to automate restarting the dyno using our Platform API.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support
Terms of Service Privacy Cookies © 2018 Salesforce.com