Unable to Access Volume in Template FileBrowser
bala1691
HOBBYOP

a year ago

My requirement is to upload oracle-client files to a volume attached to my project fastapi-ces.

To do this

  1. In fastapi-ces I had created a volume (whistle-volume) and mounted under a path oracle-client

  2. Next I disconnected the whistle-volume from fastapi-ces project

  3. Now I create a new project filebrowser from template filebrowser

  4. After successful creation I notice it has created a volume (friend-volume)

  5. By logging into the filebrowser app I'm able to copy files to the friend-volume.

  6. Now when I disconnect the friend-volume from the filebrowser project, I am not able to attach whistle-volume to filebrowser project.

  7. Could you guide me on what is the mistake I have made and how do I connect the whistle-volume to the filebrowser project

Solved

9 Replies

dev
MODERATOR

a year ago

How're you unable to? Like does the filebrowser app not work after mounting or does the button to mount not appear or is some kind of error showing up?


bala1691
HOBBYOP

a year ago

  1. As stated above I initially created a volume and attached to my project fastapi-ces The name shown is whistle-volume (See 01-Volume Created for attachment with fastapi-ces project but dismounted)

  2. I need to copy some driver files which are needed to connect to Oracle database in a folder instantclient_12_1.

  3. So dismounted volume whistle-volume from fastapi-ces project

  4. Next created the Filebrowser project from Template Filebrowser. It automatically created a Volume friend-volume attached to project (See 02-Volume Created in file-browser project)

  5. As suggested I mount volume under /data and USE_VOLUME_ROOT 1.

  6. Now I'm able to use filebrowser and access the volume and upload the folder (See 03-Using File Browser Upload the folder)

  7. Now I detach the volume friend-volume from filebrowser project.

  8. Now I attach whistle-volume to fastapi-ces project, but I do not find the folder instant_client_1 created at Step 6. It means a different volume was attached to filebrowser project

  9. How do I attach the volume whistle-volume to filebrowser project and upload the driver files?


dev

How're you unable to? Like does the filebrowser app not work after mounting or does the button to mount not appear or is some kind of error showing up?

bala1691
HOBBYOP

a year ago

The Volume that I have Created against the fastapi-ces project, I'm not able to access that in the filebrowser app


dev
MODERATOR

a year ago

Oh I see what you mean, you're saying you uploaded files to friendly-volume instead of whistle-volume but you want to use whistle-volume in the filebrowser instance instead?

If that's the case you can just mount whistle-volume under /data to FileBrowser, change the files, dismount and mount it back on fastapi-ces

Filebrowser does come with its own volume but if you're using FileBrowser to browse an existing volume then you can just delete the volume it comes with since you won't be needing it


dev

Oh I see what you mean, you're saying you uploaded files to friendly-volume instead of whistle-volume but you want to use whistle-volume in the filebrowser instance instead? If that's the case you can just mount whistle-volume under /data to FileBrowser, change the files, dismount and mount it back on fastapi-cesFilebrowser does come with its own volume but if you're using FileBrowser to browse an existing volume then you can just delete the volume it comes with since you won't be needing it

bala1691
HOBBYOP

a year ago

You're right. I need to mount whistle-volume. But I do not see that volume when I use the FileBrowser Project.

As shown in the snapshot I see only the friend-volume.

What is it I've to do to see the whistle-volume, in filebrowser project ?


brody
EMPLOYEE

a year ago

You need to deploy the Filebrowser template into the same project.

You currently have it in it's own separate project.


brody

You need to deploy the Filebrowser template into the same project.You currently have it in it's own separate project.

bala1691
HOBBYOP

a year ago

Thanks for the Update.

I have no idea how to do that.

Could you guide me to some documentation or let me know how to do it



brody

Please see our docs on this topic -https://docs.railway.com/overview/best-practices#deploying-related-services-into-the-same-project

bala1691
HOBBYOP

a year ago

Thanks so much for your help and assistance in pointing me to the correct document.

It works perfectly...


Status changed to Solved dev about 1 year ago


Loading...