FerryDocs

The health check times out

Ferry cannot connect to the port of the new instance. The app listens on the wrong address or port.

Edit on GitHub

What you see

Deploy log
==> Deploy failed: health check timed out after 120s: nothing accepts connections on container port 10000 (published as 127.0.0.1:…) yet: does the app listen on $PORT (10000) on 0.0.0.0? An app listening on 127.0.0.1 (localhost) inside its container can't be reached

Why it occurs

port 10000Ferryhealth checkYour app127.0.0.1:10000

The app listens on 127.0.0.1 in its container. Ferry cannot reach it.

1 / 3

The connects to the of the new . Nothing answers on that port.

The deploy gets the status deploy_failed. The previous deploy continues to answer.

How to repair it

Make the app listen on 0.0.0.0 and on the port in $PORT. As an alternative, give the port of your app to Ferry:

Terminal
ferry update NAME --port N

See The port of your app and Environment.

On this page