jonomite 29 Posted August 15, 2022 Share Posted August 15, 2022 With the last several stable versions of Emby server (Windows), I have been consistently experiencing PortMapper crashes after 3-4 days of server uptime. A software restart of the server (rather than actually rebooting the server) fixes it, and it will work for a few days, and then crash again. As a result of the error, I'm not able to connect to my server via external connections. I reviewed my log and I can see regular, repeated PortMapper crashes. It pretty much look like this, repeated over and over and over: 2022-08-14 02:18:59.314 Error PortMapper: Error creating port map *** Error Report *** Version: 4.7.6.0 Command line: C:\Users\*\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp Operating system: Microsoft Windows 10.0.19043 Framework: .NET 6.0.7 OS/Process: x64/x64 Runtime: C:/Users/*/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll Processor count: 16 Data path: C:\Users\*\AppData\Roaming\Emby-Server\programdata Application path: C:\Users\*\AppData\Roaming\Emby-Server\system System.Net.Http.HttpRequestException: System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (192.168.1.1:48202) ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it. at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- 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.CreatePortMapInternal(Mapping mapping, CancellationToken cancellationToken) at Mono.Nat.Upnp.UpnpNatDevice.CreatePortMap(Mapping mapping, CancellationToken cancellationToken) at Emby.PortMapper.ExternalPortForwarding.CreateRules(INatDevice device, CancellationToken cancellationToken) Source: Emby.Server.Implementations TargetSite: Void MoveNext() InnerException: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it. Source: System.Net.Sockets TargetSite: Void ThrowException(System.Net.Sockets.SocketError, System.Threading.CancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) Any ideas on what might be causing this? Link to comment Share on other sites More sharing options...
Luke 37112 Posted August 15, 2022 Share Posted August 15, 2022 Hi there, please attach the complete emby server log. Thanks. Link to comment Share on other sites More sharing options...
jonomite 29 Posted August 26, 2022 Author Share Posted August 26, 2022 On 8/15/2022 at 11:45 AM, Luke said: Hi there, please attach the complete emby server log. Thanks. Greetings again! I've attached a full log capturing the port mapper crashing error. embyserver (1).txt Link to comment Share on other sites More sharing options...
Luke 37112 Posted September 2, 2022 Share Posted September 2, 2022 OK, it just means there might be some compatibility problem with your router that we need to adjust for, or maybe upnp is disabled in your browser. I would just turn off the automatic port mapper and setup port forwarding manually in your router. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now