kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
709 stars 88 forks source link

GetPTZConfigurationsFromDevice: error in NodeName - username and password might be wrong #117

Closed 128keaton closed 10 months ago

128keaton commented 1 year ago

Hello, I am using a Hikvision DS-2CD2643G2-IZS. With ONVIF enabled, I see the following error in my agents' logs:

kerberos-agents-kerberos-agent1-1  | {"level":"error","msg":"GetPTZConfigurationsFromDevice: error in NodeName - username and password might be wrong","time":"2023-09-26T23:04:02+02:00"}
kerberos-agents-kerberos-agent1-1  | {"level":"error","msg":"HandleHeartBeat: error while getting PTZ configurations: error in NodeName - username and password might be wrong","time":"2023-09-26T23:04:02+02:00"}

I'm not able to discern where the issue is, however the following is the device capabilities response

Device Capabilities Response

```xml http://10.1.20.80/onvif/Analytics true true http://10.1.20.80/onvif/device_service true true true true false true 0 false true false false true true 19 12 16 12 2 60 2 40 2 20 2 10 2 0 true false false false 1 1 false nothing true true false false false false false false true false 0 false http://10.1.20.80/onvif/Events true true false http://10.1.20.80/onvif/Imaging http://10.1.20.80/onvif/Media true true true 20 http://10.1.20.80/onvif/PTZ http://10.1.20.80/onvif/hik_ext true true false true 2 http://10.1.20.80/onvif/DeviceIO 1 0 1 1 1 http://10.1.20.80/onvif/Recording false true false false 64 http://10.1.20.80/onvif/SearchRecording false http://10.1.20.80/onvif/Replay ```

And lastly the response from requesting PTZ Service Capabilities:

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tst="http://www.onvif.org/ver10/storage/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl" xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12" xmlns:http="http://schemas.xmlsoap.org/wsdl/http" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:wsadis="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-2" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tnshik="http://www.hikvision.com/2011/event/topics" xmlns:hikwsd="http://www.onvifext.com/onvif/ext/ver10/wsdl" xmlns:hikxsd="http://www.onvifext.com/onvif/ext/ver10/schema" xmlns:tas="http://www.onvif.org/ver10/advancedsecurity/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:axt="http://www.onvif.org/ver20/analytics">
  <env:Body>
    <tptz:GetServiceCapabilitiesResponse>
      <tptz:Capabilities EFlip="false" Reverse="false" GetCompatibleConfigurations="true" MoveStatus="true" StatusPosition="false"/>
    </tptz:GetServiceCapabilitiesResponse>
  </env:Body>
</env:Envelope>
cedricve commented 1 year ago

Does the Hikvision has PTZ enabled? I don't believe so, you might ignore the error than.

cedricve commented 10 months ago

We have turned this into a warning as it doesnt affect the behaviour of the agent. Latest release will hide the error. Closing this issue for now.