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

Post by CTR_Mint »

to be honest i can't locate anything within /var/log/messages related to zm.
However the following entries are being logged to zmdc.log, which cant be good.

Server starting at 05/02/24 11:22:03
'zmc -d 0' started at 05/02/24 11:22:07
'zmc -d 0' starting at 05/02/24 11:22:07, pid = 16569
'zmc -d 0' crashed at 05/02/24 11:22:07, exit status 255
'zmc -d 0' started at 05/02/24 11:22:07
'zmc -d 0' starting at 05/02/24 11:22:07, pid = 16574
'zma -m 1' started at 05/02/24 11:22:07
'zma -m 1' starting at 05/02/24 11:22:07, pid = 16576
'zma -m 1' crashed at 05/02/24 11:22:07, exit status 255
'zma -m 1' started at 05/02/24 11:22:07
'zma -m 1' starting at 05/02/24 11:22:07, pid = 16579
'zma -m 1' crashed at 05/02/24 11:22:08, exit status 255
'zmc -d 0' crashed at 05/02/24 11:22:08, exit status 255
'zmfilter.pl' started at 05/02/24 11:22:08
'zmfilter.pl' starting at 05/02/24 11:22:08, pid = 16583
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 101.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 101.
'zmfilter.pl ' crashed at 05/02/24 11:22:10, exit status 2
'zmfilter.pl' started at 05/02/24 11:22:10
'zmfilter.pl' starting at 05/02/24 11:22:10, pid = 16588
'zmaudit.pl -d 900 -y' started at 05/02/24 11:22:10
'zmaudit.pl -d 900 -y' starting at 05/02/24 11:22:10, pid = 16589
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You might also want to check to see if you have SELinux enabled. The default policies will not allow access to zm to run. You need to have it disabled. If you check /var/log/mesages and see a line that begins it's detail AVR: that's an SELinux warning that it is stopping a service. I've started work on a policy that I need to finnish and will post it on the forum as soon as it's done.
Cheers,
Cordel
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

thanks for that. Yep SELinux is enabled.

I've previously had some fun with SELinux and the DRI component on my NViidia accelerated drivers.

Would you recommend totally disabling it then? Seems to cause more trouble than its worth. But to be honest at present I've little understanding off exactly how it works so I've left well alone.

Whats the best way to shut it down?

Mark

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

Post by zoneminder »

Your distro might not feed the errors to the 'messages' file. Grep for 'ERR' in all files in /var/log as they may be in something else.

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

Post by CTR_Mint »

Yep disabling SELinux has certainly improved things. Thanks for that Cordel.
ZM is now able to run according to the console. Hope my system is not too insecure because of it! Will need to start to understand SELinux more I guess :oops:

Phil. You were also right the grep'ing ERR on the rest of the files in /var/log certainly indicated some other errors. I still cant get any images from the zone. But I am receiving the following errors.

Feb 24 15:34:44 gway zmc_d0[6897]: ERR [Failed to set picture attributes: Invalid argument]
Feb 24 15:34:51 gway zmu[6901]: ERR [Shared memory not initialised by capture daemon]

I need to work these through

Regards
Mark
peterfbrown
Posts: 12
Joined: Thu Feb 24, 2005 3:20 am
Location: Chesterton, IN

FC3 and Zoneminder

Post by peterfbrown »

I am having similiar problem, with ZM and FC3.

Sorry if you get two post, I tried last night but didn't seem to take.

I get the concole to come up but always says Stopped and does not start. I can't see any live images in the monitor or montage screens.

I had ZM 18.? working under RHEL 3. Disc died so upgraded to

FC3, Apache (default, whatever is in FC3), MySQL-4.1.9, PhP-5.0.3. Installed other tools as needed (Perl MIME::Entity, ffmgeg, cambozola, libpcre.a). Axis 2100 camera. I can get images/streams with cambozola or the going to the camera directly. Using Firefox. php-mysql-web seemed to work fine, using DB example from the php-mysql web development book.

I will attach some clippings from logs at end of message.

I get errors about memory allocation. From my last install found the FAQ item about change kernel, with sysctl. Made the changes but still getting the messages.

I get some message about can't connect to camera, as best as I can tell I am using the right string for getting the data out of the camera (works with cambozola).

I have a basic understanding of httpd, mysql and php. I know how to read log file and have used them to find things that were missing.

Questions.

1. How do I turn on more logging within my existing ZM? Might help me track down problems.
2. What are the kind of things do I need to look at with SELinux? I have tried disabling the firewall, but does not seem to change anything.
3. How do I use zmu and zmc from the command line to test image capture? I am using Network camera.
4. In doing the install I found myself re running config and zmconfig.pl, make amd make install. Seems some things have become corrupted (web_path was set to yes, not /var/www/html/zm), how do I clean everything out short of deleting it all and re-installing from scratch.

Finally, complements to Phil and all of those who help put ZM together, quite an impressive piece of software.

