Jellyfin Forum
SOLVED: sshfs mount does not work with Jellyfin - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: SOLVED: sshfs mount does not work with Jellyfin (/t-solved-sshfs-mount-does-not-work-with-jellyfin)



sshfs mount does not work with Jellyfin - Tron0070 - 2023-12-18

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



RE: sshfs mount does not work with Jellyfin - Venson - 2023-12-18

Hey,

What do you mean by "Jellyfin simply closes the window."?


RE: sshfs mount does not work with Jellyfin - Tron0070 - 2023-12-18

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).


RE: sshfs mount does not work with Jellyfin - Venson - 2023-12-18

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.
   


RE: sshfs mount does not work with Jellyfin - Tron0070 - 2023-12-18

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.


RE: sshfs mount does not work with Jellyfin - Tron0070 - 2023-12-18

And the first hackers are already inside Smiling-face


RE: sshfs mount does not work with Jellyfin - Venson - 2023-12-18

did you add some symlinks?

Cannot test that rn as i am not on my dev pc.


RE: sshfs mount does not work with Jellyfin - Tron0070 - 2023-12-18

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



RE: sshfs mount does not work with Jellyfin - Tron0070 - 2023-12-20

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


RE: sshfs mount does not work with Jellyfin - Venson - 2023-12-20

You are welcome, but i really did not do anything^^