Jump to content

inconsistent behavior in port mapper causes freeze during playback


Recommended Posts

turpentine
Posted (edited)

 

Hello team,

i do not not know what you have done with the last versions of emby, but port mapper seems to do inconsistent network playback

could you please check why sometimes you are asking the upnp router to delete port mapping during playback ... ?

 

2022-12-28 22:33:45.204 Error PortMapper: Error in DeletePortMap
	*** Error Report ***
	Version: 4.7.11.0
	Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /volume1/Emby -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /volume1/Emby/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology_{version}_x86_64.spk
	Operating system: Linux version 3.10.105 (root@build1) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25426 SMP Mon Dec 14 18:46:52 CST 2020
	Framework: .NET 6.0.8
	OS/Process: x64/x64
	Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /volume1/Emby
	Application path: /volume1/@appstore/EmbyServer/system
	MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
	<s:Body>
	<s:Fault>
	<faultcode>s:Client</faultcode>
	<faultstring>UPnPError</faultstring>
	<detail>
	<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
	<errorCode>714</errorCode>
	<errorDescription>NoSuchEntryInArray</errorDescription>
	</UPnPError>
	</detail>
	</s:Fault>
	</s:Body>
	</s:Envelope>
	
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
	   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
	   at Mono.Nat.Upnp.UpnpNatDevice.DeletePortMap(Mapping mapping, CancellationToken cancellationToken)
	   at Mono.Nat.Upnp.UpnpNatDevice.CreatePortMap(Mapping mapping, CancellationToken cancellationToken)
	Source: Emby.Server.Implementations
	TargetSite: Void MoveNext()

 

 

have a nice day, each time i see port mapper errors in embyserver logs, the playback stops on my samsung tv.

is there a way to desactivate port mapper in emby inside user interface ? it makes me mad. thanks a lot. i will use static port mapping instead as a workaround ...

 

 

 

Edited by turpentine
corrected some phrases
Happy2Play
Posted

Devs will need the who server log but yes there should be an error for each event.

Personally think this plugin should just go away or disabled by default and require users to do port forwarding as it shall never work all the time on all routers/environments.

  • Like 1
turpentine
Posted (edited)
6 minutes ago, Happy2Play said:

Devs will need the who server log but yes there should be an error for each event.

Personally think this plugin should just go away or disabled by default and require users to do port forwarding as it shall never work all the time on all routers/environments.

is there a way to export all the logs via user interface in one click ? port mapper was working fine before for me, so it means that someone has done new change in this plugin.

Edited by turpentine
Happy2Play
Posted
Just now, turpentine said:

is there a way to export all the logs via user interface in one click ?

There is only one active log "embyserver.txt" Restart or Rotate starts a new one saving the old one for 3 days. 

But since you are on Synology it is not that easy to just go to the Log folder you can only download each log via the Settings-Logs.

  • Like 1
turpentine
Posted (edited)

here are my logs, it is very painfull to see such a mad behaviour, it seems to stop playing every 20 min for example at around 23:04 or 23:24 28 dec 2022

PS : @Happy2Play private joke, port mapping plugin may be usefull in ipv4 non CGNAT stacks,  but with ipv6, portmapper should be desactivated if a user wants. port mapping is useless with ipv6 home routers 😛

 

 

 

LOGS.ZIP

Edited by turpentine
logs
turpentine
Posted

@Luke could you please ask a dev to look at this ?

Posted

Are you still running into this?

turpentine
Posted
3 hours ago, Luke said:

Are you still running into this?

Hi Luke yes i still  have the issue. found a temporary workaround by removing the A DNS ipv4 record in my domain name provider in order to Force connections in IPv6. 

When i activate back ipv4. The emby port mapper plugin every 20 minutes Ask my router via UPnP to delete/re-add the listening ipv4 TCP port.

Quite weird could you please fix port mapper in order not to do that during playback ?

Posted

Port Mapper is a user removable plug-in.

 

turpentine
Posted
25 minutes ago, Q-Droid said:

Port Mapper is a user removable plug-in.

 

Thanks but it would be a lot better to fix it. I think a lot of user issues in this forum Is caused by it. It is very Smart to ask the external public ipv4 to delete his own listening port during playback. Very Smart plugin.

  • 2 weeks later...
Posted

What kind of router do you have?

turpentine
Posted (edited)

A classic FTTH home router provided And branded by the Telecom company with ipv4/ipv6 fiber And 4 ethernet ports. IT has UPnP And WiFi 5. 

In ipv4 mode Emby plugin seems to Ask to delete the forwarded port to my lan Emby server every 20 min. Of course in IPv6 there Is no port forwarding. UPnP Is not used in IPv6 :). So in IPv6 there Is no playback issues due to bad networking software decisions. 

Edited by turpentine

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