Problems starting zm

Support and queries relating to all previous versions of ZoneMinder
rl03
Posts: 9
Joined: Tue Jan 24, 2006 9:54 pm

Post by rl03 »

Gentoo
zoneminder-1.22.0
perl v5.8.7 built for i686
kernel 2.6.14-gentoo-r5
mysql-5.0.16
Vadim
Posts: 2
Joined: Mon Jan 23, 2006 8:17 am

Post by Vadim »

Gentoo
zoneminder-1.22.0
perl-5.8.7-r3
kernel 2.6.14-gentoo
mysql-5.0.18
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It is starting to look like it might be related to mysql v5 possibly. Unfortunately I don't currently have access to a box with that on, but I will see if I can find anything out about what it might be.
Phil
rl03
Posts: 9
Joined: Tue Jan 24, 2006 9:54 pm

Post by rl03 »

After much pain with setting up slotted mysql on Gentoo, I still get the same error when using mysql-4.1.16
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Then perhaps it is related to gentoo in some way, though I can't think what. The only other alternative is whether it's something in perl.

Can you try this script and see what you get?

Code: Select all

#!/bin/perl -w

use strict;

BEGIN
{
    no strict 'refs';
    my $name = "xxx";
    *{$name} = sub { "yyy" };
    use strict;
}

print xxx."\n";
Phil
rl03
Posts: 9
Joined: Tue Jan 24, 2006 9:54 pm

Post by rl03 »

$ ./test
yyy
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Ok, that tells us something. I'll try and come up with something that is somewhere between next.
Phil
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Post by pchan »

i had the same issue. zmupdate.pl failed with the same problem. I ended up running zm_update-1.21.4.sql manually via mysql command line. That got me past the zmupdate.pl part. Next I just ran zm_create.sql manually via mysql command line, and now everything starts up.

It's seems to have lost my previous zone definitions though. It says I have 3 zones defined but when I click on zones, I get the message
"Bogus coordinate string ''Bogus coordinate string ''Bogus coordinate string ''


I ended up re-defining my zones, and now I think it's all happy again.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The zmupdate script does more than apply the DB updates. In some cases changes cannot be done solely in SQL, for instance in the translation of rectangular zones to polygons etc so the script does some other stuff as well. If you apply the DB changes only yourself you will tend to get what you saw.
Phil
linuxale
Posts: 2
Joined: Wed Feb 22, 2006 4:10 pm

Same Problem

Post by linuxale »

Hi Guys,
I'v the same problem!
Before I had zoneminder 1.21.3 installed but after I clean completely my system from old version. Anyway I'v the same problem:
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/bin/zmpkg.pl line 45.
BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 45.

No way to fix with zmfix or zmupdate.pl.
The log dir permission are ok sets to apache:apache 755; I'v tried to change the owner of htdocs to apache:apache but with no success.
Anybody know the meaning of this error?

Follow my config:
Linux bigamd 2.6.15-gentoo
mysql-5.0.18
ffmpeg-0.4.9_p20050226-r5
libwww-perl-5.803-r1
perl-5.8.7-r3
zoneminder-1.22.0

/etc/zm.conf
ZM_VERSION=1.22.0
ZM_PATH_BUILD=/usr/share/zoneminder
ZM_TIME_BUILD=1140623790
ZM_PATH_BIN=/usr/bin
ZM_PATH_LIB=/usr/lib
ZM_PATH_CONF=/etc
ZM_PATH_WEB=/var/www/bigamd/htdocs/zoneminder
ZM_PATH_CGI=/var/www/bigamd/cgi-bin
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache
ZM_DB_HOST=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass

/usr/local/etc/zm.conf
ZM_DB_HOST=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass

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

Post by cordel »

Try checking these two things.
check and make sure that the path to put the zm.sock file exists and that zm will have permission to create the file in that path.

Also make sure that /var/run/zm exists and that zm can create it PID file there.

Regards,
Corey
linuxale
Posts: 2
Joined: Wed Feb 22, 2006 4:10 pm

The problem persist

Post by linuxale »

Hi Corey,
i'v checked the where ZM_PATH_SOCKS is set. From default should be /tmp so no problem.

To be sure I'v set the variable in the shell where I run zmpkg.pl start .
The dir /var/run/zm was not writable from the web user but now is 777.


Unfortunately the problem persist.

Thanks
Linuxale
punkx11
Posts: 2
Joined: Tue Mar 21, 2006 12:26 am

Re: The problem persist

Post by punkx11 »

perl v5.8.8
kernel 2.6.15-gentoo-r1
mysql 5.0.18

I'm having the exact same issues as been listed here. It happens anytime I try to start ZM or run zmupdate.pl:

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


This is a brand new gentoo box, emereged zoneminder immediately after the system's first boot.

I've already tried all the suggestions in this, and similar threads, so I am not sure what's left. Any suggestions would be great! thanks :P
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Bareword "ZM_SHM_KEY" not allowed while "strict subs"
Suggests that for some reason the value in the database for ZM_SHM_KEY is not being retrieved. There must be something more definitive in one of your logs.
Check and make sure that zm.conf is setup correctly. Check that mysql is running and that you have a user setup that matchs whats in zm.conf. check that you actually have a database setup.

Regards,
Corey
punkx11
Posts: 2
Joined: Tue Mar 21, 2006 12:26 am

Post by punkx11 »

cordel wrote:
Bareword "ZM_SHM_KEY" not allowed while "strict subs"
Suggests that for some reason the value in the database for ZM_SHM_KEY is not being retrieved. There must be something more definitive in one of your logs.
Check and make sure that zm.conf is setup correctly. Check that mysql is running and that you have a user setup that matchs whats in zm.conf. check that you actually have a database setup.

Regards,
Corey
This has all been done. I can get the value for ZM_SHM_KEY by running mysql from the command line as well. I've nuked and paved once already, too. Exact same results.

Has anyone had emerge work correctly for a ZM install on the first go-round?
Locked