Page 1 of 1

ARGUS Scheduler Service stopped after resuming from hibernat

Posted: Tue Jan 29, 2013 3:10 pm
by ChrisRichner
Hi there

At the beginning everything worked like a charm, never had any issues.. but latley the scheduler service started to kill itself ,)
here's the log stating that some other process already owns the desired network address, any hints why this can happen?

I'm running the latest bits, Windows 8 Pro x64 + Argus TV 2.0.1

Do I need to post this log to github or some other kind of error tracking system?

Code: Select all

2013-01-29 13:54:17,924 [DEBUG][1]: Calling OnPowerEvent(ResumeSuspend)...
2013-01-29 13:54:17,924 [INFO ][1]: System resumed from suspend state, restarting core services.
2013-01-29 13:54:17,925 [INFO ][ARGUS TV]: ARGUS TV version 2.0.1 main-thread started.
2013-01-29 13:54:17,925 [INFO ][ARGUS TV]: Starting service.
2013-01-29 13:54:17,926 [INFO ][ARGUS TV]: Ensuring database is up.
2013-01-29 13:54:17,975 [DEBUG][1]: Calling OnPowerEvent(ResumeAutomatic)...
2013-01-29 13:54:18,144 [INFO ][ARGUS TV]: Initializing configuration defaults.
2013-01-29 13:54:18,201 [INFO ][ARGUS TV]: Starting WCF service hosts.
2013-01-29 13:54:30,703 [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 .(Type , Type )
   at .()
   at .Run()
2013-01-29 13:54:30,712 [INFO ][ARGUS TV]: Stopping service.
2013-01-29 13:54:30,719 [ERROR][ARGUS TV]: System.NullReferenceException: Object reference not set to an instance of an object.
   at .()
   at .Run()
2013-01-29 13:54:30,721 [INFO ][ARGUS TV]: ARGUS TV thread ended.

Re: ARGUS Scheduler Service stopped after resuming from hibe

Posted: Tue Jan 29, 2013 11:04 pm
by jeffski10
I've had the same a few times recently. Ended up with a reboot to solve it as I couldn't find what process was hanging around and that windows thought was listening.

Re: ARGUS Scheduler Service stopped after resuming from hibe

Posted: Tue Feb 19, 2013 6:01 pm
by alan77ss
yeah i've had the same problem. when i go into services.msc the scheduler has been stopped. starting again resolves the problem so there's no need to reboot, but has resulted in a few missed recordings.

Re: ARGUS Scheduler Service stopped after resuming from hibe

Posted: Wed Mar 06, 2013 2:04 pm
by ChrisRichner
This issue is so bad that we've lost a lot of scheduled recordings. This seems to be a thing that happens in 7 out of 10 resumes from hibernate state.

Due to the fact that the ArgusTVScheduler service itself doesn't face a severe issue and terminates it wont help to configure the service restarts itself each time it faces a severe exception.

The only workaround I've found is to create a scheduled task that runs every 10 minutes or so and starts the service if it's not running already.

But anyway, what other party is involved when wcf faces the

Code: Select all

System.ServiceModel.AddressAlreadyInUseException
Is there an official bug tracker where I can submit this bug/issue?

BTW: I'm facing this in the latest beta 2 as well

thanks

Re: ARGUS Scheduler Service stopped after resuming from hibe

Posted: Thu Mar 14, 2013 5:13 pm
by alan77ss
could you share the command you use for the scheduled task? would come in handy.

Re: ARGUS Scheduler Service stopped after resuming from hibe

Posted: Thu Mar 14, 2013 5:54 pm
by PD
I had this also recently, the only way I found to fix this was to re-install MySQL, localhost\root\MediaPortal as ip\user\password, reboot and everything worked fine, reinstalling Argus had no effect what so ever to repairing the problem.

I am wondering if a windows update may have screwed things up though, do seem to remember having done one the previous day, might just have been a coincidence.

Anyway my symptoms were, no recordings or live tv from resume and scheduler service just not started, manual start worked every time, which really did not point to a MySQL problem at all, but re-installing did fix this.