![]() |
Any chance convert Windows Local Server to Jellyfin as a Service? - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Any chance convert Windows Local Server to Jellyfin as a Service? (/t-any-chance-convert-windows-local-server-to-jellyfin-as-a-service) |
Any chance convert Windows Local Server to Jellyfin as a Service? - michael142857 - 2024-11-13 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/administration/backup-and-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/comments/nvvwks/jellyfin_as_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"? RE: Any chance convert Windows Local Server to Jellyfin as a Service? - theguymadmax - 2024-11-13 How do you start Jellyfin now? RE: Any chance convert Windows Local Server to Jellyfin as a Service? - TheDreadPirate - 2024-11-13 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. RE: Any chance convert Windows Local Server to Jellyfin as a Service? - michael142857 - 2024-11-15 (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. Ah I see. Hope there is easier way to do the migration RE: Any chance convert Windows Local Server to Jellyfin as a Service? - theguymadmax - 2024-11-16 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. RE: Any chance convert Windows Local Server to Jellyfin as a Service? - michael142857 - 2024-12-03 (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". 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.) |