Page 2 of 3

Posted: Mon Jun 12, 2006 3:44 pm
by electron
Maybe this will help, it did give one warning about zm.conf:

warning: /etc/zm.conf created as /etc/zm.conf.rpmnew

Should I just rename zm.conf to somthing else & rename zm.conf.rpmnew to zm.conf & do a little hand editing ?

Posted: Mon Jun 12, 2006 8:31 pm
by martymoose
electron wrote:Maybe this will help, it did give one warning about zm.conf:

warning: /etc/zm.conf created as /etc/zm.conf.rpmnew

Should I just rename zm.conf to somthing else & rename zm.conf.rpmnew to zm.conf & do a little hand editing ?
same as well

Posted: Tue Jun 13, 2006 12:51 am
by ajmorris
Will this work on the CTU distro?
Andy

Posted: Tue Jun 13, 2006 2:32 am
by electron
I played with zm.conf & zm.conf.rpmnew & when I put my zm user & zm pass into the rpmnew & then changed the name of rpmnew to zm.conf & renamed my zm.conf & changed permissions of the zm.conf, I could stop zm & start it, but when I started it, I got:Upgrade ZoneMinder database: Update agent starting at 06/06/12 21:29:07

Initiating database upgrade to version 1.22.2

Upgrading database to version 1.22.2
ERROR 1060 at line 8: Duplicate column name 'LinkedMonitors'
Output:
Command 'mysql -hlocalhost -ume -pmypass zm < /usr/lib/zm/upgrade/zm_update- 1.22.0.sql' exited with status: 1

So, it appears the original rpm upgrade didn't upgrade the database, but it still installed everything else OK.

Posted: Tue Jun 13, 2006 5:24 am
by Sika
Had the same error as electron. I changed the zm.conf.rpmnew to zm.conf, now it appears to have upgraded to 1.22.2. But it's killed off 3 of my cameras which I now can't seem to get to work. One card (4 port single chip) and one port ( 4 port 4 chip) on another card are now not working.

06/13/06 17:22:57.024217 zmdc[11475].INF ['zmc -d /dev/video1' started at 06/06/13 17:22:57]
06/13/06 17:22:57.025257 zmdc[4394].INF ['zmc -d /dev/video1' starting at 06/06/13 17:22:57, pid = 11475]
06/13/06 17:22:57.101220 zmdc[4394].INF ['zma -m 9' crashed, signal 6]
06/13/06 17:22:57.101507 zmdc[4394].INF [Starting pending process, zma -m 9]
06/13/06 17:22:57.102575 zmdc[11477].INF ['zma -m 9' started at 06/06/13 17:22:57]
06/13/06 17:22:57.124709 zmdc[4394].INF ['zma -m 9' starting at 06/06/13 17:22:57, pid = 11477]
06/13/06 17:22:57.126344 zmdc[4394].INF ['zmc -d /dev/video1' crashed, signal 6]
06/13/06 17:28:02.037726 zmdc[4394].INF [Starting pending process, zmc -d /dev/video4]
06/13/06 17:28:02.038914 zmdc[11542].INF ['zmc -d /dev/video4' started at 06/06/13 17:28:02]
06/13/06 17:28:02.040887 zmdc[4394].INF ['zmc -d /dev/video4' starting at 06/06/13 17:28:02, pid = 11542]
06/13/06 17:28:02.087656 zmdc[4394].INF ['zmc -d /dev/video4' crashed, signal 6]

Sika

Posted: Tue Jun 13, 2006 2:00 pm
by electron
Mine now shows 1.22 version at top, I had tried to restart it only once & got the error I posted above Error 1060 at line 8, etc.... but tried to restart it later when I got to work & realized my home ZM system wasn't on & it started OK & now shows version 1.22.

Posted: Wed Jun 14, 2006 4:17 am
by cordel
From the posts I'm assuming this is on the i386 package and not the x86_64? Altough the problem probably exists for both :(
I'll look into it tonight and see if I can duplicate it. When I tested I had loaded 1.21.3 rpm and then updated. I had not tried from 1.22.0 which seems to be a issue.
The duplicate error you see is because the database was already updated but, appearently the zm.conf is not properly updating from 1.22.0.

