• 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 Synology NFS LXC Permissions

     
    • 0 Vote(s) - 0 Average

    Synology NFS LXC Permissions

    Synology NFS LXC Permissions
    Delsla38
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    #4
    2024-01-26, 07:42 PM (This post was last modified: 2024-01-26, 07:46 PM by Delsla38. Edited 1 time in total.)
    (2024-01-26, 07:11 PM)TheDreadPirate Wrote: We need more info.

    Code:
    sudo journalctl -u jellyfin

    That will drop you in a vim/less like interface.  Shift+G to go to the bottom.  And provide us with the last ~100 lines and paste it in https://sourceb.in/.

    Quote:Jan 26 17:57:42 jellyfin jellyfin[14220]: Unhandled Exception
    Jan 26 17:57:42 jellyfin jellyfin[14220]: System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/logging.default.json' is denied.
    Jan 26 17:57:42 jellyfin jellyfin[14220]:  ---> System.IO.IOException: Permission denied
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    --- End of inner exception stack trace ---
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func2 errorRewriter)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options,>
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.<Main>(String[] args)
    Jan 26 17:57:42 jellyfin jellyfin[14220]: Unhandled exception. System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/logging.default.json' is denied.
    Jan 26 17:57:42 jellyfin jellyfin[14220]:  ---> System.IO.IOException: Permission denied
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    --- End of inner exception stack trace ---
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func
    2 errorRewriter)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options,>
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.<Main>(String[] args)

    Seeing a bunch of this so I believe that tmsrxzar is correct I also have to set the ownership of the files to the new UID.  Is this still an OK approach or am I doing it wrong?

    (2024-01-26, 07:27 PM)tmsrxzar Wrote:
    (2024-01-26, 06:19 PM)Delsla38 Wrote: linux filesystems do not store user "names", they store user id

    changing a user's "id" does not reset owned permissions already set on files, it orphans the permissions on the filesystem

    did you change only the userid for jellyfin and not change the owner of the file


    Exactly I only changed the UID of the jellyfin user I was not aware of that I had to change the owner as well. So even though it says jellyfin still owns the files it's actually owned by the old UID?

    (2024-01-26, 07:27 PM)tmsrxzar Wrote: linux filesystems do not store user "names", they store user id

    changing a user's "id" does not reset owned permissions already set on files, it orphans the permissions on the filesystem

    did you change only the userid for jellyfin and not change the owner of the file


    Exactly I only changed the UID of the jellyfin user I was not aware of that I had to change the owner as well. So even though it says jellyfin still owns the files it's actually owned by the old UID?

    [quote="TheDreadPirate" pid='14893' dateline='1706296319']
    We need more info.
    [code]sudo journalctl -u jellyfin[/code]
    That will drop you in a vim/less like interface.  Shift+G to go to the bottom.  And provide us with the last ~100 lines and paste it in https://sourceb.in/.
    [/quote]
    [quote]Jan 26 17:57:42 jellyfin jellyfin[14220]: Unhandled Exception
    Jan 26 17:57:42 jellyfin jellyfin[14220]: System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/logging.default.json' is denied.
    Jan 26 17:57:42 jellyfin jellyfin[14220]:  ---> System.IO.IOException: Permission denied
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    --- End of inner exception stack trace ---
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func2 errorRewriter)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options,>
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.<Main>(String[] args)
    Jan 26 17:57:42 jellyfin jellyfin[14220]: Unhandled exception. System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/logging.default.json' is denied.
    Jan 26 17:57:42 jellyfin jellyfin[14220]:  ---> System.IO.IOException: Permission denied
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    --- End of inner exception stack trace ---
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func
    2 errorRewriter)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options,>
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.InitLoggingConfigFile(IApplicationPaths appPaths)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
    Jan 26 17:57:42 jellyfin jellyfin[14220]:    at Jellyfin.Server.Program.<Main>(String[] args)[/quote]
    Seeing a bunch of this so I believe that tmsrxzar is correct I also have to set the ownership of the files to the new UID.  Is this still an OK approach or am I doing it wrong?

    [/quote]
    [quote="tmsrxzar" pid='14895' dateline='1706297255']
    linux filesystems do not store user "names", they store user id
    changing a user's "id" does not reset owned permissions already set on files, it orphans the permissions on the filesystem
    did you change only the userid for jellyfin and not change the owner of the file
    [/quote]
    Exactly I only changed the UID of the jellyfin user I was not aware of that I had to change the owner as well. So even though it says jellyfin still owns the files it's actually owned by the old UID?
    [/quote]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Synology NFS LXC Permissions - by Delsla38 - 2024-01-26, 06:19 PM
    RE: Synology NFS LXC Permissions - by TheDreadPirate - 2024-01-26, 07:11 PM
    RE: Synology NFS LXC Permissions - by Delsla38 - 2024-01-26, 07:42 PM
    RE: Synology NFS LXC Permissions - by tmsrxzar - 2024-01-26, 07:27 PM
    RE: Synology NFS LXC Permissions - by tmsrxzar - 2024-01-26, 07:50 PM
    RE: Synology NFS LXC Permissions - by Delsla38 - 2024-01-26, 07:58 PM
    RE: Synology NFS LXC Permissions - by tmsrxzar - 2024-01-26, 08:03 PM
    RE: Synology NFS LXC Permissions - by TheDreadPirate - 2024-01-26, 08:06 PM
    RE: Synology NFS LXC Permissions - by Delsla38 - 2024-01-26, 08:18 PM
    RE: Synology NFS LXC Permissions - by tmsrxzar - 2024-01-26, 08:24 PM
    RE: Synology NFS LXC Permissions - by Delsla38 - 2024-01-26, 08:42 PM
    RE: Synology NFS LXC Permissions - by TheDreadPirate - 2024-01-26, 08:50 PM
    RE: Synology NFS LXC Permissions - by Delsla38 - 2024-01-26, 08:50 PM
    RE: Synology NFS LXC Permissions - by tmsrxzar - 2024-01-26, 09:07 PM

    • 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