Jellyfin Forum
SOLVED: Can't stream until logged in (Linux) - 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: Can't stream until logged in (Linux) (/t-solved-can-t-stream-until-logged-in-linux)



Can't stream until logged in (Linux) - Poppy0260 - 2025-03-25

Hello,
I recently installed Jellyfin server 10.10.6 (deb) on my laptop, love it. Laptop is running Kubuntu 24.04. I am only ever streaming on my home network to my chromecast or android devices.

I would like for family members / children to be able to power on the laptop when they want to watch something on the TV. I don't want to leave it on 24/7. But I also don't want to give everyone in the household user access.

My issue is when the laptop is powered on but left at the login screen, our device apps can browse the libraries, but not play any media. When I try to play, I get this error:
   
Playback Error - Playback failed due to a fatal player error.

After I log in to Kubuntu, then everything works great. And it will continue to stream media correctly even if I then log out and leave the laptop on the same login screen.

I found the logs in Jellyfin dashboard and the failed stream logs end with these lines:
Code:
[in#0 @ 0x56ae18f62740] Error opening input: No such file or directory
Error opening input file file:/media/<username>/Data/Movies/The Bourne identity (2002)/The.Bourne.Identity.2002.mp4.
Error opening input files: No such file or directory

I thought it might be a permissions issue, so I added permissions for user jellyfin to the /media/<username>/Data/Movies folder. Didn't seem to help. The mount point is owned by root, not my user.

Now I think it is a mounting issue. I don't see my "Data" partition listed in /etc/fstab but I can see it in KDE Partition Manager. It also gets mounted by other users logging in. I don't know if there is a way to have it auto mount at system boot, should I add it to /etc/fstab?
   

Many thanks to anyone who can point me in the right direction!


RE: Can't stream until logged in (Linux) - TheDreadPirate - 2025-03-25

If you have storage you need mounted when the system is powered on needs to be in fstab. Right now your storage disk is being mounted by the udisk2 service, which only runs when someone logs in.

Manually mount your drive via /etc/fstab.


RE: Can't stream until logged in (Linux) - Poppy0260 - 2025-03-29

Thank you for your response!

Also replying to make notes for myself and others. I'll update if I get this working.

I've spent an evening searching and reading and getting frustrated that I can't understand how to do this.

Learned a bit about fstab, spent a long time trying to figure out where the udisksctl / udisksd config files are, but I guess there isn't any and it just auto-mounts whatever it can find. I found this https://help.ubuntu.com/community/AutomaticallyMountPartitions

I tried fstab edit using this line:
/dev/nvme0n1p4 /media/Chris/Data  btrfs  defaults 0      0

I took note of this message and followed the instructions.
Code:
mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload.

And so far I'm at the point where my changes are breaking more things than they fix. Especially puzzled that If I remount partitions during a session, it breaks my KDE application launcher "shut down" and "restart" buttons, and I need to ctrl+alt+del to restart the computer. Wish me luck.


RE: Can't stream until logged in (Linux) - TheDreadPirate - 2025-03-30

udisk2 will mount drives in /media/<insert username>/<insert device name>.

Can you share the output of these two commands?

Code:
sudo fdisk -l /dev/nvme0n1
cat /proc/mounts | grep nvme0n1

And also share the current contents of /etc/fstab.


RE: Can't stream until logged in (Linux) - Poppy0260 - 2025-03-30

Code:
sudo fdisk -l /dev/nvme0n1
Disk /dev/nvme0n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: WD_BLACK SN770 2TB                     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 73D2422D-ADE2-40BB-8CE9-6ADA82319565

Device              Start        End    Sectors  Size Type
/dev/nvme0n1p1      2048    1230847    1228800  600M EFI System
/dev/nvme0n1p2    1230848    3327999    2097152    1G Linux filesystem
/dev/nvme0n1p4 1215576064 3907028991 2691452928  1.3T Linux filesystem
/dev/nvme0n1p5  412928000  803553279  390625280 186.3G Linux filesystem

Partition table entries are not in disk order.

Code:
cat /proc/mounts | grep nvme0n1
/dev/nvme0n1p5 / btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
/dev/nvme0n1p5 /var/snap/firefox/common/host-hunspell btrfs ro,noexec,noatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
/dev/nvme0n1p5 /home btrfs rw,relatime,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/nvme0n1p4 /media/chris/Data btrfs rw,nosuid,nodev,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/ 0 0

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
# / was on /dev/nvme0n1p5 during installation
UUID=9fafc060-69f6-47b7-b3b0-77699c286279 /              btrfs  defaults,subvol=@ 0      1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=9D85-4BC8  /boot/efi      vfat    umask=0077      0      1
# /home was on /dev/nvme0n1p5 during installation
UUID=9fafc060-69f6-47b7-b3b0-77699c286279 /home          btrfs  defaults,subvol=@home 0      2

Looking at the existing fstab, I was confused about the "subvol" parameter for other partitions and didn't know how to use it or find details about it. I see in the above output that for the partition I'm trying to mount /dev/nvme0n1p4, the values "subvol=/" and "subvolid=5" are listed. Can/should I do something like:
Code:
/dev/nvme0n1p4 /media/Data  btrfs  defaults,subvolid=5 0      2
Am I way off? Grinning-face


RE: Can't stream until logged in (Linux) - TheDreadPirate - 2025-03-31

It looks like you have not unmounted or rebooted since making these changes to fstab.

Code:
sudo umount /media/chris/Data
sudo systemctl daemon reload
sudo mkdir /media/Data
sudo mount -a

The subvol parameter is needed for btrfs.

https://unix.stackexchange.com/questions/209037/how-do-you-mount-a-specific-btrfs-subvolume


RE: Can't stream until logged in (Linux) - Poppy0260 - 2025-03-31

Huzzah it's working now! Thank you TheDreadPirate for giving your time to help me out. The subvol / subvolid was the missing piece.

New line in /etc/fstab is:
/dev/nvme0n1p4 /media/Data  btrfs  defaults,subvolid=5 0      2