• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SMB Mount ( IPv6), JF Cleanup Too Early

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SMB Mount ( IPv6), JF Cleanup Too Early

    Delayed SMB Mount Causes JF to Empty Playlists
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #1
    2024-06-10, 06:56 AM
    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
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 378
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #2
    2024-06-10, 08:50 AM
    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?
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,168
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #3
    2024-06-10, 10:20 AM
    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.
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #4
    2024-06-10, 12:36 PM
    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?
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,168
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #5
    2024-06-10, 12:46 PM
    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.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-06-10, 01:12 PM (This post was last modified: 2024-06-10, 01:12 PM by TheDreadPirate.)
    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-de...dia-filles
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #7
    2024-06-10, 05:48 PM (This post was last modified: 2024-06-10, 08:05 PM by TheDreadPirate. Edited 1 time in total.)
    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.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-06-10, 05:57 PM
    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?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    pixel24
    Offline

    Member

    Posts: 196
    Threads: 56
    Joined: 2023 Aug
    Reputation: 1
    Country:Germany
    #9
    2024-06-10, 07:54 PM
    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
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-06-10, 08:10 PM (This post was last modified: 2024-06-10, 08:11 PM by TheDreadPirate. Edited 2 times in total.)
    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
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode