Urgent: Redeploy Caused Data Loss – Request for Assistance
shahriyarmammadov
HOBBYOP

a year ago

Dear Railway Support Team,

I hope this email finds you well.

I am reaching out regarding an issue with my application deployed on Railway. Recently, I noticed that my project was automatically redeployed without any manual action from my side. Unfortunately, after this redeployment, several important files, including images and other resources, appear to have been deleted.

Here are some details about my project and the issue:

  • Project Name: image_cloud_railway

  • Deployment Date of the Original Version: 8 months ago

  • Date of Automatic Redeploy: 13 hours ago

  • Affected Files/Resources: Necessary files and images

I would greatly appreciate your guidance on the following:

  1. Is there a way to recover the lost files from the previous deployment?

  2. Could you clarify why the redeployment happened automatically?

  3. How can I prevent similar issues from happening in the future, particularly regarding file persistence?

Your prompt assistance in this matter would be highly appreciated, as the lost data is critical to my application’s functionality. Please let me know if you need any additional information to investigate the issue further.

Thank you in advance for your help. I look forward to your response.

Best regards,
Shahriyar Mammadov

2 Replies

shahriyarmammadov
HOBBYOP

a year ago

please help me


brody
EMPLOYEE

a year ago

Hello,

Sometimes our systems will move workloads around our hosts to better utilize available compute space, this results in a redeploy showing in your activity feed, this process is seamless from our side so it has no downtime for your applications.

The problem here was that you aren't using a volume, instead you saved all your media in the temporary container storage, thus all saved media is lost when redeployed.

Your media would have also been lost had you pushed new code, since that's also a redeploy action.

Unfortunately, because those media files where stored in temporary storage, they are not recoverable.

Going forward, please use a volume to store all the files you need to persist between deployments.

https://docs.railway.com/guides/volumes

Hope this helps, but if you have any more questions, feel free to ask!

Best,

Brody


Loading...