Volume getting auto wipe out
shaikat
PROOP

10 months ago

Hi there, I am in hobby plan. I have created a persistent storage. However, after every new deployment the data in the volume is geting wiped. Am I doing anyting incorrectly? Is this an expected behavior?

18 Replies

shaikat
PROOP

10 months ago

2825d179-16ab-4d3e-bf1b-c3b0d70e18ce


10 months ago

if data is being wiped, that data is not being stored in the volume


shaikat
PROOP

10 months ago

I can access the data using mounting path. But after redeploy it just becomes a fresh volume.


shaikat
PROOP

10 months ago

How can I prevent it?


10 months ago

you need to save data into the volume, your mount path is likely incorrect


shaikat
PROOP

10 months ago

/app/data

This is the mounting path I have in setting.


10 months ago

and are you sure that your app stores data in that same path?


shaikat
PROOP

10 months ago

I think I am. Because I can access those using the same path.


shaikat
PROOP

10 months ago

DATA_DIR = "./data"

In the app backend I have saving the data in thie above directly.


shaikat
PROOP

10 months ago

Am I doing a mistake here?


10 months ago

then your mounting dir should be just /data


shaikat
PROOP

10 months ago

For example, if your application writes data to ./data, you should mount the volume to /app/data.

This is the instruction I was following.,


shaikat
PROOP

10 months ago

All right. Let me try that.


10 months ago

how did it go @mykabir ?


shaikat
PROOP

10 months ago

It's still not working.


shaikat
PROOP

10 months ago

Let say I want mount a path for an image directory. let say the name is image. What should be my mounting path and access path?


shaikat
PROOP

10 months ago

I am using python. Does it anything to do with package type? Like hobby vs pro?


10 months ago

No, there's no relation between plans.
Volumes are supposed to be simple, if your app uploads images to /data then your volume mounting path should be /data


Loading...