• 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 Uploaded some helper scripts to github

     
    • 0 Vote(s) - 0 Average

    Uploaded some helper scripts to github

    Hopefully these scripts will be of use
    cashewtree
    Offline

    Junior Member

    Posts: 12
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:United States
    #1
    2024-01-09, 01:19 AM
    I needed to create a few scripts to allow Jellyfin to reliably startup on my MacOS machine. I'm not one for developing a lot, but I have enough experience to know that the details such as this can really hold up a project.

    These scripts:

    1.) Ensure the drive at /Volumes/EXTHDD is mounted before jellyfin is kicked off
    2.) Try repeatedly to mount the media media partition based on an fstab UUID entry 
    3.) Poll the web interface every five minutes, which seems to prevent lock up, but if it does timeout it uses launchctl to restart jellyfin.


    https://github.com/allanpeda/jellyfin-he.../tree/main
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-09, 02:30 AM
    (2024-01-09, 01:19 AM)cashewtree Wrote: 3.) Poll the web interface every five minutes, which seems to prevent lock up, but if it does timeout it uses launchctl to restart jellyfin.

    Can you explain this one a bit?  Does your setup lock up when idle for too long?
    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]
    cashewtree
    Offline

    Junior Member

    Posts: 12
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:United States
    #3
    2024-01-09, 02:53 AM
    Yes, it did seem to be doing that (I'd connect and refresh wouldn't work). My however primary concern was the initial race between mounting the hard drive and starting the Jellyfin server. Since the SSD is seen as a plug in USB device, it only mounted when I logged in at a desktop session, and that's simply not the intended use case.

    I have been running for about 48 hours now and the PIDs are the same, which means nothing has restarted, so polling every five minutes with curl either helps or there was another transient issue that is gone.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-01-09, 03:01 AM
    Do you happen to still have logs from when this happened?
    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]
    cashewtree
    Offline

    Junior Member

    Posts: 12
    Threads: 3
    Joined: 2024 Jan
    Reputation: 0
    Country:United States
    #5
    2024-01-09, 03:37 AM
    When I have a chance, I'll turn off the periodic curl call and look again.
    « 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