SMB Mount ( IPv6), JF Cleanup Too Early - pixel24 - 2024-06-10
Hi@all,
I run a dual-stack (IPv4/IPv6) internally. With IPv6, the SMB mount of the libraries from the server takes a few seconds. As a result, when JF restarts, it thinks the titles in the playlists are no longer available and empties them completely. :-(
On the current working system (JF 10.8.3), which uses the same libraries/mounts, this problem does not occur.
with best
RE: SMB Mount ( IPv6), JF Cleanup Too Early - Venson - 2024-06-10
Hey Pixel,
The new server got some improvements that drastically improves startup times, so i recon that the server just starts too fast for your shares to be available. However i understand your frustration, but this is really not an JF issue. I assume you run Jellyfin on a linux server barebones?
RE: SMB Mount ( IPv6), JF Cleanup Too Early - Efficient_Good_5784 - 2024-06-10
Any chance you're using Docker?
I remember @TheDreadPirate posted a while back to another user with a similar question that the container could be set up to delay activation until the host mounts where actually connected.
RE: SMB Mount ( IPv6), JF Cleanup Too Early - pixel24 - 2024-06-10
Yes, I am using JF 10.9.6 on a Debian server (12.5), without a GUI, running as a VM on my Proxmox. I don't want to use Docker.
I am currently trying to get to the bottom of the problem. Is there a way to delay the start of the Jellyfin service?
RE: SMB Mount ( IPv6), JF Cleanup Too Early - Efficient_Good_5784 - 2024-06-10
Maybe try not auto-starting Jellyfin on system boot and instead have it start up a few minutes later by the use of a cron job.
RE: SMB Mount ( IPv6), JF Cleanup Too Early - TheDreadPirate - 2024-06-10
Read my answer in this post. You can modify the jellyfin service file to wait for the mount before starting.
https://forum.jellyfin.org/t-jellyfin-deletes-all-media-metadata-when-unable-to-access-media-filles
RE: SMB Mount ( IPv6), JF Cleanup Too Early - pixel24 - 2024-06-10
I would say it has nothing to do with the mount. As I mentioned, currently Jellyfin does not start automatically. I created a test playlist and added an album. Then I performed a restart.
Checked the mount:
Code: root@media02:~# ls /data01/Musik2/10cc/The\ Very\ Best\ Of\ 10cc/*
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Art For Art’s Sake.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Cry.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Donna.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Dreadlock Holiday.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Good Morning Judge.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - I’m Mandy Fly Me.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - I’m Not In Love.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Life Is A Minestrone.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Neanderthal Man.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - People In Love.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Rubber Bullets.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Silly Love.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - The Dean And I.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - The Things We Do For Love.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - The Wall Street Shuffle.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Under Your Thumb.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Une Nuit À Paris∶ One Night In Paris ⁄ The Same Night In Paris ⁄ Later The Same Night In Paris.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/10cc - Wedding Bells.ogg'
'/data01/Musik2/10cc/The Very Best Of 10cc/album.nfo'
'/data01/Musik2/10cc/The Very Best Of 10cc/cover.jpg'
All titles are there.
Started Jellyfin / Monitored the logfile
Code: root@media02:~# journalctl -f
Jun 10 19:38:29 media02 jellyfin[811]: [19:38:29] [INF] Defined LAN exclusions: []
Jun 10 19:38:29 media02 jellyfin[811]: [19:38:29] [INF] Used LAN subnets: ["192.168.83.0/24", "fdd0:a044:f4c::/64"]
Jun 10 19:38:29 media02 jellyfin[811]: [19:38:29] [INF] Filtered interface addresses: ["127.0.0.1", "192.168.83.13", "::1", "[Public IPv6 Address - Censored by TDP]", "fdd0:a044:f4c::f", "fe80::c40f:82ff:fe84:eb56%2"]
Jun 10 19:38:29 media02 jellyfin[811]: [19:38:29] [INF] Bind Addresses ["::"]
Jun 10 19:38:29 media02 jellyfin[811]: [19:38:29] [INF] Remote IP filter is Allowlist
Jun 10 19:38:29 media02 jellyfin[811]: [19:38:29] [INF] Filtered subnets: []
Jun 10 19:38:30 media02 jellyfin[811]: Fontconfig error: No writable cache directories
Jun 10 19:38:30 media02 jellyfin[811]: Fontconfig error: No writable cache directories
Jun 10 19:38:30 media02 jellyfin[811]: Fontconfig error: No writable cache directories
Jun 10 19:38:30 media02 jellyfin[811]: Fontconfig error: No writable cache directories
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: Discogs 1.0.0.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: IMVDb 4.0.0.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: LDAP-Auth 19.0.0.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: TMDb 10.9.6.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: Studio Images 10.9.6.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: OMDb 10.9.6.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: MusicBrainz 10.9.6.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Loaded plugin: AudioDB 10.9.6.0
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [INF] Kestrel is listening on all interfaces
Jun 10 19:38:37 media02 jellyfin[811]: [19:38:37] [WRN] The WebRootPath was not found: /var/lib/jellyfin/wwwroot. Static files may be unavailable.
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Skipping realtime monitor for /data01/Musik2 because the path does not exist
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Running startup tasks
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Daily trigger for Trickplay-Bilder generieren set to fire at 2024-06-11 03:00:00.000 +02:00, which is 07:21:21.9522100 from now.
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Daily trigger for Extrahiere Kapitel-Bilder set to fire at 2024-06-11 02:00:00.000 +02:00, which is 06:21:21.9475949 from now.
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Found ffmpeg version 6.0.1
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Available decoders: ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Available encoders: ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] FFmpeg: /usr/lib/jellyfin-ffmpeg/ffmpeg
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] ServerId: eb172e79c3424bd38745e5804289240f
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Core startup complete
Jun 10 19:38:38 media02 jellyfin[811]: [19:38:38] [INF] Startup complete 0:00:09.75626
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - The Wall Street Shuffle.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - The Things We Do For Love.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Donna.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - I’m Not In Love.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Life Is A Minestrone.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Cry.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Good Morning Judge.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Art For Art’s Sake.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - I’m Mandy Fly Me.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Wedding Bells.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Under Your Thumb.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Neanderthal Man.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - The Dean And I.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Une Nuit À Paris∶ One Night In Paris ⁄ The Same Night In Paris ⁄ Later The Same Night In Paris.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Dreadlock Holiday.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - People In Love.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Rubber Bullets.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Item in Test-006 cannot be found at /data01/Musik2/10cc/The Very Best Of 10cc/10cc - Silly Love.ogg
Jun 10 19:38:41 media02 jellyfin[811]: [19:38:41] [INF] Sammlungen und Playlisten aufräumen Completed after 0 minute(s) and 0 seconds
The mount was already active and the files were available at the time of the Jellyfin start. Despite this, Jellyfin still cleared the playlist.
RE: SMB Mount ( IPv6), JF Cleanup Too Early - TheDreadPirate - 2024-06-10
Since this is a network mount you should disable real time monitoring since SMB does not support inotify. I'm not sure if that is the cause of your issue, but it should be disabled regardless.
What are the mount parameters for this share in /etc/fstab?
RE: SMB Mount ( IPv6), JF Cleanup Too Early - pixel24 - 2024-06-10
First, I tried the solution from the linked post by making the service in Systemd dependent on the mount:
Code: /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
RequiresMountsFor=/data01/Musik2
This did not change the behavior, which I expected because the relevant share was mounted and available before I manually started Jellyfin.
Next, I disabled the real-time monitoring of the library. However, this did not change the behavior either. The playlist is empty after a few reboots of the VM.
My /etc/fstab:
Code: //srv01.lan.intern.lan/Musik2 /data01/Musik2 cifs rw,auto,fsc,iocharset=utf8,uid=administrator,gid=domain\040users,file_mode=0660,dir_mode=0770,credentials=/root/.smbpasswd,vers=3.1.1 0 0
RE: SMB Mount ( IPv6), JF Cleanup Too Early - TheDreadPirate - 2024-06-10
You're not making a jellyfin.service.conf file. RequiresMountsFor goes into jellyfin.service itself.
If this happens SOMETIMES on reboot, this 100% sounds like the post I linked. Jellyfin is sometimes starting before the SMB share mounts.
Put RequiresMountFor in /etc/systemd/system/jellyfin.service.d/jellyfin.service directly.
Code: [Unit]
Description = Jellyfin Media Server
After = network-online.target
[Service]
RequiresMountsFor=/data01/Musik2
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143
[Install]
WantedBy = multi-user.target
|