RPM testers needed - File 1.22.0-1.8 updated 2006-03-25

Support and queries relating to all previous versions of ZoneMinder
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

RPM testers needed - File 1.22.0-1.8 updated 2006-03-25

Post by cordel »

I am fairly sure I have everything worked out for the new RPM and need some testers.
The rpm is made to work with the ZoneMinder Core 3 that I put out and is for the time being, compiled against ffmpeg 0.4.8.

UPDATE 2006-01-31

See post http://www.zoneminder.com/forums/viewto ... c&start=25

UPDATE 2006-02-01

http://www.zoneminder.com/forums/viewto ... c&start=34

UPDATE 2006-02-02

http://www.zoneminder.com/forums/viewto ... c&start=35
UPDATE 2006-02-06
http://www.zoneminder.com/forums/viewto ... c&start=40

I would highly advise that this should be a machine that does nothing else with nothing you care about on it as there may still be bugs, so a test setup is preferable. Now with the disclaimer being said, I have had no problems thus far and have been testing it for the last 24 hours. I haven't tried a fresh install with this particular package (I tested the fresh install after I made the scripts for such but not since I worked the upgrade scripts, One should not affect the other.) and I installed it as an upgrade from 1.21.4-1.4 rpm.

Testers should have experience with the previous zm packages. Post here and I will send you the package or tell you where to get it. It would be easiest if you are using ZoneMinder Core.
Any feedback for this should be in this thread

The steps for upgrading are simple:
service zm stop (assuming your upgrading, the package should stop zm on its own but never herts to be proactive)
rpm -U zm-1.22.0-0.1.fc.root.i386.rpm
service zm start

You will see zm update its /etc/zm.conf file and the database. zm should then start.


For a fresh install:
rpm -i zm-1.22.0-0.1.fc.root.i386.rpm
Edit /etc/zm.conf (add the user and password you want zm to use for the database, This will change once I learn how to blank these out)
/usr/lib/zm/bin/zminit
service zm start
service httpd start

Regards,
Corey
Last edited by cordel on Sun Mar 26, 2006 2:31 am, edited 12 times in total.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

count me in mate. i only have 1 fedora based and 3 mandraje based. I assume this is a fc3 rpm to test?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Emailed the packages to you James. Correct in that it's FC3 based.

Corey
martymoose
Posts: 128
Joined: Tue Jul 12, 2005 9:59 am
Location: australia

Post by martymoose »

mate starting to get this linux

i have ctu 3 as well

ill give it a go
martymoose
Posts: 128
Joined: Tue Jul 12, 2005 9:59 am
Location: australia

Post by martymoose »

thanks corey
well i be the first to have a prob

followed the instructions

heres the error

Code: Select all

[root@zm ~]# service zm stop
Stopping ZoneMinder:                                       [  OK  ]

[root@zm ~]# rpm -U zm-1.22.0-0.1.fc.root.i386.rpm
error: Failed dependencies:
        perl(X10::ActiveHome) is needed by zm-1.22.0-0.1.fc.root.i386
[root@zm ~]#
SyRenity
Posts: 301
Joined: Mon Jan 24, 2005 2:43 pm

Post by SyRenity »

Hi.

I think you need to install a missing perl module, by running "yum install perl-X10-ActiveHome". This should be the missing dependency.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Opp's
I apperantly put a dependancy in the wrong place. It should have carried over to the zm-x10 package. I have reuploaded a updated version. If that didn't do it...
you can get the perl-x10 package here
or you can force rpm to install the file ignoring the dependancy.

Either way should work just fine, but that dependancy should be on the zm-X10 package. I added it to the spec so hopefuly it should work and let me know if it don't.

Corey
martymoose
Posts: 128
Joined: Tue Jul 12, 2005 9:59 am
Location: australia

Post by martymoose »

ok ran
yum install perl-X10-*
then it upgraded ok


rebooted
then all cams are red and failled to connect deinied?

will look in the logs later tea time

just a refresher wheres the log path again

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

Post by cordel »

All logs are under /var/log

You should have seen when you restarted the zm.conf and DB get updated. You also have to start zm via the service [ service zm start ] for the update process to happen and not through the web page.

Corey
martymoose
Posts: 128
Joined: Tue Jul 12, 2005 9:59 am
Location: australia

Post by martymoose »

yes did that started
then it updated the db by removing about 6 lines

just checking log now

which one

the upgrade log is empty
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The clue could be in any of the following:

Code: Select all

/var/log/
       messages
       syslog
    /httpd/error_log
      /zm/
             zmdc.log
             zmpkg.log
