Page 1 of 1

black camera - Foscam + ubuntu

Posted: Tue Aug 16, 2011 10:37 am
by fabio1
Hello,
my problem is that on the camera i created, i cannot see any image, just black.
I have a foscam FI8908W camera configured as follow: http://www.zoneminder.com/wiki/index.php/Foscam

System is linux Ubuntu Desktop 10.04 32 bits

Zoneminder installation made via synaptic, following this: http://www.zoneminder.com/wiki/index.ph ... 29_Desktop

More infos to debug

when i open the window in which the camera picture should appear, apache log says:

[Tue Aug 16 12:18:12 2011] [error] [client x.x.x.x] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 828, referer: h_ttp://myhost/zm/index.php

zoneminder log shows:
08/16/2011 12:33:48.433186 zmwatch[2276].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]

and

08/16/2011 12:25:00.067026 zmdc[2245].INF ['zmc -m 1' starting at 11/08/16 12:25:00, pid = 2753]
08/16/2011 12:25:00.279241 zmdc[2245].ERR ['zmc -m 1' exited abnormally, exit status 255]



What can i do to solve the issue?

Thanks,

fabio

Re: black camera - Foscam + ubuntu

Posted: Wed Aug 17, 2011 6:03 am
by PacoLM
fabio1 wrote: when i open the window in which the camera picture should appear, apache log says:
[Tue Aug 16 12:18:12 2011] [error] [client x.x.x.x] PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 828, referer: h_ttp://myhost/zm/index.php
Is not an error, it's a warning, don't care about it.
fabio1 wrote: zoneminder log shows:
08/16/2011 12:33:48.433186 zmwatch[2276].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]

and

08/16/2011 12:25:00.067026 zmdc[2245].INF ['zmc -m 1' starting at 11/08/16 12:25:00, pid = 2753]
08/16/2011 12:25:00.279241 zmdc[2245].ERR ['zmc -m 1' exited abnormally, exit status 255]
This is a well known error caused by a incorrect setting on the shared memory, read this post, run the script and edit your /etc/sysctl.conf file with the values got from the script, then reboot your system and should work -> http://www.zoneminder.com/forums/viewto ... ipt#p69568

Hope it helps,

PacoLM

Re: black camera - Foscam + ubuntu

Posted: Wed Aug 17, 2011 6:22 pm
by fabio1
Hello,

first of all thanks for helping. But btw is still not working. I ran that script, and now i get, if i run it again:

root@krusty:/etc/zm# ./zmmemory.sh
--- Checking memory setting...
-- Total memory = 4220121088 B = 4024 MB
-- Page size = 4096 B
-- Current kernel.shmmax = 3798108979 B = 3622 MB
-- Current kernel.shmall = 1030303 pages
-- Recommended shm values already set
--- Done.
root@krusty:/etc/zm#


so on this side should be ok.
Too bad that now even the interface is not working anymore. and the error message is still there.
Do you maybe have some more ideas?

tnx,

fabio

Re: black camera - Foscam + ubuntu

Posted: Wed Aug 17, 2011 6:31 pm
by fabio1
happy update:

now is working!!!

firefox's tab was just stuck, so I used crome and i changed settings to "modect" instead of monitor and higher resolution and it worked.

curious thing: as soon as i opened it with chome, the error stooped appearing from the logs...

Again: thank you!!

Re: black camera - Foscam + ubuntu

Posted: Thu Aug 18, 2011 6:54 am
by PacoLM
Congratulations!