R
Railway

✋|help

Mounting a volume

Ddandandev9/5/2023
Hi! is there a way to upload files to a volume or mount it on my local mahcine?
Mmantisinabox9/5/2023
Not mounting it, but you can use this template to mount the volume and manipulate the data.

https://railway.app/template/Nan7Bs
N/A
You will have to unmount your volume from your current service and mount it to the template
Ddandandev9/5/2023
it cant access the files for some reason
Ddandandev9/5/2023
is it a permission issue?
Mmantisinabox9/5/2023
@Brody you made this template
Ddandandev9/5/2023
ah
Ddandandev9/5/2023
its trying to use /data/storage
Mmantisinabox9/5/2023
Then that is where you need to mount your volume
Ddandandev9/5/2023
welp ill mount it there then
yeh
Bbrody1929/5/2023
just mount it to /data
Ddandandev9/5/2023
oh now its using data/storage/storage
did that but it didnt work
Bbrody1929/5/2023
well it was only a matter of time before someone broke it
Mmantisinabox9/5/2023
By default, the storage location is set to the storage subdirectory in the root of the volume, but by setting a service variable USE_VOLUME_ROOT to 1 you can opt to use the root of the volume as the storage location instead
Ddandandev9/5/2023
ah
thats probably the problem
Mmantisinabox9/5/2023
From the overview of the template
Ddandandev9/5/2023
i see stuff now but its not my volume
Bbrody1929/5/2023
the template comes with a volume
Ddandandev9/5/2023
i should use that?
Bbrody1929/5/2023
its up to you
you can always unmount it and mount your volume
Ddandandev9/5/2023
but will it like save the stuff i make in here?
to the root of the volume
Bbrody1929/5/2023
thats what USE_VOLUME_ROOT is for
so when you went to deploy the template, did you change the volume mount point or something?
Ddandandev9/5/2023
no i took the docker thing and made it in my project myself
cause it didnt seem like i could transfer it to another project
Bbrody1929/5/2023
did it not come with a volume when you deployed it like that?
Ddandandev9/5/2023
nop
Bbrody1929/5/2023
that's not good
Ddandandev9/5/2023
hmm it didnt work
Bbrody1929/5/2023
and when you mounted a volume to it, what was the first mount point that you did?
Ddandandev9/5/2023
/data
Bbrody1929/5/2023
okay and what isn't working now
Ddandandev9/5/2023
oh i see the problem :P
pocketbase is running in /pb
and i mounted it to another thing
hey it worked
Ddandandev9/5/2023
it found my backup!
Ddandandev9/5/2023
it restored successfully, thanks for your help!
Bbrody1929/5/2023
can't you upload and download backups from pocketbase itself?
Ddandandev9/5/2023
you can download but not upload
kinda stupid
Bbrody1929/5/2023
I see
agree

Looking for more? Join the community!

Recommended Posts
Hello, i have a deploy error that i don't have beforeHello, my last deploy was a year ago, i have make a litle update and now the nodejs projet give my Issue with setting up custom domainHey guys I have an app hosted on railway. I've added a custom domain and based on the intructions I You have an unpaid invoice. You must pay this invoice before you can upgrade to the Hobby plan.I was trying to pay $20 for the Hobby plan, and then my card was declined, after a few second I got Anyone who has recently deployed a nodejs server on railway willing to help?My server runs fine locally, however when deployed its not listening to the requests. I put in the rIs there a way to auto restart a service to save memory? There an api available that we can trigger?I want to see if there is a way to restart my service in specified durations. if there's an api trigHow to using 3.0.0 dart version?``` #10 [6/9] RUN dart pub get #10 0.566 Resolving dependencies... #10 0.666 The current Dart Using AND in logs Search and fetching these via an APII want to use AND to search the logs with both the keywords, currently the logs search assumes OR whAccessing current Nixpacks fileI need to install Poppler on my Railway environment. From what I can see one way to do this is via tI am having trouble connecting to Azure Data Studio (Postgres)I am trying everything can't seem to connect to ADS any advice? This is the error I'm recieving ``API accusing Application failed to respond in development environmentI'm trying to run my application in the development environment, but it gives an error. It only runsAPI accusing Application failed to respond in development environmentI'm trying to run my application in the development environment, but it gives an error. It only runsRestore old logs?Hi! Is there a way to restore old log feature while you figure out the kinks in the new one? The newSource IPsIm sure I'm missing it in the documentation But is there a list of source IPs from railway deploymeError running the application in the background.I cannot or the screen -S command is not executed in my program, and I do not know what the solutionMedical System To ProductionHello, I am developing a medical system and I want to put it into production using Railway so that eDeploy restarted near the endJust deployed a change (573e8198-6981-45c6-81ae-91d5210afc0c) and it got through the build, then staFiles uploadGood afternoon, I would like to create a small SaaS application and deploy it entirely to railway. Upgrade To Hobby Plan:Why am I unable to upgrade to a Hobby Plan? Your UI keeps getting stuck on this page each time I tryRedis not configured properly for DjangoHi, I'm trying to use Redis with Django and Channels. I keep getting this error message which seems Inspecting built Docker Image locallyHello I have an issue in my application when running in Railway. I would like to download the image