Code: Select all
System.ServiceModel.AddressAlreadyInUseException: There is already a listener on IP endpoint 0.0.0.0:49942. This could happen if there is another application already listening on this endpoint or if you have multiple service endpoints in your service host with the same IP endpoint but with incompatible binding configurations. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.ServiceModel.Channels.SocketConnectionListener.Listen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SocketConnectionListener.Listen()
at System.ServiceModel.Channels.ConnectionAcceptor.StartAccepting()
at System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at ArgusTV.Scheduler.MainThread.OpenNewServiceHost(Type serviceType, Type interfaceType)
at ArgusTV.Scheduler.MainThread.BootupArgusTV()
at ArgusTV.Scheduler.MainThread.Run()
Code: Select all
System.NullReferenceException: Object reference not set to an instance of an object.
at ArgusTV.Scheduler.MainThread.ShutdownArgusTV()
at ArgusTV.Scheduler.MainThread.Run()
Code: Select all
2014-02-10 11:59:29,522 [DEBUG][1]: Calling OnPowerEvent(Suspend)...
2014-02-10 11:59:29,553 [INFO ][1]: System entering suspend state, shutting down core services.
2014-02-10 11:59:29,569 [INFO ][ARGUS TV]: Stopping service.
2014-02-10 11:59:32,683 [INFO ][ThumbnailCreator]: ThumbnailCreator thread ended.
2014-02-10 11:59:32,683 [INFO ][Update Check]: Update Check thread ended.
2014-02-10 11:59:32,683 [INFO ][EventSource]: EventSource thread ended.
2014-02-10 11:59:32,683 [INFO ][PostProcessing]: PostProcessing thread ended.
2014-02-10 11:59:32,683 [INFO ][LiveStreamAlive]: LiveStreamAlive thread ended.
2014-02-10 11:59:32,683 [INFO ][Mailer]: Mailer thread ended.
2014-02-10 11:59:32,683 [INFO ][Recordings Cleanup]: Recordings Cleanup thread ended.
2014-02-10 11:59:32,683 [INFO ][Recordings Scheduler]: Recordings Scheduler thread ended.
2014-02-10 11:59:32,683 [INFO ][XMLTV Import]: XMLTV Import thread ended.
2014-02-10 11:59:33,167 [INFO ][ARGUS TV]: Service ended.
2014-02-10 11:59:33,167 [INFO ][ARGUS TV]: ARGUS TV thread ended.
2014-02-10 11:59:33,167 [DEBUG][1]: System can now enter suspend state, core services have shut down.
2014-02-10 13:15:19,691 [DEBUG][1]: Calling OnPowerEvent(ResumeSuspend)...
2014-02-10 13:15:19,691 [INFO ][1]: System resumed from suspend state, restarting core services.
2014-02-10 13:15:19,691 [INFO ][ARGUS TV]: ARGUS TV version 2.2.1 main-thread started.
2014-02-10 13:15:19,691 [INFO ][ARGUS TV]: Starting service.
2014-02-10 13:15:19,691 [INFO ][ARGUS TV]: Ensuring database is up.
2014-02-10 13:15:28,370 [DEBUG][1]: Calling OnPowerEvent(ResumeAutomatic)...
2014-02-10 13:15:28,417 [INFO ][ARGUS TV]: Initializing configuration defaults.
2014-02-10 13:15:28,433 [INFO ][ARGUS TV]: Starting WCF service hosts.
2014-02-10 13:15:41,277 [ERROR][ARGUS TV]: System.ServiceModel.AddressAlreadyInUseException: There is already a listener on IP endpoint 0.0.0.0:49942. This could happen if there is another application already listening on this endpoint or if you have multiple service endpoints in your service host with the same IP endpoint but with incompatible binding configurations. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.ServiceModel.Channels.SocketConnectionListener.Listen()
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.SocketConnectionListener.Listen()
at System.ServiceModel.Channels.ConnectionAcceptor.StartAccepting()
at System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at ArgusTV.Scheduler.MainThread.OpenNewServiceHost(Type serviceType, Type interfaceType)
at ArgusTV.Scheduler.MainThread.BootupArgusTV()
at ArgusTV.Scheduler.MainThread.Run()
2014-02-10 13:15:41,324 [INFO ][ARGUS TV]: Stopping service.
2014-02-10 13:15:41,340 [ERROR][ARGUS TV]: System.NullReferenceException: Object reference not set to an instance of an object.
at ArgusTV.Scheduler.MainThread.ShutdownArgusTV()
at ArgusTV.Scheduler.MainThread.Run()
2014-02-10 13:15:41,340 [INFO ][ARGUS TV]: ARGUS TV thread ended.
After the error I fire up Resource Monitor but don't see anything listening on Port 49942. No matter how many times I restart the ArgusTV services after it happens the scheduler fails with the same error message and will not start up until I reboot.
Also, for reference I've got a SiliconDust HDHomeRun and have matched all config settings outlined on http://www.argus-tv.com/wiki/index.php?title=HDHomeRun.
Aside from disabling sleep, what other things should I look at to find what's causing the problem before resigning to the idea that this is a bug in ArgusTV? (And if it is a bug, any chance it's the same issue as http://stackoverflow.com/questions/9744 ... -using-wcf ?)