Jump to content

No access to media folder on TNAS from Emby Server


Go to solution Solved by richt,

Recommended Posts

Posted (edited)

Hello everyone.

I need your help, please. I have the TNAS F4-423 with two Volumes. The operating system is TOS6 6.0.555. Emby Server version installed on the TNAS: 4.8.8.0. My problem is that I have no access to media folders on the NAS when I want to create a new library on Emby Server. Media folders are on Volume 2/Multimedia. All necessary user permissions are set. I have full access to the media folders on my desktop PC and on my Sony Smart TV. I have full access to media folders on my NAS when I create a new library on PLEX Server. Any ideas how to solve this problem?

Spoiler

user.thumb.jpg.13dd0bcd04beb8d828ef843dd9792104.jpg

Spoiler

Library 5.png

Spoiler

Scan media library failed 1.png

Spoiler

Verify Port Forwarding on Your Router.jpg

 

Edited by jhnbrg
Posted

I'll give you how I solved the problem.  This may not be the best or 'correct' way but it worked for me.  The problem I found is that the emby user account (not visible in TOS web UI) did not have permissions to access the folder I had designated for storing media.

  1. Created a group named "media" in the TOS web UI
  2. Gave the "media" group access to the folders I designated for emby through the TOS web UI
    1. Make sure to check the box to "replicate the permissions to all subdirectories..."
  3. SSH in to the TNAS and add the emby user to the the "media" group
    1. If you haven't already added emby to any groups in this manner you should also make sure the "media" group is the primary group for emby
  4. Restart TNAS (should be able to just restart emby server but it may get flaky and require reboot of the TNAS)

 

usermod -a -G media emby

 

Posted
16 hours ago, richt said:

I'll give you how I solved the problem.

Many thanks for your reply! Unfortunately your suggested method doesn't work for me. I get this error message:

SSHusermod.jpg.20b23244cb4668f0a109c1092ca60adf.jpg

Usergroup.jpg.4d8ee9b6ab37de531ec2aed39fc81a00.jpg

Posted

I see the failed to flush ssd cache error message as well.  Note that the emby account will NOT be displayed in the TNAS web UI, but if you go back to the ssh console and type in the following, you'll see that emby is now a member of the "Media" group at the OS level which is what counts for getting access.

cat /etc/group | grep emby

 

Posted (edited)
15 hours ago, richt said:

but if you go back to the ssh console and type in the following, you'll see that emby is now a member of the "Media" group at the OS level which is what counts for getting access.

Yes, you're absolutely right. emby is now a member of the "Media" group.

SSHusermod2.jpg.be36650767cbecd48097e43fc978fbb9.jpg

 

 

 

 

 

 

 

 

 

 

But I still don't have access to the media folder. I always get the same alert message from the Emby server:

Scanmedialibraryfailed4.png.fd5f03154f255db726f9a19bac89a850.png

On 12/6/2024 at 6:39 PM, richt said:

If you haven't already added emby to any groups in this manner you should also make sure the "Media" group is the primary group for emby

Where can I do this and how can I check it?

Edited by jhnbrg
Posted (edited)

Sorry, but that looks like a database issue.  I can't be of much help with that.  If this is your initial install and setup, you might try uninstalling and re-installing. Otherwise wait for someone to look at that error.  They will probably want all logs as well.

Edited by richt
Posted
1 hour ago, richt said:

If this is your initial install and setup, you might try uninstalling and re-installing.

I've tried that several times. No success.

 

1 hour ago, richt said:

I can't be of much help with that.

You have already helped me a lot. I really appreciate it!

 

I suspect that the Emby Server app is buggy and not compatible with TOS6. I had no problems with TOS5. Emby worked without any problems. I have already reported this issue in the TerraMaster forum. No solution yet.

Posted

I have it running and mostly working on TOS6, but cannot get hardware decoding / encoding to work.  I have another ticket on that, but no response yet. 

Just curious, how did you install?  Did you use the Emby app listed in the app Center?  I did on TOS5 and it worked, I also upgraded to Emby's latest version using the Terramaster TOS5 Emby package from Emby's download page.  After I upgraded to TOS 6, Emby didn't work and I had to remove the app and reinstall.  I reinstalled once again using the TOS5 Emby package from Emby's download page and got it working.

Posted
47 minutes ago, richt said:

Just curious, how did you install?  Did you use the Emby app listed in the app Center?

Yes, exactly.

Maybe my update from TOS5 to TOS6 has something to do with my problem. I had three HDDs with TOS5 5.1.145 in my F4-423. The Emby Server App was "emby_TOS5_APP_4.9.0.29_x86_64.tpk". It worked perfectly. I wanted to add an SSD to my NAS as a system disk, on which I also wanted to install the apps. It had to be on Volume1. I also wanted to install a fourth HDD and create a Volume2 for my media. All of this was only possible with a new TOS installation. So I first wiped everything. Then I installed TOS5 5.1.145 on the SSD in Volume1. After that I upgraded from TOS5 to TOS 6.0.530, then to TOS 6.0.555. Finally I installed Emby from the App Center, version 4.8.8.0. Another version can be installed, but does not work. I have no idea what I did wrong. PLEX is working, Emby not.

  • Solution
Posted (edited)

If I read your post correctly (I skimmed) I see one problem that will cause a db failure.  Looks like you were running Emby 4.9.0.29 and then installed 4.8.8.0 on top if it.  Did you wipe the OS and disks completely?  If not what was saved?

If you retained and tried to re-use the Emby 4.9.x.x db's and config on your upgraded TOS that could be a problem.  You cannot downgrade the databases from an Emby beta branch to a stable branch because the database has been modified in 4.9.x.x and is no longer functional 4.9 version of Emby.  If I were stuck there, I would select 1 of a couple options.

Uninstall Emby 4.8.0.x and then install the latest beta from the Emby Download page. 

Uninstall Emby and then delete / rename the old emby install folders and then install Emby.  This will force Emby to start with a new DB.  You'll also have to re-configure everything.   

Shutdown Emby and rename the Emby data folder.  You can always rename the original data folder back to data.  IF I read your post correctly, it should be at /Volume1/Emby/data".

Edited by richt
Posted
29 minutes ago, richt said:

Did you wipe the OS and disks completely? If not what was saved?

I wiped everything. Operating system and all data have been completely deleted. I also tried to reset to factory defaults, two times. This should delete the Emby folder and DB. Correct?

47 minutes ago, richt said:

Uninstall Emby 4.8.0.x and then install the latest beta from the Emby Download page.

I tried it with 4.9.0.29 and 4.9.0.32. After installation I can start Emby Server in TOS but I can't access the UI of Emby in web browser.


I will now try to uninstall and install Emby as you suggested.

Posted

The problem is solved. It was, as you said, a database conflict. I wiped everything again. Then I installed emby_TOS5_APP_4.9.0.29_x86_64.tpk beta directly. As I mentioned above, I couldn't access the Emby UI for configuration. It then worked via Emby Connect and I was able to set everything up. Everything works now as before! I am so grateful to you! Thank you so much for your help!

  • Thanks 1
Posted

Hi, thanks for following up !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...