• 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: Jellyfin service not starting

    Pages (6): « Previous 1 2 3 4 5 6 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin service not starting

    Jellyfin service not starting
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #31
    2024-01-13, 11:43 PM
    What is all his stuff where you are creating jellyfin.sh? What is in it?

    Open this file and show me what the contents are.

    /etc/systemd/system/multi-user.target.wants/jellyfin.service
    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]
    merulius
    Offline

    Junior Member

    Posts: 45
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    #32
    2024-01-14, 11:29 AM
    (2024-01-13, 11:43 PM)TheDreadPirate Wrote: What is all his stuff where you are creating jellyfin.sh?  What is in it?

    Open this file and show me what the contents are.

    /etc/systemd/system/multi-user.target.wants/jellyfin.service

    As follows. 

    [Unit]
    Description=Jellyfin
    After=network.target

    [Service]
    Type=simple
    User=jellyfin
    Restart=always
    ExecStart=/lib/jellyfin/jellyfin.sh

    [Install]
    WantedBy=multi-user.target
    merulius
    Offline

    Junior Member

    Posts: 45
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    #33
    2024-01-14, 11:39 AM
    I've just realised the History is going to be mileading because I have been running sessions on two different machines.
    merulius
    Offline

    Junior Member

    Posts: 45
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    #34
    2024-01-14, 11:52 AM
    I have done a bit more purging of apps that I installed as trials (Kodi, Plex), purged Jellyfin (again) and re-installed.

    Here is the result of install. Still not working. There must be SOMETHING hanging it up.

    https://srcb.in/W8WYf1VhlI
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #35
    2024-01-14, 05:06 PM (This post was last modified: 2024-01-14, 05:07 PM by TheDreadPirate. Edited 1 time in total.)
    (2024-01-14, 11:29 AM)merulius Wrote:
    (2024-01-13, 11:43 PM)TheDreadPirate Wrote: What is all his stuff where you are creating jellyfin.sh?  What is in it?

    Open this file and show me what the contents are.

    /etc/systemd/system/multi-user.target.wants/jellyfin.service

    As follows. 

    [Unit]
    Description=Jellyfin
    After=network.target

    [Service]
    Type=simple
    User=jellyfin
    Restart=always
    ExecStart=/lib/jellyfin/jellyfin.sh

    [Install]
    WantedBy=multi-user.target

    I'm wondering if apt purge doesn't remove this file.  Because this file is wrong (ExecStart primarily), I'm assuming from when you were editing it. Which I'm assuming since you opened it with nano.

    Here is mine.  Copy and paste it into yours and try to start the service again.

    Quote:[Unit]
    Description = Jellyfin Media Server
    After = network-online.target

    [Service]
    Type = simple
    EnvironmentFile = /etc/default/jellyfin
    User = jellyfin
    Group = jellyfin
    WorkingDirectory = /var/lib/jellyfin
    ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target
    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]
    merulius
    Offline

    Junior Member

    Posts: 45
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    #36
    2024-01-15, 10:06 AM
    Thanks Pirate. Sounds like a plan.
    I'm out for the morning, but will report back this afternoon.


    (2024-01-14, 05:06 PM)TheDreadPirate Wrote:
    (2024-01-14, 11:29 AM)merulius Wrote:
    (2024-01-13, 11:43 PM)TheDreadPirate Wrote: What is all his stuff where you are creating jellyfin.sh?  What is in it?

    Open this file and show me what the contents are.

    /etc/systemd/system/multi-user.target.wants/jellyfin.service

    As follows. 

    [Unit]
    Description=Jellyfin
    After=network.target

    [Service]
    Type=simple
    User=jellyfin
    Restart=always
    ExecStart=/lib/jellyfin/jellyfin.sh

    [Install]
    WantedBy=multi-user.target

    I'm wondering if apt purge doesn't remove this file.  Because this file is wrong (ExecStart primarily), I'm assuming from when you were editing it.  Which I'm assuming since you opened it with nano.

    Here is mine.  Copy and paste it into yours and try to start the service again.

    Quote:[Unit]
    Description = Jellyfin Media Server
    After = network-online.target

    [Service]
    Type = simple
    EnvironmentFile = /etc/default/jellyfin
    User = jellyfin
    Group = jellyfin
    WorkingDirectory = /var/lib/jellyfin
    ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target
    merulius
    Offline

    Junior Member

    Posts: 45
    Threads: 2
    Joined: 2024 Jan
    Reputation: 0
    #37
    2024-01-15, 01:01 PM
    And just like that, it works!

    Thanks, Pirate. You stuck with it, I learned a lot, and maybe others will be helped.

    Could you summarise what you think happened here so that other forum members can get fixed? I can't be the only one to accidentally screw it up.

    If I could "buy you a coffee" I would.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #38
    2024-01-15, 03:23 PM
    TLDR, don't modify systemd files unless you know what you are doing. Ask for help before you get too deep in Linux's bowels. Read the documentation completely before starting.
    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]
    1
    dohuyhoangvn93
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 May
    Reputation: 0
    Country:Vietnam
    #39
    2024-05-13, 02:24 AM (This post was last modified: 2024-05-13, 02:41 AM by dohuyhoangvn93. Edited 2 times in total.)
    I am new to linux and solved the problem with this article. Ok-hand
    This is the difference between the two .service files I searched on gemini.
    It is puzzling that this erroneous content is on Jellyfin's main documentation page.  Face-with-monocle

    Mine had an error when installing on Linux Mint 21

    It happened after I uninstalled flatpak and reinstalled it via CLI
    Does anyone have the same problem as me? Why doesn't it run when following the instructions in the official jellyfin documentation?

    [Image: Capture.png][/img]
    [Image: Capture.png]
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #40
    2024-05-13, 11:30 AM
    (2024-05-13, 02:24 AM)dohuyhoangvn93 Wrote: I am new to linux and solved the problem with this article. Ok-hand
    This is the difference between the two .service files I searched on gemini.
    It is puzzling that this erroneous content is on Jellyfin's main documentation page.  Face-with-monocle

    Mine had an error when installing on Linux Mint 21

    It happened after I uninstalled flatpak and reinstalled it via CLI
    Does anyone have the same problem as me? Why doesn't it run when following the instructions in the official jellyfin documentation?

    [Image: Capture.png][/img]
    [Image: Capture.png]

    The documentation you screenshoted is for a "manual" Linux install for distros that we do not have packages for.  If you are running linux mint, the jellyfin service file is automatically created and configured correctly after you install from our repo with apt.
    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]
    Pages (6): « Previous 1 2 3 4 5 6 Next »

    « 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