3 hours ago
Hello, I need help making a safe copy of the persistent volume attached to my production service.
My Railway service is crashed at startup, and CLI access to its persistent volume fails with an SFTP timeout. The Backups tab shows no backups, and private support is unavailable on my plan. What is the safest supported way to inspect and download the existing volume contents before restarting the service? I want to avoid detaching or redeploying it until I understand the risks.
3 Replies
3 hours ago
Your volume is still attached to the service and in a ready state, with about 98 MB used of its 500 MB, so its contents are intact on our storage. The service's latest deployment is currently removed rather than running.
The supported way to read and copy the files without detaching or redeploying is the CLI's volume file commands: railway volume files list / to look around, railway volume browse / for an interactive browser, and railway volume files download / ./volume-copy to pull a local copy (pass --volume before the subcommand if you have more than one). These are described in the railway volume docs.
Since those commands are what timed out for you, it is worth updating the CLI to the latest version before retrying, then confirming the download completed before you change anything on the service.
Status changed to Awaiting User Response Railway • about 3 hours ago
2 hours ago
Update: I registered a new unencrypted Ed25519 SSH key and verified its fingerprint locally. Railway CLI v5.77.0 is linked to the correct project, production environment, and service. The command railway volume files --volume lake-intelligence-volume list / now fails with Failed to initialize SFTP session — Timeout. The dashboard says the volume is attached and ready, with about 98 MB used, but the latest deployment is removed. What supported read-only method can I use to inspect or download the volume contents without detaching, restoring, or redeploying it?
Status changed to Awaiting Railway Response Railway • about 2 hours ago
2 hours ago
We're sorry, our earlier reply pointed you at the wrong tool for this situation. The volume file commands, railway volume browse, SSH and the dashboard Files view all connect through a running instance of the attached service. With the latest deployment of that service removed, nothing is running to connect to, so none of them can read the volume. Updating the CLI or changing your SSH key won't change that.
There isn't a read-only way to inspect or download the files while the service has no running deployment. To read them, the service has to be running again. The volume is still attached and ready with your data on it.
Status changed to Awaiting User Response Railway • about 2 hours ago