Problems starting zm

Support and queries relating to all previous versions of ZoneMinder
forgiarini
Posts: 6
Joined: Sat Jan 07, 2006 11:49 am

Problems starting zm

Post by forgiarini »

hi,
I'm trying to start ZoneMinder but I receive this error, what could it be?

Distribution: SUSE SLES 9
perl v5.8.3 built for x86_64-linux-thread-multi
kernel 2.6.5-7.244-smp
Architecture x86_64

Thanks,
Luca

linux-server:~/ZoneMinder-1.22.0/scripts # ./zm start
Starting ZoneMinder: Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder/SharedMem.pm line 156.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.3/ZoneMinder.pm line 36.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45.
./zm: line 17: echo_failure: command not found
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Are you using version 1.22.0? If so then it means you haven't created/loaded the database.
Phil
homy
Posts: 5
Joined: Wed Jan 18, 2006 5:05 pm

Post by homy »

zoneminder wrote:Are you using version 1.22.0? If so then it means you haven't created/loaded the database.
I have the same problem, but i have mysql running, and the database created, at first i did receive an error that it could not connect to the database. After setting the correct values in zm.conf, that error went away, but the other errors remained like in the first posting ...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Is this a new install or an upgrade from a previous version?
Phil
homy
Posts: 5
Joined: Wed Jan 18, 2006 5:05 pm

Post by homy »

This is a new installation ... well, today i found something else, i did take a look at mysql and i saw that this was mysql 5, i went back to mysql 4 and now the errors are gone, but when i try to start zoneminder, i only get a segmentation fault ... No errors in log-files or so ...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you post a grab of what happens?
Phil
Imp.Avgvstvs
Posts: 3
Joined: Fri Jan 20, 2006 8:47 am

Post by Imp.Avgvstvs »

I've exactly the same problem.
ffmpeg 0.4.9
Zoneminder 1.22.0
Mysql 5.0.18

Can be an incompatibility with Mysql 5 ??

Thanks in advance
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I need a few more details before I can say what might be wrong. Can you post a dump of any errors you get please.
Phil
Imp.Avgvstvs
Posts: 3
Joined: Fri Jan 20, 2006 8:47 am

Post by Imp.Avgvstvs »

/usr/local/bin/zmpkg.pl

Bareword "ZM_SHM_KEY" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/SharedMem.pm line 221.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder.pm line 36.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45.

My system is a gentoo linux.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks.

Can you create a simple perl script as follows

Code: Select all

#!/usr/bin/perl -w 

use strict;

$| = 1;

use ZoneMinder::Config qw/:all/;

print ZM_SHM_KEY."\n";
Call it what you want and then run it, by typing 'perl <yourscript>.pl' either as root or in your zm directory (with a valid zm.conf in), if not both. Please post what you get.
Phil
Imp.Avgvstvs
Posts: 3
Joined: Fri Jan 20, 2006 8:47 am

Post by Imp.Avgvstvs »

That's what i get :

bash #perl prova.pl
ZM_SHM_KEY
bash#
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you confirm that if you do

Code: Select all

mysql -u<your db user> -p<your db pass> <your db>
select * from Config where Name = "ZM_SHM_KEY";
quit;
that you get a row of data out?
Phil
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Also, can you change the line in the perl script that says

Code: Select all

print ZM_SHM_KEY."\n";
to say

Code: Select all

print &ZM_SHM_KEY."\n";
and see what that does.
Phil
homy
Posts: 5
Joined: Wed Jan 18, 2006 5:05 pm

Post by homy »

zoneminder wrote:I need a few more details before I can say what might be wrong. Can you post a dump of any errors you get please.
Sorry for not replying earlier, but i went back to a format and installed my linux from 0. Now everything works ...
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Good. Thanks for letting us know.
Phil
Locked