a month ago
Hi Railway Team,
Why are my JSON files on your server disappear between SSH sessions?
Files created by my scripts are there in one session but gone in the next. Is this expected behavior?
Thanks!
4 Replies
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
a month ago
Hey, your data only persists if you use a volume, they do not persist between deployments by default, which is most likely the reason why your JSON files only sometimes exist when you SSH into your service (especially when you roll out new deployments frequently). More on volumes can be found in the documentation.
a month ago
Thanks for your help. I think my plan supports mounting a persistent volume, and I may even have one but its not mounted/operational. How can I confirm and how do I turn this on so my json files don’t get deleted? Do i just need to click "Mount" or is there more to it than that?
Attachments
a month ago
You should be able to click on Mount and then specify the mount point. You can learn more about using volumes here - https://docs.railway.com/guides/volumes Of note, when you created the volume it should have prompted you which service you wanted to connect it to.
Status changed to Solved noahd • about 1 month ago