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)
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)
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
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, 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)
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]