Page 1 of 1
Unknown column 'MotionFrameSkip' in 'field list'
Posted: Sun May 11, 2014 4:02 am
by aginzu
I'm trying to install Zoneminder 1.27.0 from source on 32 bit Ubuntu 12.04 and zma exits abnormally. The message is "ERR [Can't run query: Unknown column 'MotionFrameSkip' in 'field list']". I have tried deleting the database and recreating it with mysql zm < db/zm_create.sql and I still get the same error after restarting zoneminder.
I had a pre-built earlier version installed and want to update to 1.27 from source. The earlier version (1.26) worked, but this is the first time I have tried installing from source.
Any suggestions?
Re: Unknown column 'MotionFrameSkip' in 'field list'
Posted: Sun May 11, 2014 5:18 am
by mastertheknife
Hi,
Did you run zmupdate.pl after installing this version of ZM?
At any case, you can add that new field manually to the database using this SQL statement:
Code: Select all
ALTER TABLE `Monitors` ADD `MotionFrameSkip` smallint(5) unsigned NOT NULL default '0' AFTER `FrameSkip`
Re: Unknown column 'MotionFrameSkip' in 'field list'
Posted: Sun May 11, 2014 3:20 pm
by aginzu
Thanks for the response.
When I run zmupdate.pl I get
"Warning, overriding installed ./zm.conf file with local copy
Database already at version 1.27, update aborted."
I added the new field manually, and now I get
Can't run query: Unknown column 'ExtendAlarmFrames' in 'field list'
It looks like the db/zm_create.sql that is supposed to populate the database is missing some items. Can I get a correct copy of it from somewhere, or do I need to back the database down to some other version so that zmupdate.pl will run?
Re: Unknown column 'MotionFrameSkip' in 'field list'
Posted: Mon May 12, 2014 12:14 am
by aginzu
I fixed the problem by running zm_update-1.27.1.sql in mysql.
Apparently, somehow, although the source tree I downloaded is called 1.27.0, it's actually 1.27.1. which is why the tables were missing.