• 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 Off Topic General Discussion Podman container fails to start at boot

     
    • 0 Vote(s) - 0 Average

    Podman container fails to start at boot

    Need Troubleshooting help for Podman boot issue
    trekkie690
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Nov
    Reputation: 1
    Country:United States
    #1
    2023-12-22, 07:19 PM
    Running Jellyfin on a Fedora38 using podman version 4.7.2 system. I am running into an issue where it wont startup the container at boot. It fails with exit code 125, and the logs usually say that it

    Code:
    Error: statfs /pathto/mediavolume: no such file or directory

    I configured it to start up at boot using a local user 'jellyfin' so not root. which i gave the linger privileges and confirmed. The system does try to boot which logs show. Once the system is fully booted i can run service start command below with no issue.

    Code:
    $ systemctl --user start jellyfin.service

    Created the jelly.service file using the podman command to create systemd service, then added the parts to ensure all the thing i want our good. 99% certain its that the volumes cannot mount so it errors out. Tried changing the "After=" in the jellyfin.service key file to be post RAID mounting but still having the issue. 

    Any ideas or tips for Troubleshooting?
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #2
    2023-12-22, 07:34 PM
    check your work against the documentation because it looks very different than what you are describing https://jellyfin.org/docs/general/instal...ia-systemd
    trekkie690
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Nov
    Reputation: 1
    Country:United States
    #3
    2023-12-28, 12:07 AM
    So i did follow the instructions when i started this (event re-did it). Created and placed the quadlet file and placed it in the user .config/.... path. Did the systemctl daemon-reload. Nothing was found. Checked permission and even disabled selinux...nada. did a systemctl --user list-unit-files, to ensure it loaded and NADA. So i tried the traditional service route, cause maybe something will worked, and bam it was viewed and ready to load. The only issue is that it fails from a cold start every time. Not sure why. Reboot, will auto start normally with no issues....
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-12-28, 12:28 AM
    Is there anything in the logs when the cold start fails? Perhaps some of the hard drives your libraries are in aren't mounting in time?
    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]
    trekkie690
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Nov
    Reputation: 1
    Country:United States
    #5
    2023-12-28, 07:31 PM
    Here is a snippet from the Log on the system.

    Quote:systemd[1259]: Failed to start jellyfin.service - Jellyfin Media Server Podman container systemd service.
    systemd[1259]: jellyfin.service: Failed with result 'exit-code'.
    systemd[1259]: jellyfin.service: Start request repeated too quickly.
    systemd[1259]: Stopped jellyfin.service - Jellyfin Media Server Podman container systemd service.
    systemd[1259]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    NetworkManager[1198]: <info>  [1703780509.3616] agent-manager: agent[6e1a0f74fbb42db0,:1.36/org.gnome.Shell.NetworkAgent/42]: agent registered
    systemd[1259]: Failed to start jellyfin.service - Jellyfin Media Server Podman container systemd service.
    systemd[1259]: jellyfin.service: Failed with result 'exit-code'.
    systemd[1259]: jellyfin.service: Main process exited, code=exited, status=125/n/a
    podman[1888]: 2023-12-28 11:21:49.237205249 -0500 EST m=+0.030293386 image pull 73ede7955dcb726a7fef2d5a9c079e64d794879cd7db671262afd06edab36391 localhost/jellyfin:10.8.13
    podman[1888]: Error: statfs /mnt/RAID/TVShow: no such file or directory

    It shows similar issue for each of the 5 times it tries to start, noting the MOVIE, TVSHOW, MUSIC, and VIDEO folders mounts for each failure (but not all) for the media folders i scan.

    My SMB server which is also running mounts the directory at boot. But its also one of the last things to execute so i think its a boot order thing and i need to have the service start AFTER the mnt-RAID.mount executes which falls under user@42.service. That executes after 1001 (jellyfin user) least when i do 'systemd-analyze plot > startup_plot.svg'. Not certain how to do that...tried 'after= mnt-RAID.mount ' or 'after=user@42.service' but no success (unless i did the command wrong).
    trekkie690
    Offline

    Junior Member

    Posts: 12
    Threads: 2
    Joined: 2023 Nov
    Reputation: 1
    Country:United States
    #6
    2024-01-14, 01:54 AM
    so finally got it working. Basically my software RAID wasn't initializing fast enough for systemd so it moved on before it would be ready for other services to then use that raid. Had to add a ExecStartPre=/path/To/Script to the service. This script was simple DIR exists check. If it did then it would let the service start.

    Alternate way i found (but didnt implment because couldnt find the right file) was to increase the time for the .mount of the raid in the unit file. Just couldnt find that file....cause lazy.
    « 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