• 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 General Questions Any chance convert Windows Local Server to Jellyfin as a Service?

     
    • 0 Vote(s) - 0 Average

    Any chance convert Windows Local Server to Jellyfin as a Service?

    michael142857
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #1
    2024-11-13, 07:29 AM
    I want to run Jellyfin without log in to my windows user account.

    I had some trouble with SMB shared location when I frist set up my jellyfin server, so I installed to my local user account instead. However, after a year of moving and relocating, I have re-organized and no longer needed to access to a remote location for my files. I hope I can re-install jellyfin as a service again, so I don't have to enter password each time for jellyfin to run.

    I have so many customization, and I cannot seem to re-install it as a service and bring my customization over. I tried "back-up" (https://jellyfin.org/docs/general/admini...nd-restore) as offical jellyfin document says (Backed up my files in %localuserdata%/Jellyfin, and "program files/Jellyfin). When I replaced %localuserdata% to "C:\Program Data\Jellyfin\Server", the entire server broke and won't run. 

    Tried https://www.reddit.com/r/jellyfin/commen...s_service/, but service exit with an error when starting. 

    I don't want to re-do all my customization and re-download all the subtitles I have downloaded so far. Any idea how I can acheive "run jellyfin without loggin in"?
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,009
    Threads: 0
    Joined: 2024 Jun
    Reputation: 58
    #2
    2024-11-13, 05:07 PM
    How do you start Jellyfin now?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-11-13, 05:11 PM
    You would need to open up the database and manually update any references to %localuserdata% to the new ProgramData path. I had to do the same when converting my install from a bare metal Linux install to a docker intall.

    Obviously make a copy of your database before making changes.

    Do note that "ProgramData" is one word, not two.
    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]
    michael142857
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #4
    2024-11-15, 11:29 PM (This post was last modified: 2024-11-15, 11:30 PM by michael142857.)
    (2024-11-13, 05:07 PM)theguymadmax Wrote: How do you start Jellyfin now?

    I need to manually login to Windows. Jellyfin would autostart after I login.

    (2024-11-13, 05:11 PM)TheDreadPirate Wrote: You would need to open up the database and manually update any references to %localuserdata% to the new ProgramData path.  I had to do the same when converting my install from a bare metal Linux install to a docker intall.

    Obviously make a copy of your database before making changes.

    Do note that "ProgramData" is one word, not two.

    Ah I see. Hope there is easier way to do the migration
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,009
    Threads: 0
    Joined: 2024 Jun
    Reputation: 58
    #5
    2024-11-16, 02:29 AM (This post was last modified: 2024-11-16, 05:36 AM by theguymadmax. Edited 1 time in total.)
    You can configure Jellyfin to run automatically before login by using the Task Scheduler. If Jellyfin starts automatically after you log in, it's likely being launched from the system tray. You'll need to disable that, click the Jellyfin icon in the system tray and unselect "Autostart".
     
    Steps to Set Up Task Scheduler:
    1. Open Task Scheduler and select Create Task from the Action menu.
     
    2. General Tab:
       - Name: Enter a name like "Start Jellyfin" (or any name you prefer).
       - Under Security options, choose the user account under which Jellyfin is installed.
       - Select "Run whether user is logged on or not".
     
    3. Triggers Tab:
       - Click New, then under "Begin the task," select At startup.
     
    4. Actions Tab:
       - Click New.
       - For Program/script, enter:
         C:\Programs\jellyfin\master\jellyfin.exe
       - For Add arguments, enter:
         --datadir "C:\ProgramData\Jellyfin\Server"
         OR
         --datadir "C:\Users\YOURUSERNAME\AppData\Local\jellyfin"
     
    Identifying the Correct Data Directory:
    - If Jellyfin is launching from the system tray, it's using the ProgramData folder.
    - If you're starting Jellyfin manually with custom arguments, it's likely using the AppData\Local directory.
     
    Make sure to select the correct folder for the --datadir argument.

    5. After saving the task by selecting OK, you'll be prompted to enter your admin password.

    6. Restart your system and test to ensure Jellyfin starts automatically as expected.

    Be sure to keep the userdata folder in its original location. Moving it without updating the corresponding paths in the database will cause it to malfunction.
    michael142857
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #6
    2024-12-03, 10:31 AM
    (2024-11-16, 02:29 AM)theguymadmax Wrote: You can configure Jellyfin to run automatically before login by using the Task Scheduler. If Jellyfin starts automatically after you log in, it's likely being launched from the system tray. You'll need to disable that, click the Jellyfin icon in the system tray and unselect "Autostart".
     
    Steps to Set Up Task Scheduler:
    1. Open Task Scheduler and select Create Task from the Action menu.
     
    2. General Tab:
       - Name: Enter a name like "Start Jellyfin" (or any name you prefer).
       - Under Security options, choose the user account under which Jellyfin is installed.
       - Select "Run whether user is logged on or not".
     
    3. Triggers Tab:
       - Click New, then under "Begin the task," select At startup.
     
    4. Actions Tab:
       - Click New.
       - For Program/script, enter:
         C:\Programs\jellyfin\master\jellyfin.exe
       - For Add arguments, enter:
         --datadir "C:\ProgramData\Jellyfin\Server"
         OR
         --datadir "C:\Users\YOURUSERNAME\AppData\Local\jellyfin"
     
    Identifying the Correct Data Directory:
    - If Jellyfin is launching from the system tray, it's using the ProgramData folder.
    - If you're starting Jellyfin manually with custom arguments, it's likely using the AppData\Local directory.
     
    Make sure to select the correct folder for the --datadir argument.

    5. After saving the task by selecting OK, you'll be prompted to enter your admin password.

    6. Restart your system and test to ensure Jellyfin starts automatically as expected.

    Be sure to keep the userdata folder in its original location. Moving it without updating the corresponding paths in the database will cause it to malfunction.

    I want to thank everyone for the help and ideas. 

    I have tried this before you mentioned, the taskscheduler will run into some error, and won't start jellyfin correctly.

    I re-installed Windows system the other day, and give me a chance to play with jellyfin. (since it's already a clean re-install, I have backed up every file, and I will have the risk of re-install jellyfin anyways..)

    After spending from 10 P.M. to now (5:24 a.m.), I have figure out how to do this.

    Basically, you modify every xml config that point to original %localappdata%\Jellyfin to the new "Program Data" folder. This is easy. After this, it took me 6 hours to figure out that Jellyfin for Windows w/ intall as a service using NETWORK SERVICE user account, and the "Program Data\Jellyfin\Server" does not have premission, and causes service stops randomly with the log states unauthorized. After giving the premission, it is good to go.

    (by the way, jellyfin config also don't use %localappdata%, it uses the original user name, like C:\User\Michael\xxx. Lucky I used the same user name or it would be pain to restore jellyfin after a fresh install and windows decided your user folder name from "Michael" to "Micha" for some reason. If this the case, you also need to edit the config xml files to the correct path.)
    « 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