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.
19 Replies
Project ID:
4b66a249-0189-49b9-8839-82fa0f275919
4b66a249-0189-49b9-8839-82fa0f275919
have you lost everything? all images?
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
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
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
I'm sorry but we can't restore data when the platform is not at fault
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
yes you can, please carefully read it's overview before using it
your database volume has nothing to do with the volume on Django.
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?
that's correct
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?
that would be something you need to write code for
Is there a guide or something related to this topic for railway?
it wouldn't be specific to Railway
And a general guide for backups volumen?
railway does not provide a way to backup a volume, it is something you'd need to write code for
Thanks brody!
no problem!