• 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 Jellyfin on proxmox

    Pages (6): « Previous 1 2 3 4 5 6 Next »

     
    • 0 Vote(s) - 0 Average

    Jellyfin on proxmox

    final server installation
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #21
    2024-10-15, 09:16 PM
    @GrumpyNick

    I tried it

    and i got this 
    root@pve:~# nano /etc/fstab
    root@pve:~# systemctl daemon-reload
    root@pve:~# mount /mnt/truenas
    mount: /etc/fstab: parse error at line 1 -- ignored


    does this mean that the share was mounted? i

    f so great how do i verify it? and i can now just proceed with the binding


    Thank you so much
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #22
    2024-10-16, 07:41 AM (This post was last modified: 2024-10-16, 07:54 AM by wbravin. Edited 6 times in total.)
    Hello all

    first let me thank you @TheDreadPirate @GrumpyNick and @madsepperl  for all your help, patience and teachings

    Following the latest recommendations i had successfully managed to load /mnt/truenas/Movies  all my movies were there brilliant.

    So i continued with Music and Shows by adding the same line (amended for each dataset) to the /etc/fstab file

    I then mounted each dataset using mount/mnt/truenas/Movies

    I screwed up and i got all the files for movies in /mnt/truenas/Movies all the files for Music in /mnt/truenas/Movies/Music and all the shows in /mnt/truenas/Movies/Shows it was a mess.

    I proceeded to delete all the contents of /mnt/truenas/Movies
    root@pve:~# mount /mnt/truenas/Movies
    mount: /etc/fstab: parse error at line 1 -- ignored
    mount error(16): Device or resource busy
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

    the same for Music when i did /mnt/truenas/Music
    and for shows I got
    root@pve:~# mount /mnt/truenas/Shows
    mount: /etc/fstab: parse error at line 1 -- ignored
    Couldn't chdir to /mnt/truenas/Shows: No such device

    i found the following information
    root@pve:/mnt/truenas# ls -la
    total 8
    drwxr-xr-x 5 root  root  4096 Oct 16 08:14 .
    drwxr-xr-x 6 root  root  4096 Oct 15 13:21 ..
    drwxrwx--- 2 100000 110000    0 Oct 16 08:23 Movies
    drwxrwx--- 2 100000 110000    0 Oct 15 23:49 Music
    drwxr-xr-x 2 root  root      0 Oct 16 08:14 Shows
    root@pve:/mnt/truenas#
    Notice the shows having a uid of root instead of 10000 and i guess the 0 means that the directory is empty.

    What is keeping the directories busy? and how do i change Shows to 10000?
    then i will need to bind the mount to the lxc with
    { echo 'mp0: /mnt/truenas/Movies/,mp=/mnt/Truenas' ; } | tee -a /etc/pve/lxc/104.conf
    { echo 'mp0: /mnt/truenas/Music/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf
    { echo 'mp0: /mnt/truenas/Shows/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf

    I will have to do this for all 3 datasets correct?
    then start the lxc and install and configure Jellyfin

    I looked at the possible issues and i saw this 
    root@pve:~# cd /mnt/truenas
    root@pve:/mnt/truenas# ls -la
    total 8
    drwxr-xr-x 5 root  root  4096 Oct 16 08:14 .
    drwxr-xr-x 6 root  root  4096 Oct 15 13:21 ..
    drwxrwx--- 2 100000 110000    0 Oct 16 08:23 Movies
    drwxrwx--- 2 100000 110000    0 Oct 15 23:49 Music
    drwxr-xr-x 2 root  root      0 Oct 16 08:14 Shows


    Once again Thank you
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    GrumpyNick
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United Kingdom
    #23
    2024-10-16, 08:13 AM
    What does your fstab file look like, can you share it?

    Also these are incorrect, well two of them are:
    { echo 'mp0: /mnt/truenas/Movies/,mp=/mnt/Truenas' ; } | tee -a /etc/pve/lxc/104.conf
    { echo 'mp0: /mnt/truenas/Music/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf
    { echo 'mp0: /mnt/truenas/Shows/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf


    You need to increment the device each time like so:
    { echo 'mp0: /mnt/truenas/Movies/,mp=/mnt/Truenas' ; } | tee -a /etc/pve/lxc/104.conf
    { echo 'mp1: /mnt/truenas/Music/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf
    { echo 'mp2: /mnt/truenas/Shows/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf


    Usually if the user and/or group is incorrect with an SMB/CIFS location it's down to what's in fstab.
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #24
    2024-10-16, 08:24 AM
    hello Thank your for your quick reply

    <file system> <mount point> <type> <options> <dump> <pass>
    /dev/pve/root / ext4 errors=remount-ro 0 1
    UUID=AA01-F313 /boot/efi vfat defaults 0 1
    /dev/pve/swap none swap sw 0 0
    proc /proc proc defaults 0 0
    //192.168.1.124/Movies/ /mnt/truenas/Movies cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=root,pass=bikerdude30,iocharacterset=utf8 0 0

    //192.168.1.124/Music/ /mnt/truenas/Music cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=root,pass=bikerdude30,iocharset=utf8 0 0


    //192.168.1.124/Shows/ /mnt/truenas/Shows cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=root,pass=bikerdude30,iocharset=utf8 0 0


    THis fstab was not changed since last night and before proceeding the mount i did do a systemctl daemon-reload

    Thank you for your prompt reply
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    GrumpyNick
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United Kingdom
    #25
    2024-10-16, 05:23 PM
    Sorry long day...

    Nothing is jumping out at me, I'd delete that "Shows" directory within mnt/truenas and then recreate it.

    "mkdir -p Shows"

    Then try and mount the share again.
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #26
    2024-10-16, 05:47 PM (This post was last modified: 2024-10-16, 05:48 PM by wbravin. Edited 1 time in total.)
    HI @GrumpyNick

    no worries


    i tried rmdir /mnt/truenas/Shows
    root@pve:~# cd /mnt/truenas/
    root@pve:/mnt/truenas# ls -la
    total 8
    drwxr-xr-x 5 root  root  4096 Oct 16 08:14 .
    drwxr-xr-x 6 root  root  4096 Oct 15 13:21 ..
    drwxrwx--- 2 100000 110000    0 Oct 16 08:23 Movies
    drwxrwx--- 2 100000 110000    0 Oct 15 23:49 Music
    drwxr-xr-x 2 root  root      0 Oct 16 08:14 Shows
    root@pve:/mnt/truenas# rmdir /mnt/truenas/Shows
    rmdir: failed to remove '/mnt/truenas/Shows': Device or resource busy
    root@pve:/mnt/truenas#
    root@pve:/mnt/truenas#
    root@pve:/mnt/truenas# mount /mnt/truenas/Shows
    mount: /etc/fstab: parse error at line 1 -- ignored
    Couldn't chdir to /mnt/truenas/Shows: No such device
    root@pve:/mnt/truenas# mount /mnt/truenas/Movies
    mount: /etc/fstab: parse error at line 1 -- ignored
    mount error(16): Device or resource busy
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
    root@pve:/mnt/truenas#


    This is the issues will all the directories they show as busy

    Coudl I be taking on more than i can chew?
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    GrumpyNick
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United Kingdom
    #27
    2024-10-17, 08:22 AM
    Do you have them mapped into a running LXC at all?
    madsepperl
    Offline

    Junior Member

    Posts: 12
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    Country:Germany
    #28
    2024-10-17, 08:49 AM
    you probably get the "device busy" error messages, because the directories are mounted. You can't mount them again or delete them, when they're mounted.

    to check if the local directory already is mounted:

    Code:
    mount | grep /mnt/truenas/Shows

    If this returns nothing, then the directory is not mounted. But if this shows something like:

    Code:
    //192.168.1.124/Shows/ on /mnt/truenas/Shows type cifs (rw,...........

    then it's already mounted. If you want to delete that directory, you first have to unmount it:

    Code:
    umount /mnt/truenas/Shows

    After that the rmdir should work.

    Some more troubleshooting:

    If this is your first line in fstab "<file system> <mount point> <type> <options> <dump> <pass>" then this will generate the error message "mount: /etc/fstab: parse error at line 1 -- ignored" you get. Delete this first line in fstab.

    the commands to add to the LXC config have some errors:
    { echo 'mp0: /mnt/truenas/Movies/,mp=/mnt/Truenas' ; } | tee -a /etc/pve/lxc/104.conf
    { echo 'mp1: /mnt/truenas/Music/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf
    { echo 'mp2: /mnt/truenas/Shows/,mp=/mnt/truenas' ; } | tee -a /etc/pve/lxc/LXC_ID.conf

    you can't use the same mp= for all three mountpoints
    first mp=/mnt/Truenas should be /mnt/truenas (lower case t in truenas)
    2nd and third tee targets should be /etc/pve/lxc/104.conf and not /etc/pve/lxc/LXC_ID.conf
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #29
    2024-10-17, 03:52 PM
    Hello @GrumpyNick

    i truly apologize for being so thick

    I made a dogs breakfast of this whole situation.

    I'm trying to delete all the directories i created /mnt/media and /mnt/truenas. when t5itry to delete the directories and their contents and all the groups, 

    i get that the directory is busy or there is something in the directory for which i do not have permission.  

    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Thu Oct 17 17:34:09 CEST 2024 on pts/0
    root@pve:~# sudo rm -r /mnt/media/truenas/Movies
    rm: cannot remove '/mnt/media/truenas/Movies': Device or resource busy
    root@pve:~# sudo rm -r /mnt/media/truenas
    rm: cannot remove '/mnt/media/truenas/Movies': Device or resource busy
    rm: cannot remove '/mnt/media/truenas/Music/.recycle/root': Permission denied
    rm: cannot remove '/mnt/media/truenas/Music/Muddy Magnolias/Broken People': Permission denied

    root@pve:~# mount /mnt/truenas/Movies
    mount error(16): Device or resource busy
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
    root@pve:~#

    root@pve:~#

    I do not understand Muddy Magnolias is a music directory that has a folder called broken people In truenas all my datasets have the same posix acl with uid=root gid=root
    with the addition of myself and Jellyfin as users belonging to the same groups (wheel root)

    I deleted the lxc and created it using the proxmox ve scripts for jellyfin. 

    I also may inadvertently messed up group 10000 which was supposed to be media how do i see what group exists and how to modify them


    Thank you for your patience

    once this is all done
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    madsepperl
    Offline

    Junior Member

    Posts: 12
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    Country:Germany
    #30
    2024-10-17, 04:00 PM
    root@pve:~# sudo rm -r /mnt/media/truenas/Movies
    root@pve:~# mount /mnt/truenas/Movies

    seems there's a mismatch, which one is the correct one?
    Pages (6): « Previous 1 2 3 4 5 6 Next »

    « 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