• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Can't stream until logged in (Linux)

     
    • 0 Vote(s) - 0 Average

    SOLVED: Can't stream until logged in (Linux)

    With server powered on at login screen, can browse but not watch
    Poppy0260
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    #1
    2025-03-25, 05:39 AM
    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!
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-25, 12:40 PM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Poppy0260
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    #3
    2025-03-29, 06:06 PM
    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/Automa...Partitions

    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.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-30, 02:34 PM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Poppy0260
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    #5
    2025-03-30, 06:16 PM
    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
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-03-31, 12:30 AM (This post was last modified: 2025-03-31, 12:40 PM by TheDreadPirate. Edited 1 time in total.)
    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...-subvolume
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Poppy0260
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Mar
    Reputation: 0
    #7
    2025-03-31, 03:40 AM
    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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode