Two Hikvision DS-2CV2026G0-IDW - can't add second camera
Hello! I love idea with such a simple solution - alarmserver - thank you!
I am using alarmserver from new docker image. Unfortunately I have problem with "adding" second camera - it always fails.
My config is:
hikvision:
enabled: true
cams:
cam1:
address: 192.168.44.210
https: false
username: admin
password: bothCamHaveSamePass
rawTcp: false
cam2:
address: 192.168.44.209
https: false
username: admin
password: bothCamHaveSamePass
rawTcp: false
My log looks:
Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.210/ISAPI/
HIK: USING DIGEST AUTH
HIK: Adding camera cam2: http://192.168.44.209/ISAPI/
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
HIK: USING DIGEST AUTH
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
STARTED HIKVISION SERVER
If I swap addresses:
hikvision:
enabled: true
cams:
cam1:
address: 192.168.44.209
https: false
username: admin
password: bothCamHaveSamePass
rawTcp: false
cam2:
address: 192.168.44.210
https: false
username: admin
password: bothCamHaveSamePass
rawTcp: false
Again problem with second camera:
Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.209/ISAPI/
HIK: USING DIGEST AUTH
HIK: Adding camera cam2: http://192.168.44.210/ISAPI/
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
HIK: USING DIGEST AUTH
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
STARTED HIKVISION SERVER
Configuration with single camera, alike 192.168.44.209 and 192.168.44.210, works well.
Hey thank you for detailed bug report!
This indeed looks like a bug. I will have a look once I have some spare time.
Have you checked this?

My configuration is:

If is set on both cams WEB Authentication to digest/basic it works :)
Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.209/ISAPI/
HIK: USING BASIC AUTH
HIK: Adding camera cam2: http://192.168.44.210/ISAPI/
2023/03/02 18:20:06 cam2 event: videoloss (inactive - 0)
HIK: USING BASIC AUTH
2023/03/02 18:20:06 cam2 event: videoloss (inactive - 0)
2023/03/02 18:20:16 cam2 event: videoloss (inactive - 0)
2023/03/02 18:20:16 cam2 event: videoloss (inactive - 0)
With digest first cam is authorized, second doesn't.
Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.209/ISAPI/
HIK: USING DIGEST AUTH
HIK: Adding camera cam2: http://192.168.44.210/ISAPI/
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
HIK: USING DIGEST AUTH
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2