Page 1 of 1

[SOLVED] "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Sat Feb 11, 2017 12:53 pm
by sherminator
Hi everybody,

I just upgraded to 1.30.2. After this, Zoneminder can't receive the images from one of my three cams anymore. Two (both Instar cams) work fine, the third one (Axis) doesn't. In /var/log/syslog I can see a lot of entries like this:

Code: Select all

Feb 11 13:43:16 myzmserver zmwatch[3192]: INF [Restarting capture daemon for AxisCam01, time since last capture 27 seconds (1486816996-1486816969)]
Feb 11 13:43:16 myzmserver zmdc[3087]: INF ['zmc -m 6' starting at 17/02/11 13:43:16, pid = 7007]
Feb 11 13:43:16 myzmserver zmdc[7007]: INF ['zmc -m 6' started at 17/02/11 13:43:16]
Feb 11 13:43:16 myzmserver zmc_m6[7007]: INF [Starting Capture version 1.30.2]
Feb 11 13:43:16 myzmserver zmc_m6[7007]: WAR [Unable to capture image, retrying]
Feb 11 13:43:26 myzmserver zmwatch[3192]: INF [Restarting capture daemon for AxisCam01, time since last capture 10 seconds (1486817006-1486816996)]
Feb 11 13:43:26 myzmserver zmdc[3087]: INF ['zmc -m 6' sending stop to pid 7007 at 17/02/11 13:43:26]
Feb 11 13:43:26 myzmserver zmc_m6[7007]: INF [Got signal 15 (Terminated), exiting]
Feb 11 13:43:32 myzmserver zmdc[3087]: WAR ['zmc -m 6' has not stopped at 17/02/11 13:43:32. Sending KILL to pid 7007]
Feb 11 13:43:32 myzmserver zmdc[3087]: INF ['zmc -m 6' crashed, signal 8]
Re-activating the cam, restarting Zoneminder and restarting the whole machine didn't solve the problem.
Could you please help me debugging this?

Thanks a lot and many greets
Stephan

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Sat Feb 11, 2017 1:18 pm
by bbunge
Will have to reload my test machines.

What Linux distro?

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Sat Feb 11, 2017 2:43 pm
by sherminator
What Linux distro?
Ubuntu Server 14.04.5

Zoneminder repo:

Code: Select all

deb http://ppa.launchpad.net/iconnor/zoneminder/ubuntu trusty main
(is that "best practise"?)

Thanks and greets
Stephan

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Sat Feb 11, 2017 2:47 pm
by iconnor
Uh... I think we merged a "FIX" a long time ago that we will have to undo. I removed it from my dev branch a long time ago, but no one bothered to remove it from master.

For those following along, lines 195 and 196 in zm_remote_camera_http.cpp are bogus. They were put in to fix a problem with cameras that don't give a content-length header. But it breaks the logic and now zmc just spins waiting for more data and never parsing what it has.

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Sat Feb 11, 2017 2:51 pm
by iconnor

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Sat Feb 11, 2017 3:29 pm
by sherminator
thanks for identifying the problem so fast!
But... I'm just another system administrator, no clue about coding. :lol: Is there anything I can do to fix my current installation?

Sorry for silly asking and greets
Stephan

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Mon Feb 13, 2017 1:32 pm
by sherminator
Hi again,

just for understanding: What is the next step, and can I do something to solve this issue?

Thanks a lot and many greets
Stephan

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Mon Feb 20, 2017 9:56 am
by sherminator
Hi,

is there anything I can do to bring the cam back to work?
Is it possible to downgrade to 1.30.0?

Thanks and greets
Stephan

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Tue Feb 21, 2017 10:35 am
by SteveGilvarry
Not sure as the PPA had some issues, but I think they are resolved, you could try specifying the package version back to 1.30. Or you could use the package build script to build your own from master that has a fix. Or wait for iconnor to package master on the master spa, or wait for us to do RC2 that should have this fix included. I will raise the question of RC2 to see if we have enough changes to warrant it.

Re: "Unable to capture image, retrying" after upgrading to 1.30.2

Posted: Wed Feb 22, 2017 12:16 pm
by sherminator
Hi Steve,

thanks for this overview!
I just downgraded the zoneminder package via

Code: Select all

# apt-get install zoneminder=1.30.0-trusty1
Cam is back, no issues so far! :D

Thanks and many greets
Stephan