Jump to content


Photo

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

lg tv linux omv

  • Please log in to reply
10 replies to this topic

#1 macnb OFFLINE  

macnb

    Advanced Member

  • Members
  • 62 posts
  • Local time: 12:24 AM

Posted 18 March 2019 - 04:28 PM

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 ?

Attached Files



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153382 posts
  • Local time: 08:24 PM

Posted 18 March 2019 - 05:18 PM

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. 



#3 macnb OFFLINE  

macnb

    Advanced Member

  • Members
  • 62 posts
  • Local time: 12:24 AM

Posted 18 March 2019 - 05:45 PM

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


#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153382 posts
  • Local time: 08:24 PM

Posted 18 March 2019 - 05:54 PM

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



#5 macnb OFFLINE  

macnb

    Advanced Member

  • Members
  • 62 posts
  • Local time: 12:24 AM

Posted 19 March 2019 - 06:36 AM

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 ?



#6 mastrmind11 OFFLINE  

mastrmind11

    Advanced Member

  • Members
  • 3015 posts
  • Local time: 08:24 PM
  • LocationLong Island, NY

Posted 19 March 2019 - 07:08 AM

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



#7 macnb OFFLINE  

macnb

    Advanced Member

  • Members
  • 62 posts
  • Local time: 12:24 AM

Posted 19 March 2019 - 08:32 AM

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.



#8 macnb OFFLINE  

macnb

    Advanced Member

  • Members
  • 62 posts
  • Local time: 12:24 AM

Posted 19 March 2019 - 01:00 PM

@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) ???



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153382 posts
  • Local time: 08:24 PM

Posted 19 March 2019 - 01:35 PM

It should be a user named emby.



#10 macnb OFFLINE  

macnb

    Advanced Member

  • Members
  • 62 posts
  • Local time: 12:24 AM

Posted 19 March 2019 - 07:07 PM

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



#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153382 posts
  • Local time: 08:24 PM

Posted 19 March 2019 - 10:47 PM

Thanks for the feedback !





Also tagged with one or more of these keywords: lg tv, linux, omv

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users