messages:Feb 23 21:12:16 thor zms[5318]: ERR [Can't shmget, probably not enough shared memory space free: Permission denied]
messages:Feb 24 09:08:16 thor zms[6183]: ERR [Shared memory not initialised by capture daemon]
Feb 23 18:48:17 thor zmc_m1[3999]: ERR [Can't connect to remote camera: Connection refused]

zmdc.log----------------------------------------------
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/02/23 20:26:10
'zmc -m 2' starting at 05/02/23 20:26:10, pid = 4697
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.

'zmc -m 2' died at 05/02/23 20:26:10, signal 6
Starting pending process, zmc -m 1
'zmc -m 1' started at 05/02/23 20:28:20
'zmc -m 1' starting at 05/02/23 20:28:20, pid = 4714
'zmc -m 1' died at 05/02/23 20:28:20, signal 10
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/02/23 20:36:10
'zmc -m 2' starting at 05/02/23 20:36:10, pid = 4813
'zmc -m 2' crashed at 05/02/23 20:36:10, exit status 255
Starting pending process, zmc -m 1
'zmc -m 1' started at 05/02/23 20:38:20
'zmc -m 1' starting at 05/02/23 20:38:20, pid = 4818
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

Peter Im far from knowlegable about these things.. Thats why I'm relying heavily on the support from the forum.

But try modifying the /etc/selinux/config
and change the value for SELinux to disabled. I know it prevents SELinux from running, but it does improve things no end.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

A couple of error checks
Feb 24 15:34:44 gway zmc_d0[6897]: ERR [Failed to set picture attributes: Invalid argument]
This is listed in the FAQ so hopefully that will help you crack that one
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
Ordinarily this means that you have set your monitor to say 320x240 but the image you are getting from your cam is 352x288 for example. I suppose it may also be security related if you are getting nothing but then you usually just see connection failed.

Phil
peterfbrown
Posts: 12
Joined: Thu Feb 24, 2005 3:20 am
Location: Chesterton, IN

FC3 and Zoneminder

Post by peterfbrown »

Seems I spoke to soon :shock:

I disabled SELinux and re-booted. Now I get the console, and can start/stop from the console window. I also get video sort-of.

If I create a new monitor, and select it I get the video. As soon as I change it, or simply open the zones menu, I loose the monitor. So I still have config to work out.

I am still getting the "can't get shared memory id, in zmwatch.log, what is this? how do I fix this?

In /var/log/message I am getting a number of messages from zmc, one says
INF [Debug Level = 0, Debug Log = <none>]

will changing the debug level give me more info? and where do I change this?

Since I am not getting more lor/error messages I see I am going to have to keep tracking this down. I remember from my previous running of ZM, that the memory issue was one of the problems with not seeing video. Once I changed that, I started getting video. Any suggestion and where to look for more info?

Thanks for the help.

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

Post by CTR_Mint »

I too am suffering from the error message regarding the picture attibute.
[Failed to set picture attibutes: Invalid argument]

However I've followed the instructions form the FAQ and its not worked.. Thro the console I've set ZM_STRICT_VIDEO_CONFIG and restart but the error persists. I've also checked the the camera using the command line 'zmc --device 0' -q -v so as to ensure the dimensions are correct.

I was also getting the shared memory error, again followed the redhat instructions to increase that to 128MB. However it now simply reports [Shared memory not initialised by capture daemon]

:? :? :?

Am I completely stupid .... or is FC3 just being incredibly difficult?
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

err sorry ignore my last post.. think I'm loosing my mind.

Double checked I set the value the wrong with the check box.. Its now uncheck in the console implying the correct use of ZM_STRICT_VIDEO_CONFIG to avoid the picture attrib setting.

The source now goes green in the console. But the /var/;log/messages is going nuts!

it filling with thousands of entries which just say

ERR [Capture failure from frame 0: Invalid argument]
ERR [Sync failure for frame 0: Invalid argument]
Need to stop the system to prevent it filling the log space./ :evil:
aaaagghhhhhh

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

Post by cordel »

CRT,
Sorry I missed part of your zmdc.log (half asleep I think) the error
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
Could mean you need to install MIME::Entity perl module.
Also it would be good to note wether you are building from source or one of the RPM's (there are thee one for Mandrake by Ross, one for FC3 and MySQL 4.x by Oskin, and one for FC3 made to work with standard Mysql suplied on the FC3 CD's packaged by me).
Cordel
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

I'm attempting to build from source, albeit unsuccessfully
:oops:

MIME::Entity perl module. Umm thats a new one. Where is the best place to find that for my FC3 box and also will I need to recomplile ZM from scratch if missing?
CTR_Mint
Posts: 23
Joined: Mon Feb 21, 2005 11:07 pm

Post by CTR_Mint »

Sorted the Entity.pm issue from the zmdc.log. Installed the relevant file and deps.

Upon restart ZM the zmdc.log just reports the pids stoppong and starting as probably expected.

Still no images tho and its still going nutts on /var/log/messages with the following entries

ERR [Capture failure from frame 0: Invalid argument]
ERR [Sync failure for frame 0: Invalid argument]

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

Post by cordel »

At this point it should just be a configuration issue. Are you using a capture card, webcam, and what brand and model?
Cordel
Locked