R
Railway2mo ago
TripleK

I have lost all the uploaded images

A few months ago I learned how to create volumes with railway so that data storage was persistent. In these months I have uploaded images to my website and after making many commits I have not had any problems. In fact, I do not know if the problem is really due to a redeployment of the application. The thing is that I have lost the vast majority of photos I had. I have looked at the corresponding volume and it has gone from occupying 165Mb to occupying 155Mb in 1 hour. I do not know what is causing this problem and before uploading all the images again I would like to know what is causing it. I attach the photos of the logs and the volume.
No description
No description
No description
No description
Solution:
I'm sorry but we can't restore data when the platform is not at fault
Jump to solution
19 Replies
Percy
Percy2mo ago
Project ID: 4b66a249-0189-49b9-8839-82fa0f275919
TripleK
TripleKOP2mo ago
4b66a249-0189-49b9-8839-82fa0f275919
Brody
Brody2mo ago
have you lost everything? all images?
TripleK
TripleKOP2mo ago
At the moment, it has only affected the images and not all of them, but the vast majority. This image is preserved along with other images that are in png format: https://api.fibbel.net/media/multimedia/Ejercicio_1.png However, the rest of the images that were in jpg format have disappeared. https://api.fibbel.net/media/multimedia/283_Small.jpg
Brody
Brody2mo ago
well I can assure you this is not a platform level issue, something happened with your application and those images where removed by your app
TripleK
TripleKOP2mo ago
Maybe, at first I thought it might be railway but there seems to be a pattern with the file type. Is there any way to restore the lost images quickly?
Solution
Brody
Brody2mo ago
I'm sorry but we can't restore data when the platform is not at fault
TripleK
TripleKOP2mo ago
Can i use filebrowser template to upload the data? and another question, is the data that is in the volume also in the postgresql database? I ask this because I am a little lost with the issue of data persistence, since I have just implemented the backup copies to Google Drive of the postgresql database using a template, in case a situation like the one repeated occurs again. It just happened to me, to be able to restore a backup copy of the database
Brody
Brody2mo ago
yes you can, please carefully read it's overview before using it your database volume has nothing to do with the volume on Django.
TripleK
TripleKOP2mo ago
so the django volume has nothing to do with the postgresql database? If I understand correctly, this means that the images that are saved in the Django volume are not in the postgresql database?
Brody
Brody2mo ago
that's correct
TripleK
TripleKOP2mo ago
And is there a way to make backup copies of the Django volume so I can restore it in case I lose the images again?
Brody
Brody2mo ago
that would be something you need to write code for
TripleK
TripleKOP2mo ago
Is there a guide or something related to this topic for railway?
Brody
Brody2mo ago
it wouldn't be specific to Railway
TripleK
TripleKOP2mo ago
And a general guide for backups volumen?
Brody
Brody2mo ago
railway does not provide a way to backup a volume, it is something you'd need to write code for
TripleK
TripleKOP2mo ago
Thanks brody!
Brody
Brody2mo ago
no problem!
Want results from more Discord servers?
Add your server