Jump to content
macnb

Permission denied...Playback Error No compatible streams...

Recommended Posts

macnb

I am already on server v4.0.2.

I recently updated the LG TV Emby App to the latest and it was working fine.

 

Today none of the devices work (LG TV, Samsung TV or any Web browsers).

 

When I play a video file, the TV pops an error message:

Playback Error
No compatible streams are currently available.
Please try again later or contact your system administrator for details.
The server is Debian based OMV.

According to the logs, there's a permission problem on the file:

2019-03-18 19:14:18.498 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.0.2.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 4.19.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 2
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/sharedfolders/d1/movies/12 Years A Slave (2013)/12 Years A Slave (2013).srt' is denied. ---> System.IO.IOException: Permission denied
	   --- End of inner exception stack trace ---
	   at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
	   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
	   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
	   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
	   at System.IO.File.ReadAllBytes(String path)

Also, there seems to be a problem with FFMPEG:

2019-03-18 19:14:21.758 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 4.0.2.0
	Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
	Operating system: Unix 4.19.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Processor count: 2
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	System.Exception: System.Exception: Error starting ffmpeg

I checked the media file permission and the ACL for the full path. These have not changed since I installed Emby.

It has RWX access to all the media for owner (admin:users) and the user emby:emby (see ACL below):


root@OMV:/sharedfolders/d1/movies/12 Years A Slave (2013)# getfacl *.mkv
# file: 12 Years A Slave (2013).mkv
# owner: admin
# group: users
user::rwx
user:root:rwx
user:daemon:rwx
user:systemd-timesync:rwx
user:ntp:rwx
user:statd:rwx
user:avahi:r-x
user:sshd:r-x
user:emby:rwx
user:admin:rwx
user:openmediavault-webgui:rwx
user:macnb:rwx
user:nobody:rwx
group::rwx
group:root:rwx
group:daemon:rwx
group:adm:rwx
group:audio:rwx
group:video:rwx
group:users:rwx
group:systemd-journal:rwx
group:systemd-timesync:rwx
group:crontab:rwx
group:ntp:rwx
group:ssh:r-x
group:emby:rwx
group:openmediavault-config:rwx
group:nogroup:rwx
mask::rwx
other::r-x

Please see attached debug server & ffmpeg logs.

 

Over the weekend I had uninstalled Debian MariaDB mysql server and replaced it with docker Mariadb. Also installed docker Nextcloud web service.

But these should be independent of Emby server.

 

I stopped the Emby server and over installed it using:


root@OMV:# dpkg -i emby-server-deb_4.0.2.0_amd64.deb
(Reading database ... 51255 files and directories currently installed.)
Preparing to unpack emby-server-deb_4.0.2.0_amd64.deb ...
Removed /etc/systemd/system/multi-user.target.wants/emby-server.service.
Unpacking emby-server (4.0.2.0) over (4.0.2.0) ...
Setting up emby-server (4.0.2.0) ...
usermod: no changes
Created symlink /etc/systemd/system/multi-user.target.wants/emby-server.service → /usr/lib/systemd/system/emby-server.service.
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@OMV:# 

This made no difference. 

The logs do not really tell what is the permission problem issue.

 

What is wrong ?

ffmpeg.txt

log.txt

Share this post


Link to post
Share on other sites
Luke

Hi, we may need some tips from other OMV users because this looks exactly as it says, that Emby server does not have permission to read that subtitle file. 

Share this post


Link to post
Share on other sites
macnb

Hi, we may need some tips from other OMV users because this looks exactly as it says, that Emby server does not have permission to read that subtitle file. 

 

 

It's not just the .SRT file but the .MKV file as well.

 

What about the error starting FFMPEG:

System.Exception: System.Exception: Error starting ffmpeg

Share this post


Link to post
Share on other sites
Luke

The ffmpeg error is due to ffmpeg being denied access to the files, the same thing in other words.

Share this post


Link to post
Share on other sites
macnb

Also...new items added to the library are not scanned.

 

I noticed in the log the following :


2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/4k because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d0/movies because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d1/movies because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d1/video/home because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d2/movies because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d2/tv-shows because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d3/movies because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d3/photo because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/d5/movies because the path does not exist
2019-03-19 08:39:03.557 Info LibraryMonitor: Skipping realtime monitor for /sharedfolders/test because the path does not exist

Why does Emby think that these paths do not exist ?

Share this post


Link to post
Share on other sites
mastrmind11

can you access the share from a shell?  Have you tried to remount?

Share this post


Link to post
Share on other sites
macnb

can you access the share from a shell?  Have you tried to remount?

 

 

Yes I can access the folders and the files within:

macnb@OMV:/$ ls -l /sharedfolders
total 72
drwxrwsr-x+ 39 admin users 4096 Mar 15 17:12 4k
drwxrwsr-x+  8 admin users 4096 Mar 18 13:50 d0
drwxrwsr-x+  8 admin users 4096 Mar 18 16:43 d1
drwxrwsrwx+ 12 admin users 4096 Mar 19 10:28 d2
drwxrwsr-x+ 10 admin users 4096 Mar 18 17:50 d3
drwxrwsr-x+ 13 admin users 4096 Mar 18 13:50 d5
drwxrwsrwx+  7 admin users 4096 Mar 17 16:13 docker
drwxrwsr-x+ 16 admin users 4096 Mar  8 23:06 stora
drwxrwsr-x+  4 root  users 4096 Mar 19 10:21 test
macnb@OMV:/$ 

The drives are auto mounted by OMV at boot time.

Restarting the OMV server unmounts and remounts but makes no difference.

Restarting Emby server makes no difference.

 

If I use LG TV's built-in Photos & Video App (a DLNA Client), it is able to browse all the shared folders.

But when I click on a video file within the browsed folder to play it, I get a pop from the TV saying "Your device is disconnected. Please check the connection status". And if I wait at that pop-up long enough, it eventually says "This file cannot be recognised . Do you want to play the next file?"

 

This is weird.

Really not sure what's wrong.

Share this post


Link to post
Share on other sites
macnb

@@Luke I tried to add a folder to an existing library and now noticed that my /sharedfolders folder is no longer listed amongst the other folders.

That selection page mentions:

 

"For Linux on Arch Linux, CentOS, Debian, Fedora, OpenSuse, or Ubuntu, you must grant the Emby system user at least read access to your storage locations."

 

OMV is running on Debian, so when Ember Server is installed, what is the Emby system user ID that I need to check if it has at least read access (which seems to have been lost) ???

Share this post


Link to post
Share on other sites
Luke

It should be a user named emby.

Share this post


Link to post
Share on other sites
macnb

It should be a user named emby.

 

 

Thx. That was not the problem.

I finally fixed it. It was a permission issue and so simple (and obvious now).

 

Some how, the ownership of /sharedfolder got changed to macnb:users (which has UID's 1000:100).

I put it back to admin:users  (which has UID's 998:100) and immediately fixed the problem.

 

Must have been something to do with me setting up Nextcloud docker giving it access to a folder within /sharedfolder (it may have changed the ownership).

 

Thanks.

PS. Wife is happy now  :)

Share this post


Link to post
Share on other sites
Luke

Thanks for the feedback !

Share this post


Link to post
Share on other sites

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