R
Railway16mo ago
cesargdm

Random app crash, no logs or other indicator

When trying my healtcheck I get random crashes, no recent deploy was made, I don't see any logs on my systems nor in Railway Logs https://api.cretia.app/.well-known/apollo/server-health
22 Replies
Percy
Percy16mo ago
Project ID: 97615b19-20a7-4b88-887d-d4df0fa9a3c1
cesargdm
cesargdmOP16mo ago
97615b19-20a7-4b88-887d-d4df0fa9a3c1 Also, railway healtchecks seem to be passing
Brody
Brody16mo ago
a 503 is not always indicative of a crash, it usually means your app is listening on the wrong host and or port, please read this https://docs.railway.app/troubleshoot/fixing-common-errors
cesargdm
cesargdmOP16mo ago
It has been working just fine the past couple of months First time that I have this issue 🤔
cesargdm
cesargdmOP16mo ago
Will check, thank you If that would be the case, wouldn't I get a consistent 503? instead of being it random? My configuration looks fine 🤔
Brody
Brody16mo ago
what kind of app is this?
cesargdm
cesargdmOP16mo ago
Node + Docker I'm fine tunning the ARG in the Dockerfile Hopefully that helps
Brody
Brody16mo ago
well its railway so of course its docker the ARG for what?
cesargdm
cesargdmOP16mo ago
PORT
Brody
Brody16mo ago
you dont need a PORT ARG send the dockerfile please
cesargdm
cesargdmOP16mo ago
Looks like it's working now anyway Thanks for your kind help!
Brody
Brody16mo ago
like i said, you dont need ARG PORT or even ENV PORT why are you globally installing npm with npm? im sorry but theres a lot wrong with that dockerfile, and in the intrest of stopping someone from coming along and using it, im going to have to ask you to remove it @cesargdm
cesargdm
cesargdmOP16mo ago
If you install npm with npm you update it, for security reasons i.e.
Brody
Brody16mo ago
my statement stands, sorry
cesargdm
cesargdmOP16mo ago
But since I’m not using it for installing dependencies, i would not use that, you are right there
Brody
Brody16mo ago
i can remove it if you want?
cesargdm
cesargdmOP16mo ago
Why wouldn’t I need the ARG or ENV for PORT? 🧐
Brody
Brody16mo ago
you dont need a PORT during your build the PORT variable is used when the app starts, not during build
cesargdm
cesargdmOP16mo ago
I see 🤔 And what about the EXPOSE Wouldn’t it need to know which port to expose?
Brody
Brody16mo ago
you listen on the PORT generated by railway, thats the only way railway will know how to proxy requests to your app i take it you maybe just skimmed that docs page?
cesargdm
cesargdmOP16mo ago
Probably, let me have a second round to the docs
Want results from more Discord servers?
Add your server