Skip to content
Volume SFTP timeout for stopped cron service
nathanleith88
OP

a month ago

On Windows with Railway CLI 5.64.2, railway volume files list / --json fails after SSH authentication with: Failed to list / after reconnect; Failed to initialize SFTP session; Timeout.

The attached service is a cron job running approximately six seconds before exiting successfully; between runs there are zero running replicas.

Does volume-file access require a running replica? Is there a supported read-only way to download an existing backup from its volume while the cron is stopped?

If maintenance requires a running container, can Railway reuse the exact existing deployment image with a temporary idle start-command override? Which operation honors the override without rebuilding source or running the original application, and how can the original command and schedule be restored without an extra application run?

$10 Bounty

1 Reply

Status changed to Awaiting Railway Response Railway • about 1 month ago


Railway
BOT

a month ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 1 month ago


A service needs to be online for you to view its volume contents. And by "read-only," just don't perform any destructive action (eg, deleting a file)... There isn't a "read-only" way to access volumes.

And yes, you can temporarily set the start command to sleep infinity to start the service without triggering any commands, then set it back to its original command after inspecting the volume.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...