Using Filebrowser template to access SQLite database
caseyocampo
HOBBYOP

9 months ago

Issue

I am unable to get Filebrowser to work with the volume that contains my SQLite database.

What I've tried

I've...

  • Deployed a Filebrowser service to my project

  • Removed the default attached volume from the Filebrowser template

  • Detached my volume containing my SQLite db to the Filebrowser service

  • Mounted my volume to the Filebrowser service

  • Entered the same mount path to the Filebrowser when I was prompted to enter one

When I open the Filebrowser service URL, it says "It feels lonely here..." but there is data (a SQLite db with data) in that volume.

My goal

I would like to view and download my SQLite database to my local machine. Making updates to it in the Filebrowser UI would be nice as well.

What am I doing wrong?

References
https://railway.com/template/Nan7Bs
https://github.com/brody192/volume-filebrowser
https://station.railway.com/questions/how-to-export-a-sqlite-db-in-a-volume-98705aa7

UPDATE [SOLVED]

I had to add an additional USE_VOLUME_ROOT variable with a value of 1, which overwrites the default key of 0. Thank you for your help, medim!

Solved$10 Bounty

Pinned Solution

medim
MODERATOR

9 months ago

Hi!

Just a guess here... But have you tried setting the USE_VOLUME_ROOT env var to 1 in the Filebrowser template as stated in the template's page description?

2 Replies

chandrika
EMPLOYEE

9 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open chandrika 9 months ago


medim
MODERATOR

9 months ago

Hi!

Just a guess here... But have you tried setting the USE_VOLUME_ROOT env var to 1 in the Filebrowser template as stated in the template's page description?


medim

Hi! Just a guess here... But have you tried setting the USE_VOLUME_ROOT env var to 1 in the Filebrowser template as stated in the template's page description?

caseyocampo
HOBBYOP

9 months ago

I did indeed miss that step! Weirdly, I could not update the default USE_VOLUME_ROOT value by editing it, it would just revert to 0. I had to add an additional USE_VOLUME_ROOT variable, which overwrote the default key. Thank you for your help, medim!


Status changed to Solved chandrika 9 months ago


Loading...