Jellyfin Forum
SOLVED: Jellyfin stuck at 'restarting' | localhost:8096 not working - 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 stuck at 'restarting' | localhost:8096 not working (/t-solved-jellyfin-stuck-at-restarting-localhost-8096-not-working)



Jellyfin stuck at 'restarting' | localhost:8096 not working - Don Cezar - 2023-12-22

Both issues are now solved, below are the fixes.
Using two computers - one with Ubuntu server and docker container running jellyfin, one with windows, both connected to the same router.

First issue: Jellyfin container stuck at 'Restarting'
Fix: Make a new user and give it permissions to only access the folder you need. (Inside my path I made a jellyfin folder for the container with 3 sub-folders: cache, config & media)
Code:
sudo adduser jellyfin
sudo usermod --shell /usr/sbin/nologin jellyfin
sudo chown -R jellyfin:jellyfin /path/jellyfin
id jellyfin

Replace the id of the jellyfin user and the path in the following command, then run it:

Code:
sudo docker run -d --name jellyfin --volume /path/jellyfin/config:/config --volume /path/jellyfin/cache:/cache --mount type=bind,source=/path/jellyfin/media,target=/media --user id:id --net=host --restart=unless-stopped jellyfin/jellyfin

Second issue: Localhost website wouldn't load
Fix: Localhost only works for the current machine you're using. To access the website on another machine, even if on the same network, run hostname -I and use the first IP followed by the 8096 port. Example: 192.168.100.14:8069


RE: localhost doesn't work - TheDreadPirate - 2023-12-22

What networking type did you use? Host or bridge? Can you share your docker config for the container?


RE: localhost doesn't work - Don Cezar - 2023-12-22

(2023-12-22, 07:16 PM)TheDreadPirate Wrote: What networking type did you use?  Host or bridge?  Can you share your docker config for the container?

I figured it out with the help of the people in Docker's discord server. If you could please check the fix I edited in the first post and let me know if it's alright so other users can potentially find this thread and use the same fix, that'd be great.


RE: localhost doesn't work - Yababakets - 2023-12-22

Do you have any ports published in Manual network port publishing (portainer - docker)?
Are you on bridge or host network in Advanced container settings / Network (portainer - docker)?
Is your Local HTTP port number set to 8096 in Dashboard / Network / Server Address Settings (Jellyfin) ?