Jellyfin Forum
SOLVED: Jellyfin server won't start - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Jellyfin server won't start (/t-solved-jellyfin-server-won-t-start)



Jellyfin server won't start - jibarofoss - 2023-11-13

I was using the old jellyfin-bin packages from AUR. I noticed that the packages were out of date, so I moved to the ones from the official repo after the git versions from AUR failed to install. I tried installing the git version today and it completed the install. When I tried opening the localhost web page, it hung on the splash screen, so I uninstalled them and moved back to the official repo version. Now jellyfin won't start up. After making sure the systemd services were running, I tried running
Code:
sudo -u jellyfin /usr/bin/jellyfin start
and got the following output: 
Code:
Unhandled Exception
System.UnauthorizedAccessException: Access to the path '/home/jibarofoss/jellyfin' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
  at System.IO.FileSystem.CreateDirectory(String fullPath)
  at System.IO.Directory.CreateDirectory(String path)
  at Jellyfin.Server.Program.CreateApplicationPaths(StartupOptions options)
  at Jellyfin.Server.Program.StartApp(StartupOptions options)
  at Jellyfin.Server.Program.<Main>(String[] args)
Unhandled exception. System.UnauthorizedAccessException: Access to the path '/home/jibarofoss/jellyfin' is denied.
---> System.IO.IOException: Permission denied
  --- End of inner exception stack trace ---
  at System.IO.FileSystem.CreateDirectory(String fullPath)
  at System.IO.Directory.CreateDirectory(String path)
  at Jellyfin.Server.Program.CreateApplicationPaths(StartupOptions options)
  at Jellyfin.Server.Program.StartApp(StartupOptions options)
  at Jellyfin.Server.Program.<Main>(String[] args)
It appears that when I upgraded to the git version, it either tried creating something on my home directory and failed or deleted something from my home directory. What config file do I check to solve this? If not, what directories should I remove so I can get my install working again?


RE: Jellyfin server won't start - tmsrxzar - 2023-11-13

that snippet indicates jellyfin doesn't have access to that folder

the next step would be to verify ownership of that folder; if not jellyfin then chown as needed

ls -la /home/jibarofoss/jellyfin

however, being in the home directory of 'jibarofoss' it probably isn't owned by 'jellyfin'

is that even where it should be located?


RE: Jellyfin server won't start - jibarofoss - 2023-11-13

So I tried reinstalling jellyfin git and this time it seems to have worked. For some reason, I'm now locked out of the server. My username no longer works (I had a blank password). How do I fix this? To answer your question, It's not where it should be located at all. Clearly the git version of jellyfin changed some stuff around.

To give some more context, the jellyfin app on my android tv says the server hasn't completed being set up and that I should sign in to the server. But I can't sign in with my old credentials.


RE: Jellyfin server won't start - jibarofoss - 2023-11-13

I restarted the service. Looks like jellyfin reset my entire config. RIP.


RE: Jellyfin server won't start - tmsrxzar - 2023-11-13

yea sounds like it boned the configuration directories

indicated by trying to load config from the wrong folder
old credentials which should be in the old config folder are not working

see https://jellyfin.org/docs/general/installation/linux

https://aur.archlinux.org/packages/jellyfin-git

and most importantly https://aur.archlinux.org/cgit/aur.git/tree/jellyfin.conf?h=jellyfin-git

which shows that you need to locate 'jellyfin.conf' which has your paths for data and config


RE: Jellyfin server won't start - tmsrxzar - 2023-11-13

ah you solved it while i was trying to lookup where arch stores jellyfin.conf

trying to figure out who's a "linux user" and who's just a "user using linux" when responding on a forum isn't easy

best wishes on your future endeavors


RE: Jellyfin server won't start - jibarofoss - 2023-11-13

(2023-11-13, 02:55 AM)tmsrxzar Wrote: ah you solved it while i was trying to lookup where arch stores jellyfin.conf

trying to figure out who's a "linux user" and who's just a "user using linux" when responding on a forum isn't easy

best wishes on your future endeavors

I found a jellyfin.conf in /usr/lib/tmpfiles.d whose contents are:
Code:
d /var/cache/jellyfin 0755 jellyfin jellyfin -
d /var/lib/jellyfin 0755 jellyfin jellyfin -
I also found one in /usr/lib/sysusers.d and contains:
Code:
u jellyfin - "Jellyfin Media Server" /var/lib/jellyfin