Jellyfin Forum
SOLVED: Series library not scanning after drive change - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: Series library not scanning after drive change (/t-solved-series-library-not-scanning-after-drive-change)



Series library not scanning after drive change - argentsquest - 2024-09-10

Back again with another random issue - i've replaced a drive with a bigger one, and moved my series to the new drive rather than movies and series on the same drive. 
Shared folders still points to the right place (Videos/Series) and this is visible and accessible in both file browser and the shared folder via network, and i've made sure the Jellyfin user still has permissions to view but the logs come up with:

Quote:[2024-09-10 16:56:23.050 +01:00] [WRN] [18] MediaBrowser.Controller.Entities.BaseItem: Library folder "/Videos/Series" is inaccessible or empty, skipping
The shared folder details for the Series folder are as below: 

Quote:Videos-Series         /dev/sdb1         Videos/Series/                /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series

I've even tried adding the direct link to the container but still has the same issue - The files will still have the saved metadata etc from the original import but its more the fact the logs say its inaccessible / empty although the permissions have definitely been set to read/write access, and confirmed for recursing so it passes down to subfolders etc.

edit: i've just looked and it seems to the same issue with the Movies folder as well - logs are saying inaccessible / empty and when I try to play on any device playback fails with an error... Do I need to clear the database or something even though the shared paths haven't changed?


RE: Series library not scanning after drive change - TheDreadPirate - 2024-09-10

Show me the output of these commands and also your docker compose again.

Code:
mount | grep Series
ls -ld /srv /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2 /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series

Copy and paste the ls command. I am repeating the paths for a reason.


RE: Series library not scanning after drive change - argentsquest - 2024-09-10

(2024-09-10, 04:23 PM)TheDreadPirate Wrote: Show me the output of these commands and also your docker compose again.

Code:
mount | grep Series
ls -ld /srv /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2 /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series

Copy and paste the ls command.  I am repeating the paths for a reason.

Code:
$ mount | grep Series

ls -ld /srv /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2 /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series$ $
drwxr-xr-x  9 root root  4096 Sep 10 00:40 /srv
drwxrws---+ 3 phil users 4096 Sep 10 16:50 /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2
drwxrwx---+ 3 phil users 4096 Sep 10 00:49 /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos
drwxrws---+ 8 phil users 4096 Sep 10 02:22 /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series

Code:
---
# https://hub.docker.com/r/linuxserver/jellyfin
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1002
      - PGID=100
      - TZ=Europe/London
      - JELLYFIN_PublishedServerUrl=192.168.1.170
    volumes:
      - CHANGE_TO_COMPOSE_DATA_PATH/jellyfin/library:/config
      - /Videos/Movies
      - /Videos/Series

      - /Music/

    ports:
      - 8096:8096
      - 8920:8920 #optional
      - 7359:7359/udp #optional
      - 1900:1900/udp #optional
    restart: unless-stopped



RE: Series library not scanning after drive change - TheDreadPirate - 2024-09-10

Your volumes are not correct in your docker compose. You need to define a host path and a container path.

Code:
- /srv/dev-disk-by-uuid-e17d7ab1-19b3-4da1-9f55-5986855ed583/Videos/Movies:/Videos/Movies
- /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series:/Videos/Series

Also, you have ACLs on your folders. How did you mount this drive? With /etc/fstab? Or did your OS automatically mount this drive? We could remove the ACLs, but that may be temporary depending on how you mounted the drive.

Code:
sudo setfacl -b -R /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2

Let's skip the grep. Can you share the entire output of the "mount" command?


RE: Series library not scanning after drive change - argentsquest - 2024-09-10

(2024-09-10, 04:49 PM)TheDreadPirate Wrote: Your volumes are not correct in your docker compose.  You need to define a host path and a container path.

Code:
- /srv/dev-disk-by-uuid-e17d7ab1-19b3-4da1-9f55-5986855ed583/Videos/Movies:/Videos/Movies
- /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2/Videos/Series:/Videos/Series

Also, you have ACLs on your folders.  How did you mount this drive?  With /etc/fstab?  Or did your OS automatically mount this drive?  We could remove the ACLs, but that may be temporary depending on how you mounted the drive.

Code:
sudo setfacl -b -R /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2

Let's skip the grep.  Can you share the entire output of the "mount" command?


