I have lost all the uploaded images
pacohm00
PROOP

2 years ago

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.

20 Replies

pacohm00
PROOP

2 years ago

4b66a249-0189-49b9-8839-82fa0f275919


2 years ago

have you lost everything? all images?


pacohm00
PROOP

2 years 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


2 years 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


pacohm00
PROOP

2 years 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?


2 years ago

I'm sorry but we can't restore data when the platform is not at fault


pacohm00
PROOP

2 years ago

Can i use filebrowser template to upload the data?


pacohm00
PROOP

2 years ago

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


2 years ago

yes you can, please carefully read it's overview before using it


2 years ago

your database volume has nothing to do with the volume on Django.


pacohm00
PROOP

2 years 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?


2 years ago

that's correct


pacohm00
PROOP

2 years 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?


2 years ago

that would be something you need to write code for


pacohm00
PROOP

2 years ago

Is there a guide or something related to this topic for railway?


2 years ago

it wouldn't be specific to Railway


pacohm00
PROOP

2 years ago

And a general guide for backups volumen?


2 years ago

railway does not provide a way to backup a volume, it is something you'd need to write code for


pacohm00
PROOP

2 years ago

Thanks brody!


2 years ago

no problem!


Loading...