Page 1 of 1

Shared memory problem / No picture is displayed

Posted: Wed Nov 16, 2005 12:06 am
by Antimon
Hi!

I've been trying to install and run ZoneMinder 1.21.4 on my gentoo machine. The webpage is displayed correctly and I can add monitors, but when I want to see the picture of it, no image is displayed. The symbol for corrupted images appears in the browser...

In the logfile the following two lines are repeated endlessly (about every 5 seconds):

Code: Select all

Can't get shared memory id '2053971970': No such file or directory
Can't get shared memory id '2053971971': No such file or directory
Sometimes the following log entries appear:

Code: Select all

==> /var/log/zoneminder/zmdc.log <==
Starting pending process, zmc -m 2
'zmc -m 2' started at 05/11/16 01:03:16
'zmc -m 2' starting at 05/11/16 01:03:16, pid = 951
'zmc -m 2' crashed at 05/11/16 01:03:17, exit status 255
I've been searching for these issues in this forum for a long time now, but I wasn't able to find and solve the problem :(

Any kind of help is appreciated!

By the way: I tried to monitor a webcam image for testing purposes...

Posted: Wed Nov 16, 2005 12:07 am
by zoneminder
Have you been through the troubleshooting procedre in the readme and listed at the top of this forum? Anything in /var/log/messages?

Phil

Posted: Wed Nov 16, 2005 12:22 am
by Antimon
Yes, i have read the Troubleshooting, the FAQ, ...

One problem is to add here: Sometimes this message appears in the logfile:

Code: Select all

zmu: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory
I tried to recompile zoneminder and some other libraries which possibly depend on mysql - unsuccessfully...

I'm using MySQL 5 - but I didn't find any problems caused by this version so I think it must be another kind of problem. Which process creates the libmysqlclient and what is it good for?

Code: Select all

Nov 16 01:07:56 thunder zmu[2347]: WAR [Attempt to fetch string value for ZM_WEB_L_REFRESH_CYCLE, actual type is integer]
This log entry appears sometimes, too, but I don't think this causes the problems...

Posted: Wed Nov 16, 2005 11:56 pm
by Antimon
Okay - after reinstalling zoneminder almost everything seems to work - almost...

I can't view the live video or still images - the apache error log says:

Code: Select all

 Premature end of script headers: zms, referer: [...]/zoneminder/index.php?view=watchfeed&mode=still&mid=1&scale=100&control=
I'm using Apache 2.0.54-r31 with suexec2

When executing the zms command manually, it returns following code:

Code: Select all

./zms
Server: ZoneMinder Video Server/1.21.4
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Wed, 16 Nov 2005 23:55:15 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Is it correct that there is no "Content-Type: text/html" in the first line?

Any suggestions?

Posted: Thu Nov 17, 2005 12:51 am
by rob
a couples of things what do you have for
/proc/sys/kernel/shmmax and shmall these are your shared memory
values

have you unchecked or set false ZM_STRICT_VIDEO_CONFIG

on debian with a clean apache2 it is easier to move zms to /usr/lib/cgi-bin/
and set the permissions -- not finding zms will give the premature error