2023-12-22, 06:38 PM
(This post was last modified: 2023-12-22, 07:24 PM by Don Cezar. Edited 4 times in total.)
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)
Replace the id of the jellyfin user and the path in the following command, then run it:
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
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