- Thread starter
- #21
The 2.2 version has the new HttpListener implementation for UPnP and ResourceServer. All components share the same IP port 55555 (also client and server process on same machine).
If this port is occupied already by another process, it will cause conflicts.
Also the installer adds an access rule to the HttpListener. If it was not successful, the port can't be opened.
So for troubleshooting you might first check if port 55555 is free and also accessible through firewall.
To gather some more data, I tried updating 2.1.3 to 2.2 again.
First, I used netstat -b -q (with 2.1.3 running). Port 55555 is not listed in use. I checked the firewall; it is open to all connections from the local subnet (IPv4 and IPv6).
Next, I updated to 2.2.
If you ever try again, try to run: "netsh show urlacl" from a command line and find the reservation for MediaPortal.
I assume you meant "netsh http show urlacl", which results in:
Reserved URL : http://+:55555/MediaPortal/
User: \Everyone
Listen: Yes
Delegate: No
SDDL: DA;;GX;;;WD)
I again ran netstat -b -q (now with 2.2 installed).User: \Everyone
Listen: Yes
Delegate: No
SDDL: DA;;GX;;;WD)
55555 seems to be available for (and used by) MP2. Here are the netstat results (I include only the lines with 55555 & MP2-*)
TCP 0.0.0.0:55555 Scream:0 LISTENING
Can not obtain ownership information
TCP 127.0.0.1:51819 Scream:55555 TIME_WAIT
TCP 127.0.0.1:51820 Scream:55555 TIME_WAIT
TCP 127.0.0.1:51821 Scream:55555 TIME_WAIT
TCP 127.0.0.1:51822 Scream:55555 TIME_WAIT
TCP 127.0.0.1:51823 Scream:55555 TIME_WAIT
TCP 127.0.0.1:51824 Scream:55555 TIME_WAIT
TCP [::]:55555 Scream:0 LISTENING
Can not obtain ownership information
TCP 0.0.0.0:31456 Scream:0 LISTENING
[MP2-Server.exe]
TCP 0.0.0.0:51734 Scream:0 LISTENING
[MP2-Server.exe]
TCP 192.168.56.1:31456 Scream:52087 ESTABLISHED
[MP2-Server.exe]
TCP 192.168.56.1:31456 Scream:52088 ESTABLISHED
[MP2-Server.exe]
TCP 192.168.56.1:52087 Scream:31456 ESTABLISHED
[MP2-Server.exe]
TCP 192.168.56.1:52088 Scream:31456 ESTABLISHED
[MP2-Server.exe]
TCP 192.168.148.110:554 Scream:0 LISTENING
[MP2-Server.exe]
UDP 127.0.0.1:1900 *:*
[MP2-Server.exe]
UDP 127.0.0.1:1900 *:*
[MP2-Server.exe]
UDP 127.0.0.1:1900 *:*
[MP2-Server.exe]
UDP 127.0.0.1:1900 *:*
[MP2-ServiceMonitor.exe]
UDP 127.0.0.1:1900 *:*
[MP2-Server.exe]
UDP 127.0.0.1:1900 *:*
[MP2-Server.exe]
UDP 127.0.0.1:7900 *:*
[MP2-ServiceMonitor.exe]
UDP 127.0.0.1:55907 *:*
[MP2-ServiceMonitor.exe]
UDP 127.0.0.1:60948 *:*
[MP2-Server.exe]
UDP 127.0.0.1:61045 *:*
[MP2-Server.exe]
UDP 127.0.0.1:62638 *:*
[MP2-Server.exe]
UDP 192.168.56.1:1900 *:*
[MP2-Server.exe]
UDP 192.168.56.1:1900 *:*
[MP2-Server.exe]
UDP 192.168.56.1:1900 *:*
[MP2-Server.exe]
UDP 192.168.56.1:1900 *:*
[MP2-Server.exe]
UDP 192.168.56.1:1900 *:*
[MP2-Server.exe]
UDP 192.168.56.1:1900 *:*
[MP2-ServiceMonitor.exe]
UDP 192.168.56.1:55914 *:*
[MP2-ServiceMonitor.exe]
UDP 192.168.56.1:60955 *:*
[MP2-Server.exe]
UDP 192.168.56.1:61052 *:*
[MP2-Server.exe]
UDP 192.168.56.1:62645 *:*
[MP2-Server.exe]
UDP 192.168.148.110:1900 *:*
[MP2-Server.exe]
UDP 192.168.148.110:1900 *:*
[MP2-Server.exe]
UDP 192.168.148.110:1900 *:*
[MP2-Server.exe]
UDP 192.168.148.110:1900 *:*
[MP2-Server.exe]
UDP 192.168.148.110:1900 *:*
[MP2-ServiceMonitor.exe]
UDP 192.168.148.110:1900 *:*
[MP2-Server.exe]
UDP 192.168.148.110:55915 *:*
[MP2-ServiceMonitor.exe]
UDP 192.168.148.110:60956 *:*
[MP2-Server.exe]
UDP 192.168.148.110:61053 *:*
[MP2-Server.exe]
UDP 192.168.148.110:62646 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:1900 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:941::110]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:55913 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:941::110]:60954 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:61051 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941::110]:62644 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:55912 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:60953 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:61050 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:941:28da:f5ec:94ec:e30d]:62643 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:55911 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:60952 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:61049 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:942:28da:f5ec:94ec:e30d]:62642 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:1900 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:55910 *:*
[MP2-ServiceMonitor.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:60951 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:61048 *:*
[MP2-Server.exe]
UDP [2001:470:8f95:943:28da:f5ec:94ec:e30d]:62641 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:1900 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:1900 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:1900 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:1900 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:1900 *:*
[MP2-ServiceMonitor.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:1900 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:55908 *:*
[MP2-ServiceMonitor.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:60949 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:61046 *:*
[MP2-Server.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:61952 *:*
SSDPSRV
[svchost.exe]
UDP [fe80::13b:c45e:3493:cd76%18]:62639 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:1900 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:1900 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:1900 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:1900 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:1900 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:1900 *:*
[MP2-ServiceMonitor.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:55909 *:*
[MP2-ServiceMonitor.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:60950 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:61047 *:*
[MP2-Server.exe]
UDP [fe80::28da:f5ec:94ec:e30d%10]:62640 *:*
[MP2-Server.exe]
To completely rule out firewall issues, I disabled the firewall, restarted the MP2-Server service & verified that the client still does not start.I captured the logs - but didn't attach them here since the logs from the previous attempt should be the same.
Crash.log still shows the same exception:
System.Net.HttpListenerException: Access is denied
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
--- End of inner exception stack trace ---
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(HttpListener listener, Func`2 appFunc, IList`1 addresses, IDictionary`2 capabilities, Func`2 loggerFactory)
at Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(Func`2 app, IDictionary`2 properties)
--- End of inner exception stack trace ---
What is HttpListener.AddAllPrefixes() doing? I set a VS breakpoint on exception (in the client .exe) and extracted the following:
System.Net.HttpListenerException
HResult=0x80004005
Message=Access is denied
Source=System
StackTrace:
at System.Net.HttpListener.AddAllPrefixes() in f:\dd\NDP\fx\src\net\System\Net\HttpListener.cs:line 1133
HResult=0x80004005
Message=Access is denied
Source=System
StackTrace:
at System.Net.HttpListener.AddAllPrefixes() in f:\dd\NDP\fx\src\net\System\Net\HttpListener.cs:line 1133
The call stack seems to indicate an issue starting the Resource Server. (It's not obvious to me why a client contains an HTTP server - but I don't claim to know anything about MP architecture.) The exception is from fairly deep in System.dll. I don't have sources, and visual studio doesn't seem to know where to find them.
> System.dll!System.Net.HttpListener.AddAllPrefixes() Line 1133 C#
System.dll!System.Net.HttpListener.Start() Line 862 C#
Microsoft.Owin.Host.HttpListener.dll!Microsoft.Owin.Host.HttpListener.OwinHttpListener.Start(System.Net.HttpListener listener, System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task> appFunc, System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, object>> addresses, System.Collections.Generic.IDictionary<string, object> capabilities, System.Func<string, System.Func<System.Diagnostics.TraceEventType, int, object, System.Exception, System.Func<object, System.Exception, string>, bool>> loggerFactory) Unknown
Microsoft.Owin.Host.HttpListener.dll!Microsoft.Owin.Host.HttpListener.OwinServerFactory.Create(System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task> app, System.Collections.Generic.IDictionary<string, object> properties) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
Microsoft.Owin.Hosting.dll!Microsoft.Owin.Hosting.ServerFactory.ServerFactoryAdapter.Create(Owin.IAppBuilder builder) Unknown
Microsoft.Owin.Hosting.dll!Microsoft.Owin.Hosting.Engine.HostingEngine.StartServer(Microsoft.Owin.Hosting.Engine.StartContext context) Unknown
Microsoft.Owin.Hosting.dll!Microsoft.Owin.Hosting.Engine.HostingEngine.Start(Microsoft.Owin.Hosting.Engine.StartContext context) Unknown
Microsoft.Owin.Hosting.dll!Microsoft.Owin.Hosting.WebApp.StartImplementation(System.IServiceProvider services, Microsoft.Owin.Hosting.StartOptions options, System.Action<Owin.IAppBuilder> startup) Unknown
Microsoft.Owin.Hosting.dll!Microsoft.Owin.Hosting.WebApp.Start(Microsoft.Owin.Hosting.StartOptions options, System.Action<Owin.IAppBuilder> startup) Unknown
MediaPortal.Common.dll!MediaPortal.Common.Services.ResourceAccess.ResourceServer.CreateAndStartServer() Unknown
MediaPortal.Common.dll!MediaPortal.Common.Services.ResourceAccess.ResourceServer.ResourceServer() Unknown
MediaPortal.Common.dll!MediaPortal.Common.ApplicationCore.RegisterCoreServices() Unknown
MP2-Client.exe!MediaPortal.Client.ApplicationLauncher.Main(string[] args) Unknown
Perhaps you could enhance your logging to provide more information.