• 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 SOLVED: Error writing images and NFO to SMB share

     
    • 0 Vote(s) - 0 Average

    SOLVED: Error writing images and NFO to SMB share

    Patio6573
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    #1
    2024-12-05, 02:45 AM (This post was last modified: 2024-12-05, 10:36 PM by Patio6573. Edited 3 times in total. Edit Reason: Solved )
    Setup:
    Box 1: Proxmox --> Debian12 VM, no GUI --> Jellyfin 10.9.11
    Box 2: Truenas Scale --> SMB share "jellyfin-library"

    My notes show I used the following commands in the Debian VM to mount the network library location.
    Code:
    #make mounting point on server
    mkdir /mnt/jellyfin-library

    #create fstab entry
    nano /etc/fstab
    //192.168.1.114/jellyfin-library /mnt/jellyfin-library cifs credentials=/root/.jellyfin-library-credentials,_netdev 0 0

    Problem:
    I get NFO and artwork related errors for every movie/show/episode in my library (1000+). I didn't notice the issue until I went looking for NFO files, since the artwork is successfully saving to the /var/... folder. So I did the kind of scan that replaces all metadata and artwork, and creates NFO files, and was dumbfounded when the log file was full of these access denied errors. Then I spent the last 3 evenings searching for keywords without luck.
    Code:
    [ERR] UnauthorizedAccessException - Access to path "/mnt/jellyfin-library/movies/some-movie (YYYY)/clearart.png" is denied. Will retry saving to "/var/lib/jellyfin/metadata/library/c6/c6f4ede0a7ffccb56743f86b575e8a60/clearart.png"
    [ERR] Error in metadata saver
    System.UnauthorizedAccessException: Access to the path '/mnt/jellyfin-library/movies/some-movie (YYYY)/movie.nfo' is denied.
    ---> System.IO.IOException: Permission denied
      --- End of inner exception stack trace ---
      at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
      at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
      at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
      at System.IO.FileStream..ctor(String path, FileStreamOptions options)
      at MediaBrowser.XbmcMetadata.Savers.BaseNfoSaver.SaveToFileAsync(Stream stream, String path)
      at MediaBrowser.XbmcMetadata.Savers.BaseNfoSaver.SaveAsync(BaseItem item, CancellationToken cancellationToken)
      at MediaBrowser.Providers.Manager.ProviderManager.SaveMetadataAsync(BaseItem item, ItemUpdateType updateType, IEnumerable`1 savers)
    Jellyfin can read everything just fine. All my media shows up in the libraries as expected, new media is visible on client devices immediately after running a scan. The issue is limited to Jellyfin writing files to the SMB share.

    Expectation:
    Jellyfin starts writing artwork and NFO files to the SMB share.

    I can run the following command from the debian command line and manually create a NFO file without issue:
    Code:
    root@debian-jellyfin:/mnt/jellyfin-library/movies/some-movie (YYYY)/movie.nfo
    ...so I think my permissions are setup correctly on the TrueNAS side of things.
    I also tried a temporary Jellyfin installation on Windows and it worked OK, so it's definitely specific to my Linux installation. I am 99% sure I've overlooked something basic, but I'm at a point where I need some guided help.
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-05, 01:59 PM
    Try adding "noperm" to the SMB options in /etc/fstab.

    Code:
    //192.168.1.114/jellyfin-library /mnt/jellyfin-library cifs credentials=/root/.jellyfin-library-credentials,_netdev,noperm 0 0
    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]
    Patio6573
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    #3
    2024-12-05, 10:38 PM
    (2024-12-05, 01:59 PM)TheDreadPirate Wrote: Try adding "noperm" to the SMB options in /etc/fstab.

    Code:
    //192.168.1.114/jellyfin-library /mnt/jellyfin-library cifs credentials=/root/.jellyfin-library-credentials,_netdev,noperm 0 0

    That did the trick! Thank-you very much.
    « 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