the upgrade.log will be empty as the way things happen I'm not using zmupdate. zmupdate is interactive thus I can't use it in the scripts and have to use a script just for the RPM
Corey
pcalleros
Posts: 56
Joined: Sun Oct 02, 2005 4:53 pm

Willing to test

Post by pcalleros »

Hello Corey, I am willing to give it a try. I have a dedicated "test" machine with an 8 port / 8 chip video capture card using 6 video sources.
martymoose
Posts: 128
Joined: Tue Jul 12, 2005 9:59 am
Location: australia

Post by martymoose »

messages.log snipit

Code: Select all

Jan 24 20:22:01 zm zmdc[3470]: INF ['zmfilter.pl' starting at 06/01/24 20:22:01, pid = 3520] 
Jan 24 20:22:01 zm zmdc[3520]: INF ['zmfilter.pl' started at 06/01/24 20:22:01] 
Jan 24 20:22:02 zm zmdc[3470]: INF [Starting pending process, zma -m 1] 
Jan 24 20:22:02 zm zmdc[3521]: INF ['zma -m 1' started at 06/01/24 20:22:02] 
Jan 24 20:22:02 zm zmdc[3470]: INF ['zma -m 1' starting at 06/01/24 20:22:02, pid = 3521] 
Jan 24 20:22:02 zm zma_m1[3521]: INF [Debug Level = 0, Debug Log = <none>]
Jan 24 20:22:02 zm zma_m1[3521]: ERR [Can't run query: Unknown column 'Enabled' in 'field list']
Jan 24 20:22:02 zm zmdc[3470]: ERR ['zma -m 1' crashed, exit status 30] 
Jan 24 20:22:02 zm su(pam_unix)[3517]: session closed for user apache
Jan 24 20:22:02 zm su(pam_unix)[3524]: session opened for user apache by (uid=0)
httpd

Code: Select all

[Tue Jan 24 19:34:11 2006] [error] [client 192.168.1.40] Directory index forbidden by rule: /var/www/html/
[Tue Jan 24 19:35:06 2006] [error] [client 192.168.1.40] Premature end of script headers: zms, referer: http://192.168.1.250/zm/index.php?view=watchfeed&mode=&mid=1&scale=100&control=
zmdc.log

Code: Select all

24/01/06 20:31:47.538359 zmdc[3470].INF ['zmc -d /dev/video0' starting at 06/01/24 20:31:47, pid = 4446]
24/01/06 20:31:47.539755 zmdc[4446].INF ['zmc -d /dev/video0' started at 06/01/24 20:31:47]
24/01/06 20:31:47.639251 zmdc[3470].ERR ['zmc -d /dev/video0' crashed, exit status 30
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay, apparently the database didn't update correctly. I'll have to go through it when I get back home :cry:

There are a few ways to get things working till I can get back.
Run the zm_update-1.21.4.sql (assuming you had 1.21.4 installed previous) you might need to restore your backup db (assuming that you backed up your DB).
Or drop the db and load /usr/lib/zm/init/zmschema.sql (fresh DB, you would lose any previous events)
martymoose
Posts: 128
Joined: Tue Jul 12, 2005 9:59 am
Location: australia

Post by martymoose »

cordel wrote:Okay, apparently the database didn't update correctly. I'll have to go through it when I get back home :cry:

There are a few ways to get things working till I can get back.
Run the zm_update-1.21.4.sql (assuming you had 1.21.4 installed previous) you might need to restore your backup db (assuming that you backed up your DB).
Or drop the db and load /usr/lib/zm/init/zmschema.sql (fresh DB, you would lose any previous events)
whats the proper way to delete the db

i dont think it deleted
heres the putty
[root@zm ~]# /usr/lib/zm/init/zmschema.sql
/usr/lib/zm/init/zmschema.sql: line 1: --: command not found
/usr/lib/zm/init/zmschema.sql: line 2: --: command not found
/usr/lib/zm/init/zmschema.sql: line 3: --: command not found
/usr/lib/zm/init/zmschema.sql: line 7: --: command not found
/usr/lib/zm/init/zmschema.sql: line 8: Config: command not found
/usr/lib/zm/init/zmschema.sql: line 8: --: command not found
/usr/lib/zm/init/zmschema.sql: line 9: --: command not found
/usr/lib/zm/init/zmschema.sql: line 11: syntax error near unexpected token `('
/usr/lib/zm/init/zmschema.sql: line 11: `CREATE TABLE /*!32312 IF NOT EXISTS*/ Config ('
Locked