The old shared memory error

Forum for questions and support relating to the 1.24.x releases only.
Locked
alleninmt
Posts: 7
Joined: Sat Jun 04, 2011 7:35 pm

The old shared memory error

Post by alleninmt »

New to zone minder. I have it installed on Ubuntu 10.04.2 LTS, kernel 2.6.32-32.

I'm getting the black screen and these errors in my logs:

Code: Select all

zma_m2[22871]: ERR [Shared data not initialised by capture daemon]
zmdc[22798]: ERR ['zma -m 2' exited abnormally, exit status 255]
zmc_m2[22872]: INF [Starting Capture]
zmc_m2[22872]: ERR [Invalid response status 401: Unauthorized]
zmc_m2[22872]: ERR [Unable to get response]
zmc_m2[22872]: ERR [Failed to capture image from monitor 2 (0/1)]
zmdc[22798]: ERR ['zmc -m 2' exited abnormally, exit status 255]
zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
zmwatch[22830]: last message repeated 5 times
zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
zmdc[22798]: INF [Starting pending process, zma -m 2]
zmdc[22798]: INF ['zma -m 2' starting at 11/06/04 13:32:28, pid = 22909]
zmdc[22798]: INF [Starting pending process, zmc -m 2]
zmdc[22798]: INF ['zmc -m 2' starting at 11/06/04 13:32:28, pid = 22910]
zmdc[22910]: INF ['zmc -m 2' started at 11/06/04 13:32:28]
zmdc[22909]: INF ['zma -m 2' started at 11/06/04 13:32:28]
zmc_m2[22910]: INF [Debug Level = 0, Debug Log = <none>]
zma_m2[22909]: INF [Debug Level = 0, Debug Log = <none>]
zma_m2[22909]: ERR [Shared data not initialised by capture daemon]
zmdc[22798]: ERR ['zma -m 2' exited abnormally, exit status 255]
zmc_m2[22910]: INF [Starting Capture]
zmc_m2[22910]: ERR [Invalid response status 401: Unauthorized]
zmc_m2[22910]: ERR [Unable to get response]
zmc_m2[22910]: ERR [Failed to capture image from monitor 2 (0/1)]
zmdc[22798]: ERR ['zmc -m 2' exited abnormally, exit status 255]
zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
zmwatch[22830]: ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
I've found a lot of posts here and on other forums about setting the shared memory, I've done that with a variety of different memory settings.

/etc/sysctl.conf currently reads:

Code: Select all

kernel.shmall = 167772160
kernel.shmmax = 335544320
output of ipcs -l:

Code: Select all

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 327680
max total shared memory (kbytes) = 671088640
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 1705
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

Another forum suggested adding these lines to /usr/bin/zmdc.pl:

$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l1compat.so';
$ENV{LD_PRELOAD} = '/usr/lib/libv4l/v4l2convert.so';

Still no good.

I've added the www-data user to the video group as suggested on one forum but no luck.

I'm completely stuck now. Any help is greatly appreciated.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: The old shared memory error

Post by cordel »

alleninmt wrote:

Code: Select all

zmc_m2[22872]: INF [Starting Capture]
zmc_m2[22872]: ERR [Invalid response status 401: Unauthorized]
Basically says that the camera is expecting credentials and they either are not configured or are configured incorrectly. The rest of the errors are expected as they are collateral from the camera refusing to return images.
alleninmt
Posts: 7
Joined: Sat Jun 04, 2011 7:35 pm

Re: The old shared memory error [SOLVED]

Post by alleninmt »

Ah crap, that was it. I had the = sign missing in the path for the credentials.

Thanks!
Locked