Event listener stops getting event from server

hi, in my C# code (a win service i’d installed on a server) i’m connected to our server (10.2b) and listening to new server event.

noticed that after a few hours the code just stops getting new analytic events, no error or anythings. any reason for this? is there any inner timeout in the milestone dll? thanks for the help.

Are you using the NewEventsIndication (or NewEventIndication)?

A first trouble shooting step could be to see if there is hints in the MIP logs.

[C:\ProgramData\Milestone\MIPSDK](file:C:/ProgramData/Milestone/MIPSDK)

And also the logs from the Event Server

[C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Event Server\logs

[C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Event Server\logs\MIPLogs

Do you see errors or the like?

If you run the Event Tracer tool plug-in, does this also stop working at the same time?

@Bo Ellegård Andersen (Milestone Systems)​ , i’m using NewAlarmIndication event .

The last alarm event i’ve recieved was at 30.8 18:20:12

and the [C:\ProgramData\Milestone\MIPSDK](file:C:/ProgramData/Milestone/MIPSDK)

has logged many lines in DEBUG of : ServiceReg: ():http:///ServiceRegistrationService.svc

i’ve noticed that the last log of this was just before the last alarm event received.

after that the log has a line at 19:18:50 says: LoginServerSvc.QueryChanges ():Connection timeout expired. the timeout elapsed during the post-login phase…

The mentioned log messages are expected, are not errors. Could you try the Event Tracer tool plugin? Does this also stop working at the same time?

i’ll try to reproduce this behavior with the tracer tool plugin.

will update…

thanks.​

@Bo Ellegård Andersen (Milestone Systems)​ i did a re-run and the listener stopped again and quite right away. i’ve noticed that the code is running under Win 2012 server R2, while i had an other server with 2008 R2 - maybe the win ver. does something?

There might be an issue that if a process unsubscribe to NewAlarmIndication then all processes are unsubscribed. Do you have more than one plugin?

@Bo Ellegård Andersen (Milestone Systems)​ no. it’s a win-service installed on a server that onStart subscribes to the NewAlarmIndication event. i’m thinking of doing a keep alive mechanisem that will send every 5 min an alarm, than i’ll check that is got it in a 5 min interval. if not i’ll do unsubscribe + logoff than login + subscribe .

what do you think ?

I hope you are able to and willing to do an experiment.

Make sure your service uses the newest avalilable VideoOS.Platform.dll from the MIP SDK 2017R2. At the same time make sure the Event Server uses the same. Do like this: Stop the event server. Make a back up copy of the Event Server file: “[C:\Program](file:C:/Program) Files\Milestone\XProtect Event Server\VideoOS.Platform.dll” (make the backup to be able to easily revert the change if you experience any new issue). Replace “[C:\Program](file:C:/Program) Files\Milestone\XProtect Event Server\VideoOS.Platform.dll” with the new version from the MIP SDK 2017R2. Start the Event Server. Re-test and see if the issue is solved.

Let me know the outcome of the experiment.