HTTP health checks failed

Hi,

I’m trying to deploy a web server, but I’m getting an “HTTP health checks failed” message.

I’m pretty sure my server is properly listening on port 80, and I’ve put EXPOSE 80 in my Dockerfile.

What I think is going on is that it takes my server about 12 seconds to initialize, and Aptible is only waiting two or three seconds to decide that it has failed.

How can I fix this?

remote: INFO – : Waiting on shell to respond to HTTP health checks…
remote: ERROR – : Container for shell failed to start (exited with status 0 after 0 seconds).
remote: ERROR – : 1 of 1 HTTP health checks failed.
remote: (8ミ | FATAL: Deploy failed.

Hi Flarosa,

Looking at your output, I can see:

remote: ERROR -- : Container for shell failed to start (exited with status 0 after 0 seconds).

This means that your container exited immediately upon starting. This is usually a result of your app daemonizing. Most apps can be configured to not daemonize in order to resolve this issue.

Usually, docs will either refer to this as “not daeomizing” or “running in the foreground”. If you’d like to clarify what software you’re running (e.g. include your Procfile), I might be able to provide more detail!

Cheers,