Jellyfin Forum
SOLVED: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated) - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated) (/t-solved-unauthorizedaccessexception-access-to-the-path-etc-jellyfin-loggi-truncated)



UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated) - iwally - 2024-09-01

Hello folks,
I am a newbie of JellyFin, so please understand my lack of experience.

Just installed on Debian 12, from extrepo, but I am unable to start jellyfin.service. The installation was done with roor (sudo su)
These are the outcomes from

Code:
journalctl -xeu jellyfin

result:

Code:
Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit jellyfin.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Sep 01 18:01:49 iWallyHP systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
░░ Subject: A stop job for unit jellyfin.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit jellyfin.service has finished.
░░
░░ The job identifier is 4058 and the job result is done.
Sep 01 18:01:49 iWallyHP systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 01 18:01:49 iWallyHP systemd[1]: jellyfin.service: Failed with result 'signal'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit jellyfin.service has entered the 'failed' state with result 'signal'.
Sep 01 18:01:49 iWallyHP systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
░░ Subject: A start job for unit jellyfin.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit jellyfin.service has finished with a failure.
░░
░░ The job identifier is 4058 and the job result is failed.

Then I tried with

Code:
journalctl -u jellyfin

which said

Code:
Sep 01 18:01:48 iWallyHP systemd[1]: Started jellyfin.service - Jellyfin Media Server.
Sep 01 18:01:48 iWallyHP jellyfin[22760]: Unhandled exception. System.UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggin>
Sep 01 18:01:48 iWallyHP jellyfin[22760]:  ---> System.IO.IOException: Permission denied
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    --- End of inner exception stack trace ---
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, B>
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess >
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess acce>
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, >
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, >
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Jellyfin.Server.Helpers.StartupHelpers.InitLoggingConfigFile(IApplicationPaths appPaths)
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Jellyfin.Server.Helpers.StartupHelpers.InitLoggingConfigFile(IApplicationPaths appPaths)
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Sep 01 18:01:48 iWallyHP jellyfin[22760]:    at Jellyfin.Server.Program.<Main>(String[] args)
Sep 01 18:01:48 iWallyHP systemd[1]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Sep 01 18:01:48 iWallyHP systemd[1]: jellyfin.service: Failed with result 'signal'.
Sep 01 18:01:49 iWallyHP systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Sep 01 18:01:49 iWallyHP systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
Sep 01 18:01:49 iWallyHP systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 01 18:01:49 iWallyHP systemd[1]: jellyfin.service: Failed with result 'signal'.
Sep 01 18:01:49 iWallyHP systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

So I went to see the directory:

Code:
root@iWallyHP:/etc/jellyfin# ls -l
total 4
-rw-r--r-- 1 root root 1040 Aug 25 08:35 logging.json

Any idea what I did wrong and how to correct?
Thanks in advance

Wally


RE: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated) - TheDreadPirate - 2024-09-01

Code:
sudo chown -R jellyfin: /etc/jellyfin /usr/share/jellyfin /var/lib/jellyfin /var/cache/jellyfin
sudo systemctl restart jellyfin

Did you manually add the jellyfin repo or did you use our auto install script? There is a known issue with 10.9.10 where permissions aren't properly set on fresh installs, but we updated our auto install script to compensate until that is resolved.


RE: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated) - iwally - 2024-09-01

To be honest I did exactly as in the documentation:

Code:
sudo apt install extrepo
sudo extrepo enable jellyfin

Thanks! Problem solved!


RE: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated) - bblood1003 - 2024-09-01

I had this same issue and fixed it by changing ownership and permissions of /etc/jellyfin to jellyfin:adm / 755. After restarting the jellyfin service things started up correctly.