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

Forum for questions and support relating to the 1.30.x releases only.
Locked
sherminator
Posts: 15
Joined: Mon Jul 18, 2016 8:30 am

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

Post 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
Last edited by sherminator on Wed Feb 22, 2017 12:19 pm, edited 1 time in total.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

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

Post by bbunge »

Will have to reload my test machines.

What Linux distro?
sherminator
Posts: 15
Joined: Mon Jul 18, 2016 8:30 am

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

Post 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
User avatar
iconnor
Posts: 3284
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

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

Post 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.
sherminator
Posts: 15
Joined: Mon Jul 18, 2016 8:30 am

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

Post 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
sherminator
Posts: 15
Joined: Mon Jul 18, 2016 8:30 am

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

Post 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
sherminator
Posts: 15
Joined: Mon Jul 18, 2016 8:30 am

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

Post 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
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

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

Post 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.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
sherminator
Posts: 15
Joined: Mon Jul 18, 2016 8:30 am

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

Post 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
Locked