Stuck on Healthcheck
Somehow all the attempts failed and idk why, the build was fine before
Solution:Jump to solution
as per those logs the service is unaviable, are you sure you are listening on the host 0.0.0.0 and the environment variable $PORT ?
15 Replies
Project ID:
2fee4431-767f-456a-8835-06cdd70005f7
2fee4431-767f-456a-8835-06cdd70005f7
Solution
as per those logs the service is unaviable, are you sure you are listening on the host 0.0.0.0 and the environment variable $PORT ?
yes
those are just environment variables though, that alone doesn't reassure me anything unfortunately
well, it's nextjs, and it's working fine before @Brody
Please make sure you are listening on the host 0.0.0.0 and the environment variable $PORT
okay my fault this time 😔 forgot to add hostname on dockerfile, thanks
no worries!
I think i still need help on this, this is basically my dockerfile, and somehow it still ends with stuck on healthcheck
^
okay i see, i found out that dotenvx not found resulting in server not starting (but somehow no error is shown)
can't listen on a host or port if the server isn't starting
yep already solved, i'm not see the deploy logs so that's why i don't found errors haha
make sure you are logging unbuffered to stdout/stderr