To recover, reload your database backup and run zmupdate manualy with the correct zm.conf in place. That should cure the camera problems.

This works with FC3 and CTU3, I'll post a new rpm for testing asap.

Regards,
Corey

Posted: Wed Jun 14, 2006 5:24 am
by wcchiou
cordel wrote: To recover, reload your database backup and run zmupdate manualy with the correct zm.conf in place. That should cure the camera problems.

This works with FC3 and CTU3, I'll post a new rpm for testing asap.

Corey
Dear Corey:

Could you please be a little bit specific on how to recover? I am kind of not understand what you mean for the recovery.

Thanks a lot.

Posted: Wed Jun 14, 2006 6:53 am
by cordel
Reload the backup of your database that you should have made before upgrading the package.
The database should be intact as zmupdate does all the work and I haven't seen any issues myself other than the above post and may be an odd case or maybe the update process was interrupted.

The issue lays in the /etc/zm.conf is not updating properly. Normally in an rpm it's considered bad form to have it updated automatically and the new config is always loaded as *.rpmnew as a standard.

You can rename zm.conf as zm.conf.old (or anything you want for that matter) edit the zm.conf.rpm to reflect the proper database login info (as in your old config file) and rename it to zm.conf.

Regards,
Corey

Upgrade and install issue

Posted: Wed Jun 14, 2006 1:42 pm
by jschein
Cordel or somebody...

Needing the features of the lastest, I was using the FC3 iso release which was easy to install and configure.

I tried the Mandriva install, but trying to using 4 300gb drives, it didn't like me. To my suprise you came out with the FC3 1.22 update rpm.

I re-imaged with the FC3 iso, and attempt to install the RPM for the upgrade. It continuously fails stating that X10 / X10(Activehome) package is not found. I have not gone through and done any initial configuration to the iso... I just imaged the system and tryed to apply updates.

1. Is that the wrong way - Must I install image, Configure and start ZM, then try to apply the new 1.22 rpm?

2. Why do I get the missing X10 / X10 activehome package

I am a windows admin, but from reading all posts can identify the steps needed to install ZM from the iso within 30 minutes for 8 cameras. The issue I have always had was upgrading. Any step by step instructions / explaination of why it says packages are missing would be appreciated.

Thank you for all that reply to this upgrade patch.

Posted: Wed Jun 14, 2006 1:45 pm
by jameswilson
you need that active home rpm to be installed, i havnt u/g my ctu install yet but you should be able to find the rpm you need via google or rpmfind etc

rpmfind

Posted: Wed Jun 14, 2006 4:10 pm
by jschein
That's the issue. I've scoured the web and cannot find the right rpm. I would figure it would be included in the install or even located with a link somewhere in here, but I cannot find it.

I've tried installing various links found through google and haven't figured out the exact one. James, I know you'reall over this board, can ya lend a Polack a hand here?

Posted: Wed Jun 14, 2006 4:33 pm
by jameswilson

Posted: Wed Jun 14, 2006 9:35 pm
by cordel
New i386 package is up for test. I tested here by loading 1.21.3 then upgraded to 1.22.0 then to 1.22.2 and also from 1.21.3 directly to 1.22.2 and had no problems.

The 64 bit package will take some doing, I already upgraded that machine to FC5 so I'll have to reload it :cry:

As for X10 active home, the package is perl-X10

Cheers,
Corey

Posted: Wed Jun 14, 2006 10:11 pm
by timf
Hi Corey,

I'll give it a shot this evening upgrading from V1.21.4 to latest.

Should I use yum update or rpm -Uvh zm-1.22.2-0.0.fc.root.i386.rpm ? Probably the former.

I have your repos listed in my yum repo.

Edit - just checked your server and see it as a RPM, so it's the latter I guess until you put it in your repo

Cheers

Tim