Skip to content
Subject: SFTP timeout accessing persistent volume for crashed cron service
kastie-lub
OP

2 months ago

Hello Railway Support,

My production cron service SPY_QQQ_Trading is crashed. Its persistent volume spy_qqq_trading-volume is mounted at /app/data.

The CLI commands railway service files list /app/data --json and railway service files list /app --json both fail with:

Failed to initialize SFTP session — Timeout

I need to inspect and restore an existing strategy-state file in /app/data/paper/ without overwriting any existing files. The service currently fails during startup, and I do not want to restart it until the state has been safely reconciled.

Could you help restore access to the service filesystem or advise on a safe way to inspect and restore the file on the persistent volume?

Thank you.

$10 Bounty

5 Replies

Status changed to Awaiting Railway Response Railway • about 2 months ago


Railway
BOT

2 months ago

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

Status changed to Open Railway • about 2 months ago


Your service must be online for you to view its files. Alternatively, you can unmount the volume, deploy a Filebrowser instance, and mount the volume to your Filebrowser service. You’ll be able to view the contents of your volume from there.


kastie-lub
OP

2 months ago

Thanks for the guidance. My service currently crashes during startup, and I need to recover or inspect the existing contents of the persistent volume mounted at /app/data before allowing the trading workflow to run again.

Can you confirm the safest procedure for temporarily deploying a Filebrowser service and mounting the existing volume spy_qqq_trading-volume without formatting, initializing, or overwriting its contents? Should I detach the volume from the crashed service first, and how should I ensure the volume is mounted read-only if possible?

I need to preserve the existing paper-trading strategy state and inspect it before restarting the original service.


When you detach the volume, IIRC the service might deploy. To abort, go to the deployments tab of the service, click on the 3 dots of the active deployment, and abort it. IIRC there isn’t a way to make the volume readonly. You’d just need to make sure you don’t perform any destructive actions when viewing the filesystem.


kastie-lub
OP

2 months ago

Hi Railway Support,

My service SPY_QQQ_Trading has a persistent volume mounted at /app/data in the US West (California) region.

The deployment crashes at startup, and I need to inspect or recover the existing files in /app/data/paper/ before restarting the service. However, all Railway CLI file-access attempts fail with:

Failed to initialize SFTP session: Timeout

This occurs with both railway service files list and railway service files browse.

Could you advise how I can safely inspect or recover the volume contents without wiping or deleting the volume, and without triggering an unsafe deployment?

The volume contains state used to track existing Alpaca paper-trading positions, so preserving its data is important.

Thank you.


kastie-lub

Hi Railway Support, My service `SPY_QQQ_Trading` has a persistent volume mounted at `/app/data` in the US West (California) region. The deployment crashes at startup, and I need to inspect or recover the existing files in `/app/data/paper/` before restarting the service. However, all Railway CLI file-access attempts fail with: `Failed to initialize SFTP session: Timeout` This occurs with both `railway service files list` and `railway service files browse`. Could you advise how I can safely inspect or recover the volume contents without wiping or deleting the volume, and without triggering an unsafe deployment? The volume contains state used to track existing Alpaca paper-trading positions, so preserving its data is important. Thank you.

Check the messages above. You'd need to deploy a Filebrowser instance to inspect its contents.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...