R
Railway5mo 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
Percy5mo ago
Project ID: N/A
Fragly
Fragly5mo ago
Are you on Trial Plan?
MARMEI
MARMEI5mo ago
Yes
Fragly
Fragly5mo 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
MARMEI5mo ago
No description
Fragly
Fragly5mo ago
And no errors?
Adam
Adam5mo ago
please send your full deploy logs
MARMEI
MARMEI5mo 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
MARMEI5mo ago
This?
No description
Fragly
Fragly5mo ago
You can use this to send full logs: https://bookmarklets.up.railway.app/log-downloader/
Adam
Adam5mo ago
yes thanks, how about the deploy logs?
MARMEI
MARMEI5mo ago
These are usual logs
No description
Duchess
Duchess5mo ago
Thread has been flagged to Railway team by @Adam.
Adam
Adam5mo 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
MARMEI5mo ago
Understood, I'll be waiting
Faraz
Faraz5mo ago
What’s your balance on the trial?
MARMEI
MARMEI5mo ago
4.71
Faraz
Faraz5mo ago
Hmm, I can take a look my AM.
Faraz
Faraz5mo ago
I see your balance as 0?
MARMEI
MARMEI5mo ago
No description
Faraz
Faraz5mo ago
What do you see here? https://railway.app/account/usage @MARMEI ?
MARMEI
MARMEI5mo ago
No description
Faraz
Faraz5mo 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
MARMEI5mo ago
No description
MARMEI
MARMEI5mo ago
Now i see
Faraz
Faraz5mo ago
Yup. We pushed out a fix later that day.
MARMEI
MARMEI5mo ago
Now I'm need to get the Hobby plan for $5?
Faraz
Faraz5mo ago
Yes.
Solution
Brody
Brody5mo 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