Downgrade 1.24.3 DB

Forum for questions and support relating to the 1.24.x releases only.
Locked
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Downgrade 1.24.3 DB

Post by DREMA »

I need help!

I was trying to upgrade a box from the ubuntu package zoneminder 1.24.2 to the svn version, but I encounter some problems so I decided go back to the package. but after I tried to install it from the repositories I got this error

Code: Select all

Initiating database upgrade to version 1.24.2

Upgrading database to version 1.24.2
Loading config from DB
Saving config to DB
Can't find upgrade from version '1.24.3' at /usr/bin/zmupdate.pl line 889.
dpkg: error processing zoneminder (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 zoneminder
Somehow my db got updated to the 1.24.3 and now I can't go back!
Anyone know how to solve this? Any way to manually change my db version to 1.24.2??

Please I need to get this box up as soon as possible! :/

Thanks a lot !
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Post by DREMA »

Also this is the error I get after compiling everything from svn and trying to start zm

Code: Select all

12/03/2010 08:21:49.536325 zmpkg[12841].ERR [Unable to run "sudo -u www-data /usr/local/bin/zmfix", output is ""]
12/03/2010 08:23:50.120750 zmpkg[13501].INF [Command: start]
Can't find any more debug info.
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

Drema, just run a zmupdate.pl -f when you downgrade to 1.24.2. You should see it remove a few Database options, and then be done.

For your zmfix issue, can you check if zmfix is actually there? When you run make install on 1.24.2, does it install zmfix for you?
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Post by DREMA »

I run zmupdate.pl -f and says everything is ok, but when trying to reinstall the zoneminder package it keep getting the same error.

With the zmfix, yeah I'm sure its there.
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

I recall seeing this not too long ago myself, but now can't remember why or what I did... it doesn't happen now on 1.24.3 to me. Is it actually stopping ZM From working, or is it just an error that it spits out?
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Post by DREMA »

I recompilled everything, ffmpeg, x264, zm, everything went fine and installed with no errors, but I can't get zm to start.

On the logs I keep getting the same

Code: Select all

12/08/2010 05:08:05.403383 zmpkg[30395].INF [Command: start]
12/08/2010 05:08:05.517862 zmpkg[30395].ERR [Unable to run "sudo -u www-data /usr/local/bin/zmfix", output is ""]
If I remove everything, and try to install the repo package I complains about the db version but I can start zm almost fine, just my events are a little screwed.

So I need help starting up 1.24.3

Thanks
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

If you run sudo -u www-data /usr/local/bin/zmfix manually, what do you see?

I also thought you were up and running with 1.24.3 since you were using H264 in eyeZm? Or did you just patch your 1.24.2 install?
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
DREMA
Posts: 162
Joined: Fri Dec 12, 2008 2:39 am
Location: México

Post by DREMA »

Thanks for your help Jai

Tried that, and I got nothing, no output
drema@ferika:~ sudo -u www-data /usr/local/bin/zmfix
drema@ferika:~
I test H264 on another box, was trying to update this one too but stumble on this.
User avatar
jdhar
Posts: 125
Joined: Fri Oct 01, 2010 9:15 pm
Location: California

Post by jdhar »

I don't have a reason why you are experiencing this... but taking a peek in zmpkg.pl:

if ( $status || DBG_LEVEL > 0 )
{
if ( $status )
{
Error( "Unable to run \"$command\", output is \"$output\"\n" );
exit( -1 );
}
else
{
Debug( "Output: $output\n" );
}
}

It will output the message you are seeing if DBG_LEVEL is > 0 or there was an error. Do you have debug turned on?

If not, zmfix is throwing an error. Try running the command manually again, and then do echo $? to see what the error code is in your shell.
eyeZm, Native iPhone App for ZoneMinder: http://www.eyezm.com

Version 1.3 now available on iTunes, introduces Montage view, HTTPS/SSL support and H264 native streaming!

Subscribe to RSS feed for updates: http://www.eyezm.com/rssfeed.xml
infinity005
Posts: 11
Joined: Tue Nov 16, 2004 5:37 am

Re: Downgrade 1.24.3 DB

Post by infinity005 »

I found this issue with zmfix as well on 1.24.3 preview. I disabled sudo because that command wasn't working. If sudo doesn't work, zmpkg then tries su.

Log:

Code: Select all

04/16/2011 19:53:40.936625 zmpkg[29440].DBG [Command: su www-data --shell=/bin/sh --command='/usr/bin/zmfix']
04/16/2011 19:53:41.026457 zmpkg[29440].ERR [Unable to run "su www-data --shell=/bin/sh --command='/usr/bin/zmfix'", output is ""]
Zmfix doesn't have any output except for and error code.

Code: Select all

# su www-data --shell=/bin/sh --command='/usr/bin/zmfix'; echo $?
255
#
Any ideas on a fix?
infinity005
Posts: 11
Joined: Tue Nov 16, 2004 5:37 am

Re: Downgrade 1.24.3 DB

Post by infinity005 »

Nevermind. After I ran this, zmfix works fine. No errors.

Code: Select all

zmupdate.pl -f
Locked