Page 1 of 1

Another shmget problem

Posted: Thu Jan 12, 2006 11:07 am
by sdwood
I have a problem seeing images in the browser - stills or streamed. Apart from the image display the system seems to be working:

It captures motion events and I can see stills for these (but not streamed). I can see a current image on the zone definition.

When I try to look at the image (i.e. click on the name entry on the main page) I get this in the log:

Jan 12 10:56:30 [zms] WAR [Attempt to fetch boolean value for ZM_MESSAGE_ADDRESS
, actual type is string]
Jan 12 10:56:30 [zms] WAR [Attempt to fetch boolean value for ZM_MESSAGE_TEXT, a
ctual type is text]
Jan 12 10:56:30 [zms] WAR [Attempt to fetch boolean value for ZM_JPEG_FILE_QUALI
TY, actual type is integer]
Jan 12 10:56:30 [zms] WAR [Attempt to fetch integer value for ZM_EMAIL_ADDRESS,
actual type is string]
Jan 12 10:56:30 [zms] WAR [Attempt to fetch integer value for ZM_OPT_X10, actual
type is boolean]
Jan 12 10:56:30 [zms] ERR [Can't shmget, probably not enough shared memory space
free: Invalid argument]

the shared memory seems to exist (I can see it in ipcs and zma is working fine). All log files are owned by apache and all process are running as apache. Shared memory is owned by apache perm=700 (all log files are now perm 777)

I am using firefox 1.5 (if that makes any difference - I suspect not), and ZM 1.21.4 on gentoo 2.6.14-r5 with a local creative web cam.

Any pointer greatly appreciated

Thanks

Simon

Posted: Thu Jan 12, 2006 4:15 pm
by zoneminder
The first bunch of errors normally occur if the configuration has not been loaded into your DB. Try running zmconfig.pl -noi again.

The second one may be a consequence of those but if not perhaps you can post the key settings of your monitor (zmu -q -v -m <id>).

Posted: Thu Jan 12, 2006 4:25 pm
by sdwood
Re ran perl zmconfig.pl -noi
restarted from the web front end, and still getting exactly the same in the log file.

Output from zmu (zmu -q -v -m 1):
Monitor 1(Frontroom)
Id : 1
Name : Frontroom
Type : Local
Device : /dev/video0
Channel : 0
Format : 0
Width : 320
Height : 240
Palette : 4
Colours : 3
Event Prefix : Event-
Label Format : %%s - %y/%m/%d %H:%M:%S
Label Coord : 0,0
Image Buffer Count : 20
Warmup Count : 25
Pre Event Count : 10
Post Event Count : 10
Alarm Frame Count : 1
Section Length : 600
Maximum FPS : 10.00
Reference Blend %ge : 10
Track Motion : 0
Function: 2 - Monitor
Zones : 1
Id : 1
Label : All
Type: 1 - Active
Limits : 0,0 - 319,239
Alarm RGB : ff0000
Check Method: 3 - Blobs
Min Pixel Threshold : 25
Max Pixel Threshold : 0
Min Alarm Pixels : 2304
Max Alarm Pixels : 57600
Filter Box : 3,3
Min Filter Pixels : 2304
Max Filter Pixels : 57600
Min Blob Pixels : 1536
Max Blob Pixels : 0
Min Blobs : 1
Max Blobs : 0

One note - when I manually ran zmschema.sql against the empty database I got an error about the muber of values for columns on the insert of the default admin, admin password - sure enought in my sql file there are not enough lines - could that have caused a problem by not running any sql after that point ?

Posted: Thu Jan 12, 2006 4:51 pm
by zoneminder
Is it possible that the zms you have is out of step with the rest of the system? It looks like that is what is having the problem.

Posted: Thu Jan 12, 2006 5:26 pm
by sdwood
Ahhh,

Yes it is - I had an older copy from a long time ago and incorrectly specified the cgi-bin path meaning I got left with the old one !!! Always user error ;-)

Thanks for your help

Simon