"broken stream" over and over until plugin restart

Posted on
Sun Dec 18, 2016 2:23 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

"broken stream" over and over until plugin restart

What happens occasionally in my environment is I get these errors over and over:

Code: Select all
Hikvision                       [Sun Dec 18 12:21:46 2016] Frontdoor Intrusion Alerts: broken stream
   Hikvision                       [Sun Dec 18 12:21:46 2016] Subscribing to alertStream: Frontdoor Intrusion Alerts
   Hikvision                       [Sun Dec 18 12:21:46 2016] Frontdoor Intrusion Alerts: broken stream
   Hikvision                       [Sun Dec 18 12:21:46 2016] Subscribing to alertStream: Frontdoor Intrusion Alerts
   Hikvision                       [Sun Dec 18 12:21:46 2016] Frontdoor Intrusion Alerts: broken stream


If I restart the plugin, everything works normally again.

Anyone else see this?

Posted on
Mon Dec 19, 2016 6:04 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: "broken stream" over and over until plugin restart

I setup an hourly restart of the plugin, and this problem hasn't happened since.

Posted on
Fri Dec 30, 2016 6:43 am
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re: "broken stream" over and over until plugin restart

I'm going to soften up the restart of a stream in the next release. These cameras can't take much of a load. When they get busy, tcp connections are broken - hence the restart.

Posted on
Sat Dec 31, 2016 4:41 pm
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re:

I just posted an update (v0.1.2) that should help with this.

nlagaros wrote:
I'm going to soften up the restart of a stream in the next release. These cameras can't take much of a load. When they get busy, tcp connections are broken - hence the restart.

Posted on
Tue Jan 03, 2017 8:09 pm
Coolcaper offline
Posts: 286
Joined: Aug 30, 2013
Location: Australia

Re: "broken stream" over and over until plugin restart

Hi, thanks for the plugin. I am using it with a Hikvision DS-2CD2332-I cam. When it works, it works well but I too am getting a lot of broken streams:

Hikvision [Wed Jan 4 10:04:16 2017] Subscribing to alertStream: PorchCam
Hikvision [Wed Jan 4 10:04:16 2017] PorchCam: broken stream

The device then has a STATE=ERROR until I reload the plugin where I then get STATE=CLEAR. I am using version 0.1.2.

Posted on
Wed Jan 04, 2017 6:47 pm
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re: "broken stream" over and over until plugin restart

I think I am not closing broken TCP/IP connections properly. Will look into it over the weekend.

Posted on
Tue Jan 10, 2017 3:57 am
Coolcaper offline
Posts: 286
Joined: Aug 30, 2013
Location: Australia

Re: "broken stream" over and over until plugin restart

Still getting the same unfortunately:

2017-01-10 10:40:36.045 Hikvision [Tue Jan 10 10:40:36 2017] Subscribing to alertStream: PorchCam
2017-01-10 10:40:36.066 Hikvision [Tue Jan 10 10:40:36 2017] PorchCam: broken stream
2017-01-10 10:41:36.230 Hikvision [Tue Jan 10 10:41:36 2017] Subscribing to alertStream: PorchCam
2017-01-10 10:41:36.266 Hikvision [Tue Jan 10 10:41:36 2017] PorchCam: broken stream

However if there is an intrusion or line crossing for which I have setup the trigger (note the timestamp. The plugin still detects even though it says broken stream but the cam device in indigo shows an 'error' state):

2017-01-10 10:42:16.021 Hikvision [Tue Jan 10 10:42:16 2017] PorchCam: LineCrossing OPEN
2017-01-10 10:42:18.949 Hikvision [Tue Jan 10 10:42:18 2017] PorchCam: IntrusionDetection OPEN
2017-01-10 10:42:28.703 Hikvision Error [Tue Jan 10 10:42:28 2017] Cannot email alert, <class 'smtplib.SMTPServerDisconnected'>: PorchCam
2017-01-10 10:42:36.376 Hikvision [Tue Jan 10 10:42:36 2017] Subscribing to alertStream: PorchCam
2017-01-10 10:42:36.395 Hikvision [Tue Jan 10 10:42:36 2017] PorchCam: broken stream

There seems to be no CLOSED detection though. It's always an OPEN when the 'broken stream' error happens. With the email error, I still received some emails. Don't know what's happening there either.

Posted on
Tue Jan 10, 2017 4:44 am
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re: "broken stream" over and over until plugin restart

What version of the plugin are you running?

Posted on
Tue Jan 10, 2017 4:45 am
Coolcaper offline
Posts: 286
Joined: Aug 30, 2013
Location: Australia

Re: "broken stream" over and over until plugin restart

v0.1.3

Posted on
Tue Jan 10, 2017 12:06 pm
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re: "broken stream" over and over until plugin restart

Is it connected via wifi by any chance?

Posted on
Tue Jan 10, 2017 3:08 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: "broken stream" over and over until plugin restart

I still have the problem as well. My cameras are ethernet. Problem resolves I restart the plugin. version 0.1.3.

Posted on
Tue Jan 10, 2017 3:21 pm
nlagaros offline
Posts: 1616
Joined: Dec 20, 2010

Re: "broken stream" over and over until plugin restart

Can you do a test - disable the emailing and see if you still get the broken stream message when there are alerts. Thanks.

Posted on
Tue Jan 10, 2017 3:36 pm
blysik offline
Posts: 213
Joined: Jan 06, 2015

Re: "broken stream" over and over until plugin restart

I have never used the email snapshot functionality. I use it to trigger a script run instead.

Posted on
Tue Jan 10, 2017 8:59 pm
Coolcaper offline
Posts: 286
Joined: Aug 30, 2013
Location: Australia

Re:

nlagaros wrote:
Is it connected via wifi by any chance?


No, its connected via ethernet.

nlagaros wrote:
Can you do a test - disable the emailing and see if you still get the broken stream message when there are alerts. Thanks.


I have disabled the email alerts for now.

Posted on
Wed Jan 11, 2017 5:12 am
Coolcaper offline
Posts: 286
Joined: Aug 30, 2013
Location: Australia

Re: "broken stream" over and over until plugin restart

Coolcaper wrote:
nlagaros wrote:
Is it connected via wifi by any chance?


No, its connected via ethernet.

nlagaros wrote:
Can you do a test - disable the emailing and see if you still get the broken stream message when there are alerts. Thanks.


I have disabled the email alerts for now.


Disabling email alerts hasn't helped either. Same situation.


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 0 guests