Axis Camera: err ajax

I have added 3 axis cameras previously with success but I am not unable to add this new one.

Bluecherry server 3.1.4

Camera Model: AXIS M3085-V Network Camera
Firmware: 12.0.91
Camera Name: Lobby SouthEast (lbby-lbby-cam-4)

I am able to successfully pull the RTSP main and substream using VLC, but not through bluecherry.

Here is the error I am getting when attempting to save and test connection:

err ajax

Here is the configuration of the non working camera:

Here is an example config of a working camera:

Here is proof of the working vlc stream:

Can you attach /var/log/nginx/bluecherry-error.log

Sure thing. It was too large to upload directly to the forums, so here’s the link to it.

Wanted to update some information.

This “camera” already existed in bluecherry. I merely replaced it physically and changed the settings so that we can retain the old recordings.

So technically, this is not a “new” camera setting, but an older one with updated rtsp paths and login.

I deleted the camera and re-added it from scratch.

@curtishall

I tried to change a username and password for another camera and I got the same error.

Now that camera is no longer available. I will have to delete and re-create it, which is a huge hassle.

It appears that since the last update, we can no longer edit camera settings without completely breaking it.

@curtishall

Hey Curtis, is there a solution in place or is this something I have to wait for the next release for a possible fix?

The same camera went down again.

The error log really didn’t show the problem, just an annoying repeating log about media_duration. To fix that repeating log can you edit /usr/share/bluecherry/www/ajax/events/eventsIndex.php line 128 and change:

'media_duration' => $item['media_duration']

to this

'media_duration' => $item['video_duration']

Then run:

tail -f /var/log/nginx/bluecherry-error.log

then see if you can replication the ajax error again.

Also, did this work in 3.1.0-rc10 and then broke after 3.1.4?

This was changed in 3.1.4:

Hi Curtis,

I guess I have another issue to report then, which I did mention in a previous post. Anytime you change the settings on an existing camera, the camera no longer works in bc, and has to be re-created from scratch.

Btw making that change you suggested to fix the ajax error breaks BC and it can no longer start. Reverting the change allows BC to start up again.

I’m definitely having trouble with our Axis cameras with RTSP streams.

The stream stops and is fixed by a reboot of the BC server.

There’s also this weird issue of being unable to edit camera settings, so something weird is going on. I don’t know how much else I can provide since the logs I gave you previously don’t appear to he helpful.

Can we login via SSH? Can you send the information to support@bluecherrydvr.com?

Yep, I just sent an email.

The newest version of BC 3.1.6 seems to have resolved this issue. I will update this post if i noticed the same thing happening again.