Has anyone else experienced that onvif sometimes (seemingly random) doesn't work due to authentication errors?
I have several cameras, but only my DS-2DE4A425IWG-E seems to act out like this. I am using onvif-cli to debug why Frigate wasn't working, and have realized that it sometimes (almost every time) decides that it doesn't like the authetication.
For some reason it does work sometimes. Yesterday I ran the command before going to bed, failed like most others. This morning I ran it with success four times in a row. Then 15 minutes later it didn't work again. Two days ago I managed to get it to answer once, but not more.
I have tried two firmware versions. Both being V5.8.0, one was built spring last year, and the one I am using now late last year (build time). If you know of a newer firmware for this camera, please point me to it. But since a v5.8.0 was built just a few months back I assume that it is the latest.
I have tried rebooting the camera. I have removed Onvif users, and added new ones. That's why the name above is test4. I have disabled the "Illegal Login Lock" feature. Nothing else should be connecting to the camera, except my Hikvision NVR, which is working, and is using the admin login account. Most of all, nothing else is using these onvif test accounts. I have been letting it rest for a full night, tried rebooting again and so on.
The onvif command devicemgmt GetCapabilities works every single time. But GetDeviceInformation and GetProfiles seldom works, I have tried hundreds of times.
Any suggestions?
I have several cameras, but only my DS-2DE4A425IWG-E seems to act out like this. I am using onvif-cli to debug why Frigate wasn't working, and have realized that it sometimes (almost every time) decides that it doesn't like the authetication.
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
False: Unknown error: The action requested requires authorization and the sender is not authorized
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
True: OrderedDict([('Manufacturer', 'HIKVISION'), ('Model', 'DS-2DE4A425IWG-E'), ('FirmwareVersion', 'V5.8.0'), ('SerialNumber', 'DS-2DE4A425IWG-E20220824CCWRK47482644'), ('HardwareId', '88')])
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
True: OrderedDict([('Manufacturer', 'HIKVISION'), ('Model', 'DS-2DE4A425IWG-E'), ('FirmwareVersion', 'V5.8.0'), ('SerialNumber', 'DS-2DE4A425IWG-E20220824CCWRK47482644'), ('HardwareId', '88')])
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
True: OrderedDict([('Manufacturer', 'HIKVISION'), ('Model', 'DS-2DE4A425IWG-E'), ('FirmwareVersion', 'V5.8.0'), ('SerialNumber', 'DS-2DE4A425IWG-E20220824CCWRK47482644'), ('HardwareId', '88')])
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
True: OrderedDict([('Manufacturer', 'HIKVISION'), ('Model', 'DS-2DE4A425IWG-E'), ('FirmwareVersion', 'V5.8.0'), ('SerialNumber', 'DS-2DE4A425IWG-E20220824CCWRK47482644'), ('HardwareId', '88')])
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
False: Unknown error: The action requested requires authorization and the sender is not authorized
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
False: Unknown error: The action requested requires authorization and the sender is not authorized
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
False: Unknown error: The action requested requires authorization and the sender is not authorized
root@7dc07210d8f0:/# /root/.local/bin/onvif-cli --host cam-13 --port 80 --user test4 --password asdf1234 devicemgmt GetDeviceInformation
False: Unknown error: The action requested requires authorization and the sender is not authorized
For some reason it does work sometimes. Yesterday I ran the command before going to bed, failed like most others. This morning I ran it with success four times in a row. Then 15 minutes later it didn't work again. Two days ago I managed to get it to answer once, but not more.
I have tried two firmware versions. Both being V5.8.0, one was built spring last year, and the one I am using now late last year (build time). If you know of a newer firmware for this camera, please point me to it. But since a v5.8.0 was built just a few months back I assume that it is the latest.
I have tried rebooting the camera. I have removed Onvif users, and added new ones. That's why the name above is test4. I have disabled the "Illegal Login Lock" feature. Nothing else should be connecting to the camera, except my Hikvision NVR, which is working, and is using the admin login account. Most of all, nothing else is using these onvif test accounts. I have been letting it rest for a full night, tried rebooting again and so on.
The onvif command devicemgmt GetCapabilities works every single time. But GetDeviceInformation and GetProfiles seldom works, I have tried hundreds of times.
Any suggestions?