Lost n8n Workflows After Railway Redeploy. Is there a Possible Container Recovery?
Anonymous
HOBBYOP

a month ago

I had an n8n deployment running on Railway using SQLite. I mistakenly did not attach a volume, so /home/node/.n8n/database.sqlite was stored in the container filesystem. After a redeploy the workflows disappeared. Deployment history still shows the old deployment (2648d44c, Jun 16), but the container is marked removed and I cannot access its filesystem. Is there any way to restore or inspect the previous container filesystem?

Solved

7 Replies

Railway
BOT

a month ago

Your n8n service had no volume attached, so the SQLite database lived on ephemeral container storage, which is discarded on every redeploy and cannot be recovered. Going forward, attach a volume to persist /home/node/.n8n across redeploys, and enable volume backups so you can self-restore if needed.


Status changed to Awaiting User Response Railway about 1 month ago


Railway

Your n8n service had no volume attached, so the SQLite database lived on ephemeral container storage, which is discarded on every redeploy and cannot be recovered. Going forward, [attach a volume](https://docs.railway.com/guides/volumes) to persist `/home/node/.n8n` across redeploys, and enable volume backups so you can self-restore if needed.

Anonymous
HOBBYOP

a month ago

My service was not manually redeployed. Railway removed the service after my trial ended, which caused the container filesystem containing /home/node/.n8n/database.sqlite to disappear, for when i purchased a subscription.

Is there any possibility the previous container filesystem, snapshot, or deployment layer from the old deployment (2648d44c, Jun 16) is still available internally for recovery?

I understand the data was stored on ephemeral storage, but I want to confirm whether Railway retains any recovery window after automatic service changes.


Status changed to Awaiting Railway Response Railway about 1 month ago


Railway
BOT

a month ago

The data was never written to persistent storage, so there is nothing on our side to restore, regardless of what triggered the container lifecycle change. To prevent this going forward, attach a volume to persist /home/node/.n8n and enable volume backups on the service.


Status changed to Awaiting User Response Railway about 1 month ago


a month ago

The Railway bot is right here, once a deployment was removed its ephemeral storage can no longer be recovered


Status changed to Awaiting Railway Response Railway about 1 month ago


Status changed to Solved Railway about 1 month ago


astrid

The Railway bot is right here, once a deployment was removed its **ephemeral** storage can no longer be recovered

Anonymous
HOBBYOP

a month ago

Thanks for confirming. Just to clarify, there is no snapshot, filesystem layer, cache, or temporary recovery window available for removed containers even shortly after removal? I want to make sure before considering the data permanently lost.


Status changed to Awaiting Railway Response Railway about 1 month ago


Thanks for confirming. Just to clarify, there is no snapshot, filesystem layer, cache, or temporary recovery window available for removed containers even shortly after removal? I want to make sure before considering the data permanently lost.

a month ago

Yep, that's right.

There's no snapshot or temporary recover window, ephemeral storage is deleted immediately when the container terminates.


sam-a
EMPLOYEE

a month ago

Confirmed - there is no snapshot, filesystem layer, cache, or temporary recovery window for ephemeral container storage. Once a container is removed, that storage is gone. Your service had no volume attached, so the SQLite database was never written to persistent storage. Sorry about that.


Status changed to Awaiting User Response Railway about 1 month ago


Status changed to Solved medim about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...