R
Railway11mo ago
MARMEI

Deploys are automatically deleted if services are inactive for a period of time

I deployed 3 services on Railway and tested them throughout the day, no errors occurred, App Sleeping was disabled, and the logs of the last deploy don't show any errors or crashes. However, after the weekend, I returned to find that all services were simply turned off - the deploys were deleted. I've attached all the configs. railway.json (for Content API, but the settings in other services are roughly the same): { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS", "buildCommand": "go build -o aiodyssey-content-api ./cmd/server" }, "deploy": { "startCommand": "./aiodyssey-content-api", "restartPolicyType": "ALWAYS", "restartPolicyMaxRetries": 3 } }
No description
No description
Solution:
for context, available credits where being displayed wrong, the dashboard would show you that you still had credit when you didn't and that's why your services where being removed, because the system knew you had depleted your credits
Jump to solution
30 Replies
Percy
Percy11mo ago
Project ID: N/A
Fragly
Fragly11mo ago
Are you on Trial Plan?
MARMEI
MARMEIOP11mo ago
Yes
Fragly
Fragly11mo ago
mind sharing your metrics for your apps? one possibility is that you're reaching the maximum metrics allowed for trial plan and then Railway shuts the deployments down ( just a hunch )
MARMEI
MARMEIOP11mo ago
No description
Fragly
Fragly11mo ago
And no errors?
Adam
Adam11mo ago
please send your full deploy logs
MARMEI
MARMEIOP11mo ago
Got it, it's like all active deploys were deleted, there were no new commits, and I'm the only one on the project. All services, even the FastAPI which I took from a template and didn't modify, were turned off.
MARMEI
MARMEIOP11mo ago
This?
No description
Fragly
Fragly11mo ago
You can use this to send full logs: https://bookmarklets.up.railway.app/log-downloader/
Adam
Adam11mo ago
yes thanks, how about the deploy logs?
MARMEI
MARMEIOP11mo ago
These are usual logs
No description
Duchess
Duchess11mo ago
Thread has been flagged to Railway team by @Adam.
Adam
Adam11mo ago
i’ve tagged in the team, they’ll get back to you during the week sometime not much we can do here, sorry
MARMEI
MARMEIOP11mo ago
Understood, I'll be waiting
Faraz
Faraz11mo ago
What’s your balance on the trial?
MARMEI
MARMEIOP11mo ago
4.71
Faraz
Faraz11mo ago
Hmm, I can take a look my AM.
Linear
Linear11mo ago
Faraz
Faraz11mo ago
I see your balance as 0?
MARMEI
MARMEIOP11mo ago
No description
Faraz
Faraz11mo ago
What do you see here? https://railway.app/account/usage @MARMEI ?
MARMEI
MARMEIOP11mo ago
No description
Faraz
Faraz11mo ago
Hmm, I am trying to figure out where the bug is but your balance is definitely 0. For some reason, it's only displaying $5 - current month usage instead of lifetime usage on your end.
MARMEI
MARMEIOP11mo ago
No description
MARMEI
MARMEIOP11mo ago
Now i see
Faraz
Faraz11mo ago
Yup. We pushed out a fix later that day.
MARMEI
MARMEIOP11mo ago
Now I'm need to get the Hobby plan for $5?
Faraz
Faraz11mo ago
Yes.
Solution
Brody
Brody11mo ago
for context, available credits where being displayed wrong, the dashboard would show you that you still had credit when you didn't and that's why your services where being removed, because the system knew you had depleted your credits
Want results from more Discord servers?
Add your server