H10 App crashed
- What Heroku documents
- Crashed web dyno, or boot timeout on the web dyno
- Router line shows
dyno=empty,status=503- Go to
- This page
Fix Heroku error H10 (App crashed): read the router and dyno log lines, rule out an R10 boot timeout, and check the Procfile and PORT binding for your stack.
Heroku H10 means the router tried to send a request to your web dyno but the dyno had crashed or failed to boot, so Heroku returned a 503 and logged code=H10 desc="App crashed". The app's own error is in the log lines just above it. Read them with heroku logs --tail, fix that error, then check that the web process binds to $PORT.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
dyno= empty, status=503service=30001ms in the exampleservice=9767ms in the exampledesc="No web processes running"2010-10-06T21:51:04-07:00 heroku[web.1]: State changed from down to starting
2010-10-06T21:51:07-07:00 app[web.1]: Starting process with command: `bundle exec rails server -p 22020`
2010-10-06T21:51:09-07:00 app[web.1]: >> Using rails adapter
2010-10-06T21:51:09-07:00 app[web.1]: Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails` ...
2010-10-06T21:51:10-07:00 heroku[web.1]: Process exited
2010-10-06T21:51:12-07:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=example-app-1234567890ab.herokuapp.com fwd=17.17.17.17 dyno= connect= service= status=503 bytes=Read it bottom-up. The router line is the symptom. The Process exited line and the app error above it are the cause. In the Heroku example, the dyno, connect and service fields of the router line are empty, which separates H10 from H12 and H13, where they are filled in.
Run heroku ps. A web dyno that is crashed or flapping between starting and crashed confirms H10. If the dyno is up and requests still fail, compare the router line with H12 and H13 below.
Run heroku logs --tail (or -t). A tail session ends on its own after one hour of inactivity. Open the failing URL in another window so the request and the crash land together.
Run heroku logs --source app --tail to hide router noise, or heroku logs --dyno router to see only router lines such as code=H10.
The lines before it are the app's error: a missing gem, a bad import, a missing config var, a database it could not reach, or an R10 line.
Run heroku local web --port 5001 (the Heroku CLI installs heroku local). If the app fails the same way on your machine, fix it there first.
heroku ps
heroku logs --tail
heroku logs --source app --tail
heroku logs --dyno routerStarting process and Process exited (Heroku's example: a missing Rails gem)heroku local first to catch it before the push$PORT in timeError R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch, then State changed from starting to crashed$PORT, not a hard-coded one. Heroku says a web command that does not bind to PORT means the dyno does not start (Node.js guide)R10 has a longer allowance for some build tooling: apps using the Java buildpack, Gradle buildpack, heroku-deploy toolbelt plugin or Heroku Maven plugin get 90 seconds to bind to the assigned port. R10 is not currently emitted for Fir-generation apps, so on Fir you will see the crash without that line.
web process type is the only one that receives external HTTP traffic, and your command can refer to $PORT directly. These are the forms Heroku documents.web: bundle exec rails server -p $PORTweb: gunicorn hello:appweb: java -jar target/myapp-1.0.0.jarFor Node.js, Heroku looks for a Procfile first and otherwise runs the start script from package.json; either way the server must listen on the port in the PORT environment variable.
4 questions people ask next, answered from the sources on this page.
Usually the code or its start command, but not always. H10 covers a crashed web dyno and a boot timeout. The log lines above the router line say which: an app error, or an R10 line about failing to bind to $PORT within 60 seconds.
Heroku returns its standard error page with status 503 for platform-detected failures. The router had no healthy dyno to give your request to, which fits the meaning of 503 Service Unavailable on MDN.
H10 means a web dyno exists but crashed or did not finish booting. H14 means no web dynos are running, most likely because the web process type was scaled to 0.
Only if the crash was transient. A deterministic startup error crashes again. Heroku restarts crashed dynos under its restart policy, so a loop of starting then crashed in heroku ps is the sign to read the app error instead.
Run the free audit, then approve the fixes. Every change can be undone.