Jump to content

ffmpeg error... Access to the path is denied.


Recommended Posts

bastionntb
Posted
2022-04-26 12:34:55.506 Error LiveTvManager: Error refreshing channels for service
	*** Error Report ***
	Version: 4.6.7.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: Linux version 5.4.0-109-generic (buildd@ubuntu) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022
	Framework: .NET Core 3.1.21
	OS/Process: x64/x64
	Runtime: opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: /var/lib/emby
	Application path: /opt/emby-server/system
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path is denied.
	 ---> System.IO.IOException: Operation not permitted
	   --- End of inner exception stack trace ---
	   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
	   at System.IO.File.Copy(String sourceFileName, String destFileName, Boolean overwrite)
	   at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFile(String source, String target, Boolean overwrite)
	   at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.UnzipIfNeeded(String compressedFile, String targetPath, Boolean isRemoteSource)
	   at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetXml(ListingsProviderInfo info, String path, MediaProtocol protocol, CancellationToken cancellationToken)
	   at Emby.LiveTV.Listings.XmlTv.XmlTvProvider.GetChannels(ListingsProviderInfo info, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.GetEpgChannelData(IListingsProvider provider, ListingsProviderInfo info, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.QueryChannelsAsync(ChannelManagementQuery query, CancellationToken cancellationToken)
	   at Emby.LiveTV.EmbyTV.GetChannelsAsync(CancellationToken cancellationToken)
	   at Emby.LiveTV.LiveTvManager.RefreshChannelsInternal(ILiveTvService service, IProgress`1 progress, CancellationToken cancellationToken)
	   at Emby.LiveTV.LiveTvManager.RefreshChannelsInternal(IProgress`1 progress, CancellationToken cancellationToken)
	Source: System.IO.FileSystem
	TargetSite: Void CopyFile(System.String, System.String, Boolean)
	InnerException: System.IO.IOException: Operation not permitted
	Source: 
	TargetSite: 

 

Everything in opt/emby-server/ has a 755 and is owned by root/@root

Which is where Emby is trying to access ffdetect/ffmpeg.

Is this what it is supposed to be like?

image.png.4f5cc183ebad6341bc7059168c6141b5.png

 

Personally, I don't see much /wrong/ with the server, but I'm trying to track down why the Live TV feature won't stream, and this shows up constantly in the logs, but for a lot of other issues, not related to this.

Posted

Hi there, please attach the complete emby server log file. Thanks.

bastionntb
Posted (edited)

So, I can't seem to easily reproduce it, but I was able to by simply clicking on "Channels" in the settings menu.

Thoughts?

 

embyserver-.txt

Edited by DatsiK96
bastionntb
Posted

Sorry to bug again, know yall are busy. Any ideas on this?

Posted

Hi, I'm really not sure as I don't see anything obvious here. The 4.7 release is coming very soon. You could always jump up to the beta channel if you need immediate relief. The 4.7 release contains an updated .NET runtime which includes a number of file system fixes.

Or as a temporary workaround until 4.7, you could unzip the xml manually and point emby server to the xml file.

bastionntb
Posted
1 minute ago, Luke said:

Hi, I'm really not sure as I don't see anything obvious here. The 4.7 release is coming very soon. You could always jump up to the beta channel if you need immediate relief. The 4.7 release contains an updated .NET runtime which includes a number of file system fixes.

Or as a temporary workaround until 4.7, you could unzip the xml manually and point emby server to the xml file.

Gotcha, I saw that 4.7 has a huge change list...

Not too bothered by it, everything is actually working as expected now... So I dunno.

I'm going to assume the permissions are set correctly on ffmpeg and all that.

Thanks for the input. :)

 

  • Thanks 1
Posted

It has nothing to do with ffmpeg. It's on the guide data refresh when unpacking your xmltv.

bastionntb
Posted
3 hours ago, Luke said:

It has nothing to do with ffmpeg. It's on the guide data refresh when unpacking your xmltv.

Well it's just weird because I got it on other things too... like at random when I'd refresh the home page, go to a video, etc... And from the logs it says EmbyServer.dll was trying to do something with ffmpeg, and then that it wasn't able to access something... But I don't really know anything about this so, you're probably right. Anyway... now at random (I didn't change ANYTHING) it just stopped doing it completely (exception of a couple extra restarts trying to trigger the error again with a smaller log to look through)...

So it seems all is working... I have no idea what's going on... Honestly, I could have just rebuilt the VM and started over again, probably would have been easier than digging through all of this lol

Either way, I thank you for your help.

  • Thanks 1
Posted

Good to hear it. Thanks for the update.

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