Jump to content

Error PortMapper: Error creating port map 402 InvalidArgs


Recommended Posts

Posted

After force restart of Windows 10.0.19042, Emby web UI fails to come up. Nothing has been updated since last restart that I know of. From the embyserver log:

2021-12-28 08:49:00.089 Error PortMapper: Error creating port map
    *** Error Report ***
    Version: 4.6.7.0
    Command line: C:\Users\wamcn\AppData\Roaming\Emby-Server\system\EmbyServer.dll
    Operating system: Microsoft Windows 10.0.19042
    Framework: .NET Core 3.1.21
    OS/Process: x64/x64
    Runtime: C:/Users/wamcn/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    Processor count: 12
    Data path: C:\Users\wamcn\AppData\Roaming\Emby-Server\programdata
    Application path: C:\Users\wamcn\AppData\Roaming\Emby-Server\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>402</errorCode>
    <errorDescription>InvalidArgs</errorDescription></UPnPError>
    </detail>
    </s:Fault>
    </s:Body>
    </s:Envelope>
    embyserver.txt
       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.GetSpecificMappingAsync(Protocol protocol, Int32 publicPort, 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()

hardware_detection-63776278140.txt

 

I tried turning off automatic port detection. The web UI fails to load. There are no errors in the embyserver log.

Posted

I restarted Windows (which I had done before). I restarted Emby server (which I had done before).  Now the web UI comes up. There is still the same error in the logs. I turned on debug logging and restarted. The log file is attached. I don't understand the error.embyserver.txt

Posted

@EmbyWAM

HI, that error in the log is just Emby's automatic port mapper trying to configure port forwarding with your router for remote access.

You can always turn this off in Emby Server network settings and just configure your router manually. Please let us know if this helps. Thanks.

Posted

Thanks. What ports do I forward for remote access?

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