Upgrading process questions

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
Post Reply
znelbok
Posts: 17
Joined: Thu Feb 09, 2006 9:08 am

Upgrading process questions

Post by znelbok »

Hi all

I have just loaded the live CD and it has an older version of ZM (1.21.3). Before I go much further I though the best thing to do would be to upgrade to the latest version (1.22.0).

I have the readme and the files, but I am having some difficulty with the process.

This has been tried with the default user "user" logged in.

Building
./configure --with-webdir=xxxx

what is the web directory byt default from the livecd install. The readme hint that it may be /var/www/html/zm. Is this correct

--with-cgidir=yyyy

Same again, the readme hints at /var/www/cgi-bin. Is this correct.

I used the above value and from there went to upgrading

make install

I think this produced an error on the last line (cant remember too well late last night) and I cant remember what it said. I continues on regardless though (to at least familarise myself with the process)

zmupdate.pl -version=1.21.3

This produces a message based around privledges. (yeah I know I should have written it down). There appears to be an option to add the dabase user in and password.

--user=mko0nji9 --pass-zaq1xsw2 (from memory here so I might be wrong)

These still produceds the same message. Are these values correct.

Is there anything I have done wrong that is blatently obvious that I have missed. As you have gathered by now I am fairly new to Linux as well (seasoned windows user though).

Does the user "user" have enough provledges to do the make install?

Any help appreciated

Thanks

Mick
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It would probably be best to update ZM through the rpm package that Ross released last week. It would also probably be best to wait for 1.22.1 that will be out soon as it will have alot of fixs for all the issues we already know about.

Regards,
Corey
znelbok
Posts: 17
Joined: Thu Feb 09, 2006 9:08 am

Post by znelbok »

Thanks Corey

I will wait for 1.22.1, in the meantime I will look around for the rpm (didnt see it, not that I was looking either)

Mick
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

When we get the next version out there will be a topic started in the Anouncements.
Since there were major changes in 1.22 from 1.21.4 everything is in a sort of testing stage. This change also required some rework of things to properly package it and sort of forced me to do some things that I had intended to get around too and hadn't.
It should not be to long.

Regards,
Corey
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

You'll find a link here:
http://www.zoneminder.com/forums/viewtopic.php?t=5655

Be sure to use the Mandrake 10.1 RPM. Install with rpm -Uvh
I have not tested an upgrade from 1.21.3 only 1.21.4 but I expect it will work correctly. If you don't mind testing, a report would be helpful.

Ross
johnnyzone
Posts: 5
Joined: Thu Mar 02, 2006 2:11 pm
Location: UK

Post by johnnyzone »

I've already posted this in ZoneMinder 1.22.x / 1.22.0 RPMs for Mandrake
http://www.zoneminder.com/forums/viewto ... 7735#17735
maybe should have been here i think
upgraded from the original 1.21.3 live cd install & all is well.
dowloaded both RPMs zm-1.21.4-4_mdk...... & zm-1.22.0-1.6_mdk.... from http://www.elltel.net/melins/mdk_10.1/RPMS/
ran as root

Code: Select all

[/home/user/tmp/zm1.21.4]# rpm -Uvh zm-1.21.4-4_mdk101.i586.rpm
error: Failed dependencies:
        perl-Archive-Tar is needed by zm-1.21.4-4_mdk101
        perl-Archive-Zip is needed by zm-1.21.4-4_mdk101
from KDE menu
System>Configuration>Packaging>Install Software
then search for 'perl-Archive' & install the above 2 missing packages, then try installation again & it installed & stopped & restarted the service

Code: Select all

[/home/user/tmp/zm1.21.4]# rpm -Uvh zm-1.21.4-4_mdk101.i586.rpm
Preparing...                ########################################### [100%]
   1:zm                     ########################################### [100%]
Shutting down httpd2: [  OK  ]
Starting httpd2: [  OK  ]
then ran

