I just got a raspberry pi 5 and I installed OMV 7 on it
I have a HDD drive that is connected to the raspberry pi and I installed docker on
My goal is to have a qbittorrent server and jellyfin that could access the same general volume/mount
so I could have the following setup:
1. download torrent to /shared/qbittorrent/downloads in the raspberry pi FS
2. after the torrent finish downloading run a script move.sh (or something similar)
3. depends on the file type the finished movie/show will symlink to somewhere in shared/jellyfin/movies (for example)
that way I would could seeding the torrent for other people, but will have it for watch on my jellyfin server and structured nicely on the disk
now I've set up the usual docker for jellyfin and qbittorrent docker images from the example in docker-compose and they are both running fine
I tried creating a shared volume/mount named sahred/test
by changing the docker file to be as follows:
---
# https://hub.docker.com/r/linuxserver/qbittorrent
version: "2.1"
services:
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- WEBUI_PORT=8080
volumes:
- CHANGE_TO_COMPOSE_DATA_PATH/qbittorrent/config:/config
- CHANGE_TO_COMPOSE_DATA_PATH/qbittorrent/downloads:/downloads
- CHANGE_TO_COMPOSE_DATA_PATH/qbittorrent/test:/test
- CHANGE_TO_COMPOSE_DATA_PATH/shared/test:/temp
ports:
- 8080:8080
- 6881:6881
- 6881:6881/udp
restart: unless-stopped
Display More
and tried to add a torrent for it to test
but I got the following error:
File error alert. Torrent: "[SubsPlease] Momochi-san Chi no Ayakashi Ouji - 09 (1080p) [633C0257].mkv". File: "/test/[SubsPlease] Momochi-san Chi no Ayakashi Ouji - 09 (1080p) [633C0257].mkv". Reason: "[SubsPlease] Momochi-san Chi no Ayakashi Ouji - 09 (1080p) [633C0257].mkv file_open (/test/[SubsPlease] Momochi-san Chi no Ayakashi Ouji - 09 (1080p) [633C0257].mkv) error: Permission denied"**
after digging a bit I came to realize that the new shared folder is created with a different user/group ownership than the downloads or config folders
output of ls -lhr qbittorrent
I get the following permisisons:
total 12K
drwxr-sr-x 2 root root 4.0K Mar 1 20:16 test
drwxr-sr-x 2 eyal eyal 4.0K Mar 1 20:16 downloads
drwxr-sr-x 4 eyal eyal 4.0K Mar 1 20:16 config
output of ls -lhr on the host machine:
drwxrwsr-x 6 root users 4.0K Mar 1 20:19 .
drwxr-xr-x 7 root root 4.0K Mar 1 12:50 ..
drwxr-sr-x 6 root root 4.0K Mar 1 20:19 jellyfin
drwxr-sr-x 5 root root 4.0K Mar 1 13:12 nginxproxymanager
drwxr-sr-x 5 root root 4.0K Mar 1 20:16 qbittorrent
drwxr-sr-x 3 root root 4.0K Mar 1 20:19 shared
and inside shared on the host machine:
drwxr-sr-x 3 root root 4.0K Mar 1 20:19 .
drwxrwsr-x 6 root users 4.0K Mar 1 20:19 ..
drwxr-sr-x 2 root root 4.0K Mar 1 20:19 test
entering the docker using docker exec -it 83eb54d7967b bash
running ls again I get (trimmed to relevant folders):
drwxr-sr-x 2 root root 4.0K Mar 1 18:16 test
drwxr-sr-x 2 root root 4.0K Mar 1 18:16 temp
drwxr-sr-x 2 abc users 4.0K Mar 1 18:16 downloads
drwxr-sr-x 4 abc users 4.0K Mar 1 18:16 config
which means the test folder is created as root instead of abc:users
and I don't understand why this is happening
this is my jellyfin docker file:
---
# https://hub.docker.com/r/linuxserver/jellyfin
version: "2.1"
services:
jellyfin:
image: lscr.io/linuxserver/jellyfin:latest
container_name: jellyfin
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- JELLYFIN_PublishedServerUrl=192.168.0.5 #optional
volumes:
- CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/library:/config
- CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/tvseries:/data/tvshows
- CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/movies:/data/movies
- CHANGE_TO_COMPOSE_DATA_PATH/shared/test:/data/test
- CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/test:/data/temp
ports:
- 8096:8096
- 8920:8920 #optional
- 7359:7359/udp #optional
- 1900:1900/udp #optional
restart: unless-stopped
Display More
I know I can probably used chown and maually change the user/group of the folders
but for some reason it feels to me like the wrong approach to fixing this problem
is there something that I'm doing wrong?
also is my approach to having shared volume between jellyfin and qbittorrent is correct?
is there a better way to approach it?