R
Railway

✋|help

Random app crash, no logs or other indicator

Ccesargdm8/25/2023
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
Ccesargdm8/25/2023
97615b19-20a7-4b88-887d-d4df0fa9a3c1
Also, railway healtchecks seem to be passing
Bbrody1928/25/2023
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
Ccesargdm8/25/2023
It has been working just fine the past couple of months
First time that I have this issue
🤔
Ccesargdm8/25/2023
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
🤔
Bbrody1928/25/2023
what kind of app is this?
Ccesargdm8/25/2023
Node + Docker
I'm fine tunning the ARG in the Dockerfile
Hopefully that helps
Bbrody1928/25/2023
well its railway so of course its docker
the ARG for what?
Ccesargdm8/25/2023
PORT
Bbrody1928/25/2023
you dont need a PORT ARG
send the dockerfile please
Ccesargdm8/25/2023
Looks like it's working now anyway
Thanks for your kind help!
Bbrody1928/25/2023
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
Ccesargdm8/25/2023
If you install npm with npm you update it, for security reasons i.e.
Bbrody1928/25/2023
my statement stands, sorry
Ccesargdm8/25/2023
But since I’m not using it for installing dependencies, i would not use that, you are right there
Bbrody1928/25/2023
i can remove it if you want?
Ccesargdm8/25/2023
Why wouldn’t I need the ARG or ENV for PORT?
🧐
Bbrody1928/25/2023
you dont need a PORT during your build
the PORT variable is used when the app starts, not during build
Ccesargdm8/25/2023
I see 🤔
And what about the EXPOSE
Wouldn’t it need to know which port to expose?
Bbrody1928/25/2023
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?
Ccesargdm8/25/2023
Probably, let me have a second round to the docs

Looking for more? Join the community!

Recommended Posts
Modify build commandHow would I modify the build command so it does a pip install of `psycopg2` ? I was told to remove tPayment method removalHey, how do I remove my payment method? I opted in for a credit subscriptions but still see my crediDeploying crashedHello, i'm facing a problem when deploying my spring boot application to railway, my application worInternal server error when accessing TypebotI noticed that since yesterday the new installations with the Typebot template present the error IntRAILWAY_PUBLIC_DOMAIN replaces RAILWAY_STATIC_URLHi team, we've been hunting down a bug with our app today, occurring on many PR Environments and it'My Subscription issueHello dear support guys: I found that I have been downgraded to No Subscription.. If my memory is rIs it normal for hello world json to return in 600ms? - GO FIBERHelp setting up a monorepoI'm getting this error when deploying my project. I made sure no other deployments are running, but Deployment and logging issues (Maven)Hello, My program is running fine locally, but when I deploy it with Railway, I start seeing issuesIssues with Postgres DBI don't really understand why I am not seeing any tables in my DB. Seeding works, but the database sversion 'GLIBC 2.29' not foundweird error that seems to be because of my code, but it works on my computer <:bing_shrug:5837915814Use rust nightlyidk how docker works but i cant use the nightly rust dockerfile image for some reasonFix Missing libuuid LibraryHey, I am currently runnig into problems deploying my FastAPI backend after adding a new dependency I can no longer connect to my MySQL database, even after restarting the databaseI'm not sure what my project id is. My link is this: https://railway.app/project/31b9ee92-06cc-44c1-RPC showing forbidden access 403Hi. I've got some crypto related script which pings an RPC server - it works fine locally but on raiHow would I connect my project with the SQL database ?I have a model for users and I would like to populate my production DB with them. How can I do that?Hipaa/socI wanted to confirm if the information on https://railway.app/help is current as the email listed boMemory consumption differenceSame app deployed in docker local and Hw(M1 16gb) consumes 52 mb with no load railway took 74mb can Nextjs 13 Environmental variableHello! I recently installed Nextjs to try out the "new" app directory, because I heard server actioRailway CLI postgresql not installed?I installed the CLI and postgresql on my computer to use pgloader to migrate a mysql db to postgres