• 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 Networking & Access SOLVED: sshfs mount does not work with Jellyfin

     
    • 0 Vote(s) - 0 Average

    SOLVED: sshfs mount does not work with Jellyfin

    Directories mounted with sshfs cannot be included in the library.
    Tron0070
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #1
    2023-12-18, 06:30 PM
    Hi guys, I recently got a fresh root server and wanted to mount a storage folder via sshfs. The folder has been mounted, but Jellyfin can't find the folder when I want to specify it as a library. Jellyfin simply closes the window.

    Does anyone know what I can do so that I can assign folders to the library that are mounted with sshfs?

    Thank you



    Code:
    Jellyfin: Version: 10.8.13
    Kernel: x86_64 Linux 5.15.0-91-generic
    OS: Ubuntu 22.04
    AMD EPYC 7702
    8 GB DDR4 RAM (ECC)
    4 dedicated cores
    160 GB SSD


    Code:
    root@v220231274841249262:~# cat /etc/fuse.conf
    # The file /etc/fuse.conf allows for the following parameters:
    #
    # user_allow_other - Using the allow_other mount option works fine as root, in
    # order to have it work as user you need user_allow_other in /etc/fuse.conf as
    # well. (This option allows users to use the allow_other option.) You need
    # allow_other if you want users other than the owner to access a mounted fuse.
    # This option must appear on a line by itself. There is no value, just the
    # presence of the option.

    user_allow_other


    # mount_max = n - this option sets the maximum number of mounts.
    # Currently (2014) it must be typed exactly as shown
    # (with a single space before and after the equals sign).

    #mount_max = 1000
    Go to solution
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #2
    2023-12-18, 07:40 PM
    Hey,

    What do you mean by "Jellyfin simply closes the window."?
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Tron0070
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #3
    2023-12-18, 08:08 PM
    Hi Venso, thank you for your help.


    I click on "Add Media Library" then on the plus for "add Folders" (001.jpg). Then I select the folder. When the folder in which the directory is mounted is reached (002.jpg), the "Select Path" window appears again (003.jpg).


    Attached Files Thumbnail(s)
               
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #4
    2023-12-18, 08:15 PM (This post was last modified: 2023-12-18, 08:15 PM by Venson.)
    OK lets go though that together.

    Step 1:
    Click the plus
       
    Step 2:
    Navigate down and click on the folder you want to enter until you see the insides of the folder you want to add.
    In this example i want to add /media/Comics/Deutsch
       
    Step 3:
    Click on "Ok"
    The new folder should now be visible in the list of folder.
       
    Step 4:
    Click on OK to close the dialog.
       
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Tron0070
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #5
    2023-12-18, 08:32 PM (This post was last modified: 2023-12-20, 04:35 PM by Tron0070. Edited 1 time in total.)
    I don't even get that far. Before I reach the folder, "Select Path" (003.jpg) appears again
    I have created a test account. This is hosted by Hetzner. Maybe you can use it for testing to find out what the problem is.



    Code:
    sshfs -p23 u123456-sub6@u123456.your-storagebox.de:/home /choose/your/path/

    Passwort: ***************

    The account will be deleted later.
    Tron0070
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #6
    2023-12-18, 08:47 PM
    And the first hackers are already inside Smiling-face
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #7
    2023-12-18, 08:53 PM
    did you add some symlinks?

    Cannot test that rn as i am not on my dev pc.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    Tron0070
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #8
    2023-12-18, 09:00 PM
    There are no symlinks.
    I'll leave the test account open for a while and watch the hackers

    Quote:ls
    cd ..
    ls
    sudo
    su root
    touch 1
    mount
    help
    tail /etc/passwd
    ls
    cd
    ls
    wget
    curl
    borg
    ls -la
    rm .hsh_history
    mkdir .ssh
    ls -la
    touch .ssh/authorized_keys
    ls -la
    echo
    Tron0070
    Offline

    Junior Member

    Posts: 8
    Threads: 2
    Joined: 2023 Dec
    Reputation: 0
    Country:Germany
    #9
    2023-12-20, 04:34 PM (This post was last modified: 2023-12-20, 04:36 PM by Tron0070. Edited 1 time in total.)
    OK. It now works with the two options "-o allow_other,default_permissions"

    Code:
    sshfs -o allow_other,default_permissions username@server:/home /choose/your/path/

    Thanks again @Venson
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 376
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #10
    2023-12-20, 04:54 PM
    You are welcome, but i really did not do anything^^
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    « 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