Jellyfin Forum
Jellyfin on Ubuntu 22.4 trouble - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic)
+--- Forum: Self-hosting & Homelabs (https://forum.jellyfin.org/f-self-hosting-homelabs)
+--- Thread: Jellyfin on Ubuntu 22.4 trouble (/t-jellyfin-on-ubuntu-22-4-trouble)



Jellyfin on Ubuntu 22.4 trouble - dwjelly - 2023-10-07

Hello, This is my first post and first attempt at using Jellyfin. I have always used Plex.

I spun up a Ubuntu 22.4 server and installed Jellyfin at a specific static IP. I also created a user account at Jellyfin. I was having issues with connecting to the Media folder on my TrueNAS Scale box. After many attempts to get to my media files, I ended up deleted the server and spun up a new one. I used the same IP on the new server. After installing Jellyfin successfully, I tried to connect to the server and log in.  I was able to get to the log in screen. When I tried the creds I previously used, I get an unable to connect screen. I'm not sure how to move forward in getting connected. Any advice would be greatly appreciated.

I am running my Ubuntu 22.4 in a VM hosted on my XCP-ng 8.3 server. 

Thanks in advance, Dino


RE: Jellyfin on Ubuntu 22.4 trouble - dwjelly - 2023-10-07

OK, I tried to log in with an incognito window and it worked. However, I am still unable to access my Media folders on TrueNAS. I've tried all the possible fixes I was able to find online. Still no connection. I think it is a permission issue in TrueNAS Scale setup. Not sure what is necessary to fix it. Been trying various setting with no fix yet. When I look at the logs I see this line regarding Media....

[2023-10-07 16:30:25.354 +00:00] [ERR] Error processing request: "Could not find a part of the path '/Media/Movies'". URL "GET" "/Environment/DirectoryContents".


RE: Jellyfin on Ubuntu 22.4 trouble - TheDreadPirate - 2023-10-07

Are the network shares for your media mounted in the OS? You cannot add network shares directly to Jellyfin. You have to mount them to the OS and then add that mount path.


RE: Jellyfin on Ubuntu 22.4 trouble - dwjelly - 2023-10-07

(2023-10-07, 04:48 PM)TheDreadPirate Wrote: Are the network shares for your media mounted in the OS?  You cannot add network shares directly to Jellyfin.  You have to mount them to the OS and then add that mount path.

Thanks for your reply. I'm somewhat new to all this. What is the procedure to mount directly to the OS. Do you mean adding something like this to the Ubuntu Server where Jellyfin is installed?

sudo mount 10.0.0.115Confused-facemnt/scale-vault-ssd/media


RE: Jellyfin on Ubuntu 22.4 trouble - TheDreadPirate - 2023-10-07

Try following this wiki.

https://wiki.ubuntu.com/MountWindowsSharesPermanently


RE: Jellyfin on Ubuntu 22.4 trouble - dwjelly - 2023-10-07

(2023-10-07, 06:45 PM)TheDreadPirate Wrote: Try following this wiki.

https://wiki.ubuntu.com/MountWindowsSharesPermanently

So the Windows share is actually my TrueNAS Scale box. I set up an SMB share called media. It also has several different subfolders. Home Movies, TV Shows and such. So would I use the TrueNAS IP be used for the Windows Computer Name? Appreciate the help.


RE: Jellyfin on Ubuntu 22.4 trouble - TheDreadPirate - 2023-10-07

A Windows share and a SMB share are pretty much the same thing. Use your truenas IP wherever the guide calls for a windows machine.


RE: Jellyfin on Ubuntu 22.4 trouble - dwjelly - 2023-10-07

Thanks Again.

I tried this....

Mounting unprotected (guest) network folders
First, let's create the mount directory. You will need a separate directory for each mount.

sudo mkdir /media/windowsshare
Then edit your /etc/fstab file (with root privileges) to add this line:

//servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8 0 0
Where

guest indicates you don't need a password to access the share,

uid=1000 makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files,

iocharset=utf8 allows access to files with names in non-English languages. This doesn't work with shares of devices like the Buffalo Tera Station, or Windows machines that export their shares using ISO8895-15.

If there is any space in the server path, you need to replace it by \040, for example //servername/My\040Documents

After you add the entry to /etc/fstab type:

sudo mount -a
This will (re)mount all entries listed in /etc/fstab.

It is failing with permissions denied when I run the sudo mount -a


RE: Jellyfin on Ubuntu 22.4 trouble - TheDreadPirate - 2023-10-07

Re-walked through this on my ubuntu desktop to my ubuntu server hosting a share. To verify the important steps. BTW. It sounds like you have credentials to lock down your network share, but are trying to use guest access. The steps below specify how to add credentials.

sudo apt install cifs-utils

sudo vim /etc/fstab

Added this line
//192.168.1.3/library /media/library cifs credentials=/home/chris/.smbcredentials,iocharset=utf8 0 0

vim /home/chris/.smbcredentials

username=chris
password=mySMBpassword

save

sudo mkdir -p /media/library

sudo mount -a


RE: Jellyfin on Ubuntu 22.4 trouble - dwjelly - 2023-10-08

(2023-10-07, 10:34 PM)TheDreadPirate Wrote: Re-walked through this on my ubuntu desktop to my ubuntu server hosting a share.  To verify the important steps.  BTW.  It sounds like you have credentials to lock down your network share, but are trying to use guest access.  The steps below specify how to add credentials.

sudo apt install cifs-utils

sudo vim /etc/fstab

Added this line
//192.168.1.3/library    /media/library    cifs    credentials=/home/chris/.smbcredentials,iocharset=utf8    0 0

vim /home/chris/.smbcredentials

username=chris
password=mySMBpassword

save

sudo mkdir -p /media/library

sudo mount -a

Thanks for your help. Greatly appreciated. I was finely able to connect to the share using your information.  Now the fun begins, organizing a library. 

Dino