• 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 General Questions Change subtitle download location

     
    • 0 Vote(s) - 0 Average

    Change subtitle download location

    kzhuo
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #1
    2024-03-25, 11:50 AM
    I am trying to figure out how to change subtitle download location. My media disks' mount point is /home

    I checked the "Save subtitles into media folders" option,  however, it is being saved in the metadata folder instead.


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-03-25, 03:28 PM
    Does Jellyfin have write permissions to your home directory? Can you share your jellyfin logs with us?
    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]
    kzhuo
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #3
    2024-03-25, 03:53 PM (This post was last modified: 2024-03-25, 03:57 PM by kzhuo. Edited 2 times in total.)
    (2024-03-25, 03:28 PM)TheDreadPirate Wrote: Does Jellyfin have write permissions to your home directory?  Can you share your jellyfin logs with us?


    Using 'nano some_text_file' to test write permison of jellyfin on /home, it does have permission.

    The attachment is the log, it seems the subtitles are always being saved to 2 locations(one being  where my media file is), but nowhere to be found in the media folder. Maybe the subtitle files are being moved?


    .txt   log.txt (Size: 2 bytes / Downloads: 84)

    [2024-03-25 04:03:51.249 -07:00] [INF] Saving subtitles to "/home/anime/SPY x FAMILY/Season 01/SPY x FAMILY S01E06.chi.srt"
    [2024-03-25 04:03:51.249 -07:00] [INF] Saving subtitles to "/home/metadata/library/bd/bdffef873318c03b3dee21c6527bdee0/SPY x FAMILY S01E06.chi.srt"
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-03-25, 05:03 PM
    Are you testing write permission as the jellyfin user?
    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]
    kzhuo
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #5
    2024-03-26, 07:07 AM (This post was last modified: 2024-03-26, 07:08 AM by kzhuo.)
    (2024-03-25, 05:03 PM)TheDreadPirate Wrote: Are you testing write permission as the jellyfin user?

    Solved, it is write permission issue. Thank you.
    Jiří Fiala
    Offline

    Junior Member

    Posts: 29
    Threads: 8
    Joined: 2023 Nov
    Reputation: 0
    #6
    2024-07-17, 09:30 PM (This post was last modified: 2024-07-17, 09:32 PM by Jiří Fiala. Edited 1 time in total.)
    Can you please help me with this? I run Jellyfin in a Proxmox LXC and media is on a NAS mounted inside this LXC. It's too complicated for me to untangle. I have no idea what the current user is - I manage the JF LXC as root but that's probably not the same user Jellyfin uses... I really don't know.

    Subs aren't being downloaded to the media folders despite the option being enabled and I need to fix that. Thanks!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-07-17, 09:54 PM (This post was last modified: 2024-07-17, 09:54 PM by TheDreadPirate. Edited 1 time in total.)
    Make sure Jellyfin has write permissions. I forgot that my library folders are read-only in my docker settings so it ended up saving them to the Jellyfin data directory after failing to write to the media folder.

    Code:
    [2024-07-17 21:42:45.216 +00:00] [INF] [304] MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/media/storage2/testShows/King of the Hill/Season 1/s01e01.eng.srt"
    [2024-07-17 21:42:45.216 +00:00] [INF] [304] MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/config/metadata/library/d4/d41aa8c2d39dbe88bb086b54d1e2c840/s01e01.eng.srt"

    Now I'm out of subtitle downloads for the day so I have to wait until tomorrow to try again. Slightly-frowning-face

    I reconfigured my docker so it can write to my test library. I will try again tomorrow on my test setup and report back if it actually saved to the media directories or not.

    For your problem, you have to make sure that the NAS mount is allowing writes.

    In the LXC, what is the output of "cat /proc/mounts"?
    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]
    Jiří Fiala
    Offline

    Junior Member

    Posts: 29
    Threads: 8
    Joined: 2023 Nov
    Reputation: 0
    #8
    2024-07-18, 03:19 PM (This post was last modified: 2024-07-18, 03:25 PM by Jiří Fiala. Edited 2 times in total.)
    It's bit too complex for me to untangle. I don't know how to check the permissions.
    - media is on NAS
    - that folder is mounted into Proxmox host with "//192.168.0.216/Public /home/stooovie/Public cifs auto,rw,user,noperm,username=MYUSERNAME>" in fstab and then added to the Jellyfin LXC (container) as a Mount point via proxmox GUI
    - the JF LXC was created by Tteck's script
    - I tried doing "su jellyfin" inside the LXC shell, which does absolutely nothing, no message at all, and logged-in user remains "root"

    cat /etc/passwd DOES reveal a jellyfin user though:
    Code:
    jellyfin:x:107:115:Jellyfin default user,,,:/var/lib/jellyfin:/bin/false

    Output of cat /proc/mounts is:

    Code:
    /dev/mapper/storage-vm--110--disk--1 / ext4 rw,relatime,stripe=16 0 0
    //192.168.0.216/Public /media/Public cifs rw,relatime,vers=3.1.1,cache=strict,username=stooovie,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.216,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1 0 0
    none /dev tmpfs rw,relatime,size=492k,mode=755,inode64 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    proc /proc/sys/net proc rw,nosuid,nodev,noexec,relatime 0 0
    proc /proc/sys proc ro,relatime 0 0
    proc /proc/sysrq-trigger proc ro,relatime 0 0
    sysfs /sys sysfs ro,nosuid,nodev,noexec,relatime 0 0
    sysfs /sys/devices/virtual/net sysfs rw,nosuid,nodev,noexec,relatime 0 0
    fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
    udev /dev/dri/renderD128 devtmpfs rw,nosuid,relatime,size=8112876k,nr_inodes=2028219,mode=755,inode64 0 0
    udev /dev/net/tun devtmpfs rw,nosuid,relatime,size=8112876k,nr_inodes=2028219,mode=755,inode64 0 0
    udev /dev/net/tun devtmpfs rw,nosuid,relatime,size=8112876k,nr_inodes=2028219,mode=755,inode64 0 0
    none /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime 0 0
    lxcfs /proc/cpuinfo fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/diskstats fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/loadavg fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/meminfo fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/slabinfo fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/stat fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/swaps fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /proc/uptime fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    lxcfs /sys/devices/system/cpu fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
    devpts /dev/ptmx devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
    devpts /dev/console devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
    devpts /dev/tty1 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
    devpts /dev/tty2 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
    none /proc/sys/kernel/random/boot_id tmpfs ro,nosuid,nodev,noexec,relatime,size=492k,mode=755,inode64 0 0
    tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0
    tmpfs /run tmpfs rw,nosuid,nodev,size=3260248k,nr_inodes=819200,mode=755,inode64 0 0
    tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,inode64 0 0
    hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
    mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0

    Thanks a lot for your help!
    Jiří Fiala
    Offline

    Junior Member

    Posts: 29
    Threads: 8
    Joined: 2023 Nov
    Reputation: 0
    #9
    2024-07-18, 03:28 PM
    Ha! I was able to login as jellyfin by doing usermod -s /bin/bash jellyfin, and this user indeed doesn't have write perms. I'm on the right track, thanks!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-07-18, 03:46 PM (This post was last modified: 2024-07-18, 03:48 PM by TheDreadPirate. Edited 2 times in total.)
    Instead of mounting the share in Proxmox then passing it into the LXC, you could just mount it directly in the LXC in the same way you did in Proxmox to remove one layer of things we need to work through.

    On the NAS, I'm assuming either a QNAP or Synology NAS, what permissions did you set in the UI? Can you show that?

    I missed your update. I don't recommend giving the jellyfin user a permanent bash shell the way you did. You can give the jellyfin a temp bash shell with "su -s /bin/bash jellyfin".
    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]
    « 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