Paused services due to unpaid invoice are crashing after making payment and redeploying
Hello, my services we paused and removed due to an unpaid invoice. I paid the invoice but not when I redeploy the latest successful deployment it keeps crashing and won't successfully deploy. Not sure what to do at this point. Also wondering if I've lost all my data due to this?
62 Replies
Project ID:
4b4b518f-cb21-416d-a748-340536d3017e
Any error messages?
Project Id: 4b4b518f-cb21-416d-a748-340536d3017e
this is the only error I am getting
mind sending full logs using this:
https://bookmarklets.up.railway.app/log-downloader/
that is a very indecisive and yet undescriptive error ngl
Hence my confusion. This was working fine before my mess up of not paying. Running the same branch locally starts up the server with no errors.
Also does this mean I lost all my data?
I'm pretty sure Railway gives you a grace period before deleting your data, although I could be wrong, but I'm pretty sure your data is safe
assuming you didn't take forever to pay the invoice
Yea I'm absolutely lost on what the issue could be
build logs?
Would you happen to know how long that grace period is? I missed the emails and it looks to have been about a month 😦
one sec let me download them, they seem fine to me
not entirely sure 😬
theres some funky stuff going on here
fragly do you wanna take it from here?
I'm not entirely sure of myself on this one, I'd prefer spectating
@Pabs3 would you happen to have a nixpacks.toml or railway.json in your project?
Yes I have a nixpacks.toml
send it please
okay going to go off on a tangent here, this is not the first time i have seen this nixpacks.toml file break stuff.
is your medusa project based off of some existing project that already had this file?
I believe I did copy over the file from an existing project and not create a new file with the contents inside since they were identical when I first deployed to railway
do you know where that original nixpacks.toml came from?
or did you originally create it?
Yes I originally created it for a seperate project
have i helped you before?
No I just joined this discord server today from this issue I'm experiencing. Medusajs has documentation on deploying to railway so I'm sure you've helped others from that community
gotcha, thanks for that info, lets get back on track now
do you use yarn or npm locally?
npm
does your project have a yarn lock file
indeed it does
does your project have a package lock file?
yes
what node version do you use locally?
18.13.0
do you have your
engines.node
set to 18
in your package.json?my package.json does not currently have a reference to engines.node
go ahead and set that, then could you send a screenshot of that once done?
set it to 18.13.0?
just 18
perfect, now delete the nixpacks.toml and the yarn lock file, then push the changes to github
Ok one sec
wait, remove the package manager from this
ok
Ok just pushed those changes
Still getting an error starting the server
build logs please
didnt you say you have a package lock file?
Yes I do
its being gitignored
I see let me fix that
Build failed
Looks like another medusa user is currently experiencing the same error
where?
on the medusa server. Almost identical logs with the only error being the server failing to start. Not sure how to copy a link to that thread here
copy paste?
lol didnt see the option to copy the link:
https://discord.com/channels/876835651130097704/1196848130939957248
Ok looks like it was an issue on the medusa side. Thank you both for your time into helping me look into this. I'm now successfully deploying and back online with all of my data!
im sorry i got pulled away, but im happy you where able to solve it, would you mind telling what fixed it for anyone who sees this thread in the future?
Yes I was running some outdated packages so a simple package update fixed it.
awsome, thanks for the info
but for the record, that nixpacks.toml file was also really not helping either 😆
I see. I missed the part where adding that file was optional in medusajs' documentation on deploying to railway. https://docs.medusajs.com/deployments/server/deploying-on-railway
Deploy Your Medusa Backend to Railway | Medusa
Learn step-by-step.
oh wow, they should remove that entire section
youre in their discord, can you ask them to remove it?
Yes I'll make the suggestion but not entirely sure why. Can you help me understand what the issue is?
as long as the repo is correctly setup with the appropriate lock file (not two lock files) and the engines.node is set to the desired major node version, there is zero need for that nixpacks.toml file