R
Railway•5mo ago
raf

Stuck on Healthcheck

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