alarmserver icon indicating copy to clipboard operation
alarmserver copied to clipboard

Two Hikvision DS-2CV2026G0-IDW - can't add second camera

Open tgrabows opened this issue 3 years ago • 4 comments

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.

tgrabows avatar Feb 18 '23 16:02 tgrabows

Hey thank you for detailed bug report!

This indeed looks like a bug. I will have a look once I have some spare time.

toxuin avatar Feb 26 '23 22:02 toxuin

Have you checked this?

image

eddiex666 avatar Mar 02 '23 15:03 eddiex666

My configuration is: obraz

tgrabows avatar Mar 02 '23 18:03 tgrabows

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

tgrabows avatar Mar 02 '23 18:03 tgrabows