I'm using a clean install of OMV, so just mounted each disk in the NAS using the internal admin panel - each drive was formatted fresh using the panel as well, with the media copied to the internal drives from various USB drives, thumb sticks etc, with the exception of a few hardware monitoring plugins for the main dashboard, the only extra installations have been docker and jellyfin.

Complete output from the mount command:

Code:
$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8062428k,nr_inodes=2015607,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1624800k,mode=755,inode64)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11257)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,relatime,inode64)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/sde1 on /srv/dev-disk-by-uuid-769538b9-730f-4451-9bb8-52bb9b5c8503 type ext4 (rw,relatime,quota,usrquota,grpquota)
/dev/sdd1 on /srv/dev-disk-by-uuid-37169e78-96c1-49f7-a72a-44908b571017 type ext4 (rw,relatime,quota,usrquota,grpquota)
/dev/sdb1 on /srv/dev-disk-by-uuid-95574347-463e-449c-b65a-4492874048e2 type ext4 (rw,relatime,quota,usrquota,grpquota)
/dev/sdc1 on /srv/dev-disk-by-uuid-e17d7ab1-19b3-4da1-9f55-5986855ed583 type ext4 (rw,relatime,quota,usrquota,grpquota)
/dev/sda1 on /var/lib/containers/storage/overlay type ext4 (rw,relatime,errors=remount-ro)
shm on /var/lib/containers/storage/overlay-containers/322f416b5e9d5034f21054cc94e95b8da0fc23ab187c9b942360c4220cfbe439/userdata/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=64000k,inode64)
overlay on /var/lib/containers/storage/overlay/6785f993388f3a8e54071dfd377aeabf231e5a4b37fd3241e32cb11bd9c9db5b/merged type overlay (rw,relatime,lowerdir=/var/lib/containers/storage/overlay/l/NWTMIG24FFAHZF326LQCMZCQMD:/var/lib/containers/storage/overlay/l/L4IPOMCB2AHCKXX6RXDMYHTJYA:/var/lib/containers/storage/overlay/l/JYXEJXZV6QNXLPFWLQ6WCTQXMY:/var/lib/containers/storage/overlay/l/NCZJGSI64N56DNV4QB3RISZVVV:/var/lib/containers/storage/overlay/l/DUYX5KMMZRXXF4RYGRQDBEC5QD:/var/lib/containers/storage/overlay/l/WIRNQY6XANKFRQ7LFR3F6NA4KB:/var/lib/containers/storage/overlay/l/HJAPKQX3D6LOEJOVS3BLI3GLO2:/var/lib/containers/storage/overlay/l/ZT63ENTXEN5LAFDNTYWLARVU7Q:/var/lib/containers/storage/overlay/l/T5HPA5CRR3HLJQW3I3EN3AEYX4,upperdir=/var/lib/containers/storage/overlay/6785f993388f3a8e54071dfd377aeabf231e5a4b37fd3241e32cb11bd9c9db5b/diff,workdir=/var/lib/containers/storage/overlay/6785f993388f3a8e54071dfd377aeabf231e5a4b37fd3241e32cb11bd9c9db5b/work)
tmpfs on /run/netns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1624800k,mode=755,inode64)
shm on /var/lib/containers/storage/overlay-containers/086a764f95ecb6dd8812dc725aa653bf40efebaa9727c428ea6ea0b7e6f57d95/userdata/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=64000k,inode64)
overlay on /var/lib/containers/storage/overlay/3d9a51a0b09e9d9eecab0f8a00a437e6f277d22ca759cc7a291dfc5fa7446203/merged type overlay (rw,relatime,lowerdir=/var/lib/containers/storage/overlay/l/SJCSMWJW4J5XVGEY5MDHC4ETPX,upperdir=/var/lib/containers/storage/overlay/3d9a51a0b09e9d9eecab0f8a00a437e6f277d22ca759cc7a291dfc5fa7446203/diff,workdir=/var/lib/containers/storage/overlay/3d9a51a0b09e9d9eecab0f8a00a437e6f277d22ca759cc7a291dfc5fa7446203/work)
nsfs on /run/netns/netns-a111f41c-950f-f8ed-c6a2-2f172ebfbe99 type nsfs (rw)
nsfs on /run/netns/netns-a111f41c-950f-f8ed-c6a2-2f172ebfbe99 type nsfs (rw)
overlay on /var/lib/containers/storage/overlay/7222b1a8faa756577d2a5cc4946ad29cf564c43d1ead2df891894085ae1aabf9/merged type overlay (rw,relatime,lowerdir=/var/lib/containers/storage/overlay/l/7R4RXTFZ5CKJVMWVXFH6NRV4F2:/var/lib/containers/storage/overlay/l/YFPSGTZQFLJQ6JB2E76BM4SL22:/var/lib/containers/storage/overlay/l/D74IFJRIXUB3KS3YVUQN2LLCMX:/var/lib/containers/storage/overlay/l/O7V5YWSDRDSO3IE4IT5RNCO542:/var/lib/containers/storage/overlay/l/LYNPA5OODC5RDLKCCZ5OQKZWAE,upperdir=/var/lib/containers/storage/overlay/7222b1a8faa756577d2a5cc4946ad29cf564c43d1ead2df891894085ae1aabf9/diff,workdir=/var/lib/containers/storage/overlay/7222b1a8faa756577d2a5cc4946ad29cf564c43d1ead2df891894085ae1aabf9/work)
overlay on /var/lib/containers/storage/overlay/96bd66b41939e3ab0dd20c5badcc252b3190f932d30a840cedb00f9e27fd5d53/merged type overlay (rw,relatime,lowerdir=/var/lib/containers/storage/overlay/l/YRZ55PY3753GJHGL2IOKDXJSYN:/var/lib/containers/storage/overlay/l/XWDLPIZNOS65ZS5XMKP7FY3NAI:/var/lib/containers/storage/overlay/l/32AMTUAP4F6WYATOCF5LBXMQOA:/var/lib/containers/storage/overlay/l/CBJOKGYYZI5LEKBPGEMSZHYSRT:/var/lib/containers/storage/overlay/l/AUJ36NTJODQYNNJVDRCHCZ3I3D:/var/lib/containers/storage/overlay/l/TMK5TQBI5ZSCL64DZKJR5SU33N,upperdir=/var/lib/containers/storage/overlay/96bd66b41939e3ab0dd20c5badcc252b3190f932d30a840cedb00f9e27fd5d53/diff,workdir=/var/lib/containers/storage/overlay/96bd66b41939e3ab0dd20c5badcc252b3190f932d30a840cedb00f9e27fd5d53/work)
overlay on /var/lib/docker/overlay2/b337d54df1c56d976d5f5eb3ba444859e54e9a5b2433a1c210be55e89c0b1f7e/merged type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/XPCMBDVUNUEMFVEZV5AVIB3RIE:/var/lib/docker/overlay2/l/NJZS2RORFBAQU3I3ETF5AQVKW2:/var/lib/docker/overlay2/l/MOLFTZGVVCIMAKMXGS2HR76EMT:/var/lib/docker/overlay2/l/4CSDNCWRCZ6NT66C5WPVHZVN6B:/var/lib/docker/overlay2/l/COTZPZPMXICWFY2IHPRPMHDKLH:/var/lib/docker/overlay2/l/JTCCLKMIQQUTODNQN5AFUAO2QN:/var/lib/docker/overlay2/l/J4QCN5HDJRXYFOFCARMCK5CER3:/var/lib/docker/overlay2/l/EOH7XVBYBBH2XB6ZVMIQG6AWCD:/var/lib/docker/overlay2/l/ZOJH65D5SGSZULFKP5YIYBRNWH:/var/lib/docker/overlay2/l/ZFWCXW7Q4QLKSLF3E2VSYAQ2CH,upperdir=/var/lib/docker/overlay2/b337d54df1c56d976d5f5eb3ba444859e54e9a5b2433a1c210be55e89c0b1f7e/diff,workdir=/var/lib/docker/overlay2/b337d54df1c56d976d5f5eb3ba444859e54e9a5b2433a1c210be55e89c0b1f7e/work)
nsfs on /run/docker/netns/502b366d6e66 type nsfs (rw)



RE: Series library not scanning after drive change - TheDreadPirate - 2024-09-10

Let's just remove all the ACLs, then.

Code:
sudo setfacl -b -R /srv/



RE: Series library not scanning after drive change - argentsquest - 2024-09-10

After a container restart the libraries are scanning now, so that seems to have fixed it, thanks! Never thought about checking the ACLs, i'll make sure to check them if I get any more problems.