• 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: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated)

     
    • 0 Vote(s) - 0 Average

    SOLVED: UnauthorizedAccessException: Access to the path '/etc/jellyfin/loggi (truncated)

    iwally
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:Italy
    #1
    2024-09-01, 04:22 PM
    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
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-09-01, 04:30 PM
    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.
    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]
    iwally
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    Country:Italy
    #3
    2024-09-01, 05:03 PM
    To be honest I did exactly as in the documentation:

    Code:
    sudo apt install extrepo
    sudo extrepo enable jellyfin

    Thanks! Problem solved!
    bblood1003
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #4
    2024-09-01, 10:34 PM
    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.
    « 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