bluecherrydvr / bluecherry-apps

Bluecherry surveillance system (server application)
http://www.bluecherrydvr.com
GNU General Public License v2.0
207 stars 66 forks source link

'err ajax' when searching for Hikvision camera #472

Open Gamertech opened 3 years ago

Gamertech commented 3 years ago

Setting up Bluecherry 3.1.0-rc2 and attempting to add a Hikvision DS-2CD2385G1-I camera (firmware 5.6.2). Ubuntu 20.04 LTS

With ONVIF disabled in the cam, BC's search completes with nothing found (as expected). With ONVIF enabled, BC searches for a bit then pops up with "err ajax".

Adding manually via RTSP works straight away.

Might be related to this comment, all I could find: https://github.com/bluecherrydvr/bluecherry-apps/issues/367#issuecomment-570957084

The only thing showing in the logs is: DVRServer: Received cameras list reply DVRServer: Requesting cameras list

curtishall commented 3 years ago

Does this happen only on this specific Hikvision camera, or all onvif cameras?

Thanks

Gamertech commented 3 years ago

As far as ONVIF cams go, I only have 3 of the same model Hiks. BC does it with all 3. I tested with Shinobi and they added fine.

curtishall commented 3 years ago

@aleksandre12 @kala13x

Thoughts - This might happen if bc-server crashes (which was fixed in rc3)....perhaps try to reproduce with bc-server stopped?

zenon1823 commented 3 years ago

(as per request in issue #480) I have several Hikvision DS-2CD2132-i cameras running Hikvision firmware 5.4.5 which doesn't alloy disabling ONVIF. Near as I can tell that option was introduced into Hikvision starting with firmware 5.5.0 (as per 12/5/17 Tech Bulletin). On my cameras ONVIF is permanently enabled.

I do not received an ajax error when using the "ONVIF Probe & Autoconfiguration" option. It successfully queries the camera.

Gamertech commented 3 years ago

ONVIF is disabled by default in these cams, and can be freely toggled on 5.6.2.

After trying many things, I disabled the ONVIF user in all 3 cams and readded and BC now recognises the cams for whatever reason. Nothing was changed in that test other than the user on/off, and as tested, Shinobi detected them pre-toggle. Is weird.