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
}
}
Solution:Jump to 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
30 Replies
Project ID:
N/A
Are you on Trial Plan?
Yes
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 )
And no errors?
please send your full deploy logs
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.
This?
You can use this to send full logs:
https://bookmarklets.up.railway.app/log-downloader/
yes thanks, how about the deploy logs?
These are usual logs
Thread has been flagged to Railway team by @Adam.
i’ve tagged in the team, they’ll get back to you during the week sometime
not much we can do here, sorry
Understood, I'll be waiting
What’s your balance on the trial?
4.71
Hmm, I can take a look my AM.
PRO-1759 - deployments on trial plan being removed even though user has credit balance
Status
Triage
Assignee
Faraz Patankar
Product
I see your balance as 0?
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.
Now i see
Yup. We pushed out a fix later that day.
Now I'm need to get the Hobby plan for $5?
Yes.
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