First time start issues on FC3

Support and queries relating to all previous versions of ZoneMinder
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

First time start issues on FC3

Post by CTR_Mint »

Hi,
I'm hitting plenty of walls buiilding ZM and as result desparate for some support so I appreciate any given.

I've completed the build and setup the db, double checking the tables are present.
Apache is started, with php supported to the best of my knowledge. Any direction on how to best confirm this would be appreciated.

I understand the next step would be to run /usr/local/bin/zmpkg.pl start

However this returns the following errors;
Use of uninitialized value in transliteration (tr///) at ./zmpkg.pl line 52, <CONFIG> line 5.
Use of uninitialized value in string eq at ./zmpkg.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at ./zmpkg.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at ./zmpkg.pl line 53, <CONFIG> line 5.
Use of uninitialized value in string eq at ./zmpkg.pl line 53, <CONFIG> line 5.
Undefined subroutine &main::ZM_DB_PASS called at ./zmpkg.pl line 64.
BEGIN failed--compilation aborted at ./zmpkg.pl line 74.

If I also access index.php or zm.php from web server I'm returned a blank page. Not an error as such, just a blank page????

I'm running a standard FC3 box on 2.6.10-1.760_FC3 with zm-1.20.1


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

Post by zoneminder »

Have you rerun zmconfig.pl as per the README to populate the database with your config?

Phil
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

Yes, i believe so, but reran it just in case. ran thro without problems

Still get the same error message when attemtpting to run /usr/local/bin/zmpkg.pl start

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

Post by zoneminder »

Can you find your zm.conf file and check that it's contents look correct?

Phil
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

Its brief but looks ok,
I've attached the contents
# ZoneMinder config
ZM_DB_SERVER=gway.gagewell.lan
ZM_DB_NAME=zm
ZM_DB_USER=root
ZM_DB_PASS=


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

Post by zoneminder »

This may be related to an issue being discussed in this thread.

Phil
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

thanks, I've followed the thread through.

Reconfigured all the perl scripts to use bytes; rather than use strict; and also tried the change in UTF settings. I've ensured that I've reran zmconfig again aswell.

But still the error continues................... :( :( :(

any further thoughts?

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

Post by zoneminder »

In your posting of zm.conf you had ZM_DB_PASS as blank. I assumed you chopped that for privacy but is it actually empty? That may have something to do with it. If it is empty, is it supposed to be?

Phil
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

yep its was chopped for privacy.
I've also tried a dedicated user called zm with a password.
It all seems to connected to the db fine. I've also dropped the db and recreated it with the new user. But still the problem continues.

Its driving me nutts..agghhh but thanks for your continued time on the support.

As you can see we I run zmconfig again there are no errors. So I assume the db user and password are fine.

perl zmconfig.pl -noi
Loading config from 'zmconfig.txt'
Loading config from DB
Saving config to 'zmconfig.txt'
Saving config to DB
Generating 'src/zm_config_defines.h'
Processing 'zm.conf'
Processing 'src/zm_config.h'
Processing 'web/zm_config.php'
Processing 'scripts/zmdc.pl'
Processing 'scripts/zmwatch.pl'
Processing 'scripts/zmaudit.pl'
Processing 'scripts/zmfilter.pl'
Processing 'scripts/zmtrigger.pl'
Processing 'scripts/zmx10.pl'
Processing 'scripts/zmpkg.pl'
Processing 'scripts/zmupdate.pl'
Processing 'scripts/zmvideo.pl'
Processing 'scripts/zm'
Processing 'db/zmschema.sql'
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

went all the way back this time.
Rebuilt using the different zm account and completed a full compiilation process including the make and make install.

This time zm started OK. Not sure why the process was identical and I assume the make process has redistributed the perl scripts without use bytes; in them,

Anyway sorry to say I'm still not up and running yet. If I access the zm homepage which I've installed into the default server path as its the only thing i have at the mo I still receiveing a blank page.

Apache is defo up and seems to be serving index.php just not doing anything with it.
How should i go about diaging this one?
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

checked the apache error log and found the following;

[client 127.0.0.1] PHP Notice: import_request_variables(): No prefix specified - possible security hazard in /var/www/html/zm.php on line 21
[client 127.0.0.1] PHP Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/zm_db.php on line 21
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The first warning you can ignore, the second error implies that you don't have the php mysql modules installed. You should be able to just use yum to install it, it's called php-mysql not surprisingly.

Phil
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

Umm , yep sorry about that rather slack error. I thought I'd installed all the required PHP and mysql components. Anyway you were right. I can now get to the ZM console.

Guess its time to work out how to use it.

Phil, once again thanks for your support. Sorry to have bothered you with a newbie issues like this.

:D

Mark
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

Now for the next set of problems.... :shock:
Got into the console and defined my monitor and zone using /dev/video0 as you would expect.
But when I check the zone I see no image just the broken link.
I've also observed that the console wont change state from stopped to started.
I assume this indiicative of the overall problem and hence the broken image.

I ran through the checks in documentation and I'm confident that my cam is running under V4L ok. XAWTV works as does Gnomemeeting etc.

Found the following error in zmwatch.log could this be the cause???????????
Watchdog starting at 05/02/23 13:59:07
Watchdog pausing for 30 seconds
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't get shared memory id '2053971969': No such file or directory
Can't execute: at /usr/local/bin/zmwatch.pl line 120.
Watchdog starting at 05/02/23 16:54:18
Watchdog pausing for 30 seconds
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I think if you check /var/log/messages you should be able to see what the root cause might be.

Phil
Locked