Code: Select all

 /home/user/tmp/zm1.22.0-1.6]# rpm -Uvh zm-1.22.0-1.6_mdk101.i586.rpm
Preparing...                ########################################### [100%]
   1:zm                     warning: /etc/zm.conf created as /etc/zm.conf.rpmnew
########################################### [100%]

it did its installation but did not appear to stop & restart the service



so i did

Code: Select all

[/home/user/tmp/zm1.22.0-1.6]# service zm stop
Stopping ZoneMinder: Bareword "ZM_RUN_AUDIT" not allowed while "strict subs" in
use at /usr/lib/zm/bin/zmpkg.pl line 206.
Execution of /usr/lib/zm/bin/zmpkg.pl aborted due to compilation errors.
                                                                [FAILED]




then did

Code: Select all

[/home/user/tmp/zm1.22.0-1.6]# service zm start
Upgrade ZoneMinder database: Update agent starting at 06/03/02 13:13:54

Initiating database upgrade to version 1.22.0

Upgrading database to version 1.22.0

Database successfully upgraded from version 1.21.3.
Updating events. This may take a few minutes. Please wait.
Updating monitor sequences. Please wait.
Updating saved filters. Please wait.

Database successfully upgraded from version 1.21.4.
Updating zones. Please wait.
Updating run states. Please wait.
Loading config from DB
No option 'ZM_AUTH_METHOD' found, removing at /usr/lib/perl5/site_perl/5.8.5/Zon
eMinder/ConfigAdmin.pm line 1574.
No option 'ZM_AUTH_SECRET' found, removing at /usr/lib/perl5/site_perl/5.8.5/Zon
eMinder/ConfigAdmin.pm line 1574.
No option 'ZM_FFMPEG_OPTIONS' found, removing at /usr/lib/perl5/site_perl/5.8.5/
ZoneMinder/ConfigAdmin.pm line 1574.
No option 'ZM_VIDEO_STREAM_METHOD' found, removing at /usr/lib/perl5/site_perl/5                                                     .8.5/ZoneMinder/ConfigAdmin.pm line 1574.
No option 'ZM_VIDEO_TIMED_FRAMES' found, removing at /usr/lib/perl5/site_perl/5.                                                     8.5/ZoneMinder/ConfigAdmin.pm line 1574.
No option 'ZM_VIDEO_LIVE_FORMAT' found, removing at /usr/lib/perl5/site_perl/5.8                                                     .5/ZoneMinder/ConfigAdmin.pm line 1574.
No option 'ZM_VIDEO_REPLAY_FORMAT' found, removing at /usr/lib/perl5/site_perl/5                                                     .8.5/ZoneMinder/ConfigAdmin.pm line 1574.
No option 'ZM_WEB_P_REFRESH_MAIN' found, removing at /usr/lib/perl5/site_perl/5.                                                     8.5/ZoneMinder/ConfigAdmin.pm line 1574.
No option 'ZM_WEB_P_REFRESH_IMAGE' found, removing at /usr/lib/perl5/site_perl/5                                                     .8.5/ZoneMinder/ConfigAdmin.pm line 1574.
Saving config to DB

Database upgrade to version 1.22.0 successful.
Update agent exiting at 06/03/02 13:13:59
Update agent starting at 06/03/02 13:13:59

Freshening configuration in database
Loading config from DB
Saving config to DB
Update agent exiting at 06/03/02 13:13:59
                                                                [  OK  ]
Starting ZoneMinder:                                            [  OK  ]




I don't know if this is the correct way to do it, i went through the first step

Code: Select all

rpm -Uvh zm-1.21.4-4_mdk...
just to be sure & hopefully not break anything!!

zm running on 1.7G athalon 120GB drive 2 video cameras on a cheap capture card £15.00 on ebay
http://cgi.ebay.co.uk/4-Channel-PCI-DVR ... dZViewItem
type of thing.
well done Ross and all the rest of the coding team, all seems good so far, i'll keep an eye on the box for a few days!!
John
Post Reply