Stuck on Healthcheck
raflymln
TRIALOP

2 years ago

Somehow all the attempts failed and idk why, the build was fine before

14 Replies

raflymln
TRIALOP

2 years ago

2fee4431-767f-456a-8835-06cdd70005f7


2 years ago

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 ?


raflymln
TRIALOP

2 years ago

yes

1264862222346096600


2 years ago

those are just environment variables though, that alone doesn't reassure me anything unfortunately


raflymln
TRIALOP

2 years ago

well, it's nextjs, and it's working fine before @Brody


2 years ago

Please make sure you are listening on the host 0.0.0.0 and the environment variable $PORT


raflymln
TRIALOP

2 years ago

okay my fault this time 😔 forgot to add hostname on dockerfile, thanks


2 years ago

no worries!


raflymln
TRIALOP

2 years ago

I think i still need help on this, this is basically my dockerfile, and somehow it still ends with stuck on healthcheck

1264870082413334500
1264870082765389800


2 years ago

^


raflymln
TRIALOP

2 years ago

okay i see, i found out that dotenvx not found resulting in server not starting (but somehow no error is shown)


2 years ago

can't listen on a host or port if the server isn't starting


raflymln
TRIALOP

2 years ago

yep already solved, i'm not see the deploy logs so that's why i don't found errors haha


2 years ago

make sure you are logging unbuffered to stdout/stderr


Loading...