Page 1 of 2
"broken stream" over and over until plugin restart
Posted:
Sun Dec 18, 2016 2:23 pm
by blysik
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?
Re: "broken stream" over and over until plugin restart
Posted:
Mon Dec 19, 2016 6:04 pm
by blysik
I setup an hourly restart of the plugin, and this problem hasn't happened since.
Re: "broken stream" over and over until plugin restart
Posted:
Fri Dec 30, 2016 6:43 am
by nlagaros
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.
Re:
Posted:
Sat Dec 31, 2016 4:41 pm
by nlagaros
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.
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 03, 2017 8:09 pm
by Coolcaper
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.
Re: "broken stream" over and over until plugin restart
Posted:
Wed Jan 04, 2017 6:47 pm
by nlagaros
I think I am not closing broken TCP/IP connections properly. Will look into it over the weekend.
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 3:57 am
by Coolcaper
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.
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 4:44 am
by nlagaros
What version of the plugin are you running?
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 4:45 am
by Coolcaper
v0.1.3
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 12:06 pm
by nlagaros
Is it connected via wifi by any chance?
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 3:08 pm
by blysik
I still have the problem as well. My cameras are ethernet. Problem resolves I restart the plugin. version 0.1.3.
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 3:21 pm
by nlagaros
Can you do a test - disable the emailing and see if you still get the broken stream message when there are alerts. Thanks.
Re: "broken stream" over and over until plugin restart
Posted:
Tue Jan 10, 2017 3:36 pm
by blysik
I have never used the email snapshot functionality. I use it to trigger a script run instead.
Re:
Posted:
Tue Jan 10, 2017 8:59 pm
by Coolcaper
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.
Re: "broken stream" over and over until plugin restart
Posted:
Wed Jan 11, 2017 5:12 am
by Coolcaper
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