Jellyfin Forum
Jellyfin attempting to access /jellyfin after server reboot - 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: Jellyfin attempting to access /jellyfin after server reboot (/t-jellyfin-attempting-to-access-jellyfin-after-server-reboot)



Jellyfin attempting to access /jellyfin after server reboot - boxherd - 2024-10-21

Jellyfin server 10.9.11.0
Ubuntu server 24.04 LTS
Installed via apt
Managed via systemctl

Boot log:

-- Boot 1b257e98674b4b0fac4de7d64eef8894 --
Oct 21 15:27:43 ebert systemd[1]: Started jellyfin.service - Jellyfin Media Server.
Oct 21 15:27:43 ebert jellyfin[847]: Unhandled exception. System.UnauthorizedAccessException: Access to the path '/jellyfin' is denied.
Oct 21 15:27:43 ebert jellyfin[847]:  ---> System.IO.IOException: Permission denied
Oct 21 15:27:43 ebert jellyfin[847]:    --- End of inner exception stack trace ---
Oct 21 15:27:43 ebert jellyfin[847]:    at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
Oct 21 15:27:43 ebert jellyfin[847]:    at System.IO.Directory.CreateDirectory(String path)
Oct 21 15:27:43 ebert jellyfin[847]:    at Jellyfin.Server.Helpers.StartupHelpers.CreateApplicationPaths(StartupOptions options)
Oct 21 15:27:43 ebert jellyfin[847]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 21 15:27:43 ebert jellyfin[847]:    at Jellyfin.Server.Program.<Main>(String[] args)
Oct 21 15:27:44 ebert systemd[1]: jellyfin.service: Main process exited, code=dumped, status=6/ABRT
Oct 21 15:27:44 ebert systemd[1]: jellyfin.service: Failed with result 'core-dump'.

I installed Jellyfin via apt last week while setting up my new Ubuntu host, and it streamed several movies and was working great. After a reboot yesterday, it began coredumping with the error above, trying to access a nonexistent /jellyfin path. I've reviewed all my config files and none have a reference to this path. I also ran ls -ld /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin /usr/share/jellyfin and permissions looked good. I'm not sure what step to take next; I do not know how to inspect the core dump or what to look for.

Thanks in advance for any help you can offer!


RE: Jellyfin attempting to access /jellyfin after server reboot - TheDreadPirate - 2024-10-21

Share the output of "systemctl show jellyfin" and "sudo journalctl -u jellyfin -n 200 --no-pager". Both commands will produce a lot of text so use pastebin to share the output.


RE: Jellyfin attempting to access /jellyfin after server reboot - boxherd - 2024-10-21

systemctl show jellyfin: https://pastebin.com/yK7aCuXQ

sudo journalctl -u jellyfin -n 200 --no-pager: https://pastebin.com/C7LsXUDg


RE: Jellyfin attempting to access /jellyfin after server reboot - TheDreadPirate - 2024-10-21

Did you do anything that may have affected the jellyfin service? There are a lot of things missing in "show jellyfin". No environment file is set, which would include all the data paths and working directories for Jellyfin, the execstart doesn't include any options.

Let's backup your install data and reset Jellyfin.

Code:
sudo mkdir /jellyBackup
cd /jellyBackup
sudo rsync -a -p --progress /var/lib/jellyfin libJellyfin/
sudo rsync -a -p --progress /etc/jellyfin etcJellyfin/
sudo rsync -a -p --progress /var/cache/jellyfin cacheJellyfin/
sudo apt purge jellyfin*
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
sudo systemctl stop jellyfin
sudo rsync -a -p --progress libJellyfin/jellyfin /var/lib/ --delete
sudo rsync -a -p --progress etcJellyfin/jellyfin /etc/ --delete
sudo rsync -a -p --progress cacheJellyfin/jellyfin /var/cache/ --delete
sudo chown -R jellyfin: /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin
sudo systemctl start jellyfin