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.