json files disappearing
rossfreedman
PROOP

7 months 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!

Solved$10 Bounty

Pinned Solution

jimmyb
FREE

7 months 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.

4 Replies

Railway
BOT

7 months 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!


7 months 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.


rossfreedman
PROOP

7 months 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


jimmyb
FREE

7 months 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 7 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...