How to install filebrowser correctly?

Although I have installed and run filebrowser, I can only see the files and cannot perform any other operations. Downloading files also shows a 500 Internal Server Error. What did I do wrong? I installed it from the apps and only change Additional Storage config to make host path as /mnt and mount path as .

—I know why. I should set the document owner or group is 568 that mean apps group and give the all permission.

i can share my docker compose that works? i dont claim it’s necessarily correct, but it works.

services:
  filebrowser:
    image: filebrowser/filebrowser:latest
    container_name: filebrowser


    environment:
      - PUID=0
      - PGID=0
      - TZ=America/New_York
    ports:
      - 8084:80
    volumes:
      - /mnt/Storage:/srv/Storage:ro
      - /mnt/Storage2:/srv/Storage2:ro
      - /mnt/test:/srv/test:ro
      - /mnt/docker/data/filebrowser/config/settings.json:/config/settings.json
      - /mnt/docker/data/filebrowser/config/database.db:/database.db
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
networks: {}

first, i see that you are trying to deploy directly from the truenas UI. I suggest you install dockge and use that instead. You can continue using truenas UI for deploying if you prefer, but i like using dockge since it’s nice (it can even archive your docker compose stacks in a separate folder)

ideally u should not run docker as root (big security concern). ur suppose to create a user e.g. for docker, then use that instead. u have to figure that one out urself. So change the pguid and pgid accordingly to match that. 0:0 here means for root user.

then look at the image i use. this one i tested working. linuxserver might have this i dont know, but i tested this one works.

notice i used :ro this means read only. If you want to do stuff like copy/paste/edit. then simply remove :ro I mostly use filebrowser for browsing through content. i’m worried something accidentally changed while testing filebrowser, which is why i added that. Once i was satisfied with it, i would have removed the ro

lastly, notice the mounts. this is how u do them. this is what i had the most issue, until i figured it out. so u can use mine as an example and use it to apply to yours after modifying the pathing accordingly to fit your own setup.

fyi i use dockge to deploy. not necessarily to use that, but i like using it for docker over portainer, and the manual shell method.

1 Like

i was watching lawrences youtube, he covered how to setup filebrowser

this is closer to what u r looking for if ur planning to setup via the truenas ui

for me, i setup via jailmaker docker and dockge.

1 Like

Yeah, I followed this tutorial and successly installed FileBrowser on Dragonfish which is working great on newly created datasets and SMB shares.

The problem I have is downloading and uploading old files/folders from a dataset created years ago in Angelfish even though I changed the dataset permissions to use apps and set the dataset as additional storage in FileBrowser. I can view the old file names/icons but cannot access them. Get the “500 internal server error.” Strangely, I can upload new files to this old dataset and use them but the old files don’t respond. Sort of think it’s a permissions fault but don’t know how to fix it.

Thank you, but I am using Turnas version 24.10, and its settings are different. After attempting to create a file and encountering a failure, I checked the filebrowser log, which showed the following error:

/raid1/1111.txt: 403 192.168.5.9 open /data/raid1/1111.txt: permission denied

This appears to be a permissions issue. The user ID and group ID for the File Browser configuration are set to the default 568. How can I resolve this issue?

Now, I prefer not to use the TrueNAS UI for deployment and will try your suggested method.

dockge is very nice :blush:

i setup all my dockers via jailmaker, so i’m less experienced doing it the truenas way via the ui. i didnt even touch that.

for jailmaker, dan updated the guide to install that for electric eel

so once jailmaker docker is installed, you can then install dockge. i did so login to jailmaker docker jail

in shell, jlmkr shell docker

i then cd to where my docker compose is located, then i do the docker compose up d to deploy the docker compose for my dockge. this installs dockge.

then i go to the web url to dockge. from this point onward you have the dockge UI. You can then deploy the rest of your docker containers through dockge ui. So it was only dockge that you had to install manually ^^;

in your dockge docker compose, you can specify where your docker stacks go.

so stacks is separated from the data folder.

stacks is where it archived your docker compose for each container.

the data folder is where your docker container configs go to.

So to back up your docker containers, simply go to truenas shell, do jlmkr stop docker

once it’s stopped, run the backup for the stacks and the data folder locations. To keep it simple though those are 2 separate folders, they are both located under the docker location i set. So i simply backup docker folder :blush:

1 Like

This is the correct thread.

1 Like

just to give an example for my dataset structure pertaining to docker

this is where the data for the containers are located which data. so e.g. filebrowser, jellyfin…and so on. This is where the data used my the containers and their configs are located
/mnt/docker/data/filebrowser

next is the dockge stack. this is where docker compose for the docker containers are located which is under stacks. so dozzle, filebrowser… etc
/mnt/docker/stacks/dozzle

and jail make is in a separate dataset. jailmaker creates the jail in this location. another important file is the jailmaker config, which if you do extensive changes, you should also probably backup. for networking setting its nested in the created jail folder, that should be back up also. to keep things simple, i just backup the whole jailmaker folder

/mnt/xxxxx/jailmaker

stux made a video explaining how to deploy jailmaker, but i would suggest you read dan’s instructions since it’s more up to date for electric eel.

if u plan to setup bridging for networking, this video also helped me do that

So the choice is, stick to the truenas ui for setting up docker containers.

Or, use jailmaker

What i like about jails, you can mess around with it, and it’s separate from truenas. So if you mess up you can simply delete the jail and remake it without affecting your truenas stuff.

Also if you want to downgrade or upgrade docker you can. whereas truenas depends on what they are actively using and you have to wait for new truenas update. so jailmaker is a bit more flexible in that sense.

sometimes i want to install some tools like nano, but i dont want to do that for truenas, so i can safely do that under the jail.

1 Like