zmwatch: ERR [Can't get shared memory id '7a6d000a',

Forum for questions and support relating to the 1.24.x releases only.
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

zmwatch: ERR [Can't get shared memory id '7a6d000a',

Post by ttkh »

Hi all,

I'm currently running opensuse 11

Linux 2.6.27.29-0.1-default #1 SMP 2009-08-15 17:53:59 +0200 x86_64 x86_64 x86_64 GNU/Linux

I've installed ZoneMinder-1.24.2 via rpm package (tried to compile the code but got errors)

After installed the software. I got the following errors in my /var/log/messages

Oct 9 11:56:31 bpl-tim-1 zmwatch[30059]: ERR [Can't get shared memory id '7a6d000c', 12: No such file or directory]

Per instruction online to (added/change) the ZM_SHM_KEY (in /etc/zm.conf) and i did change the value but the errors still exist.

I also got this errors

Oct 9 10:39:53 zma_m1[29970]: WAR [Waiting for capture daemon]
Oct 9 10:39:53 bpl-tim-1 sudo: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmc -m 7
Oct 9 10:39:53 zmc_m5[30002]: INF [Starting Capture]
Oct 9 10:39:53 zmc_m5[30002]: ERR [Invalid response status 400: Bad Request]
Oct 9 10:39:53 zmc_m5[30002]: ERR [Unable to get response]
Oct 9 10:39:53 zmc_m5[30002]: ERR [Failed to capture image from monitor 5 (0/1)]
Oct 9 10:39:53 zmdc[29943]: ERR ['zmc -m 5' exited abnormally, exit status 255]
Oct 9 10:39:53 zmc_m6[30004]: INF [Starting Capture]
Oct 9 10:39:53 zmc_m6[30004]: ERR [Invalid response status 400: Bad Request]
Oct 9 10:39:53 zmc_m6[30004]: ERR [Unable to get response]
Oct 9 10:39:53 zmc_m6[30004]: ERR [Failed to capture image from monitor 6 (0/1)]


Please help.

Thanks,

Quan
User avatar
kp4djt
Posts: 221
Joined: Mon Jun 18, 2007 1:53 am
Location: Tampa, FL

Post by kp4djt »

What is your value of shmmax set at? You can view it in the following location:
cat /proc/sys/kernel/shmmax
Also look at shmall
I have 6 IP cams on a machine both values are set to
[root@zmhost01 /]# cat /proc/sys/kernel/shmmax
134217728
[root@zmhost01 /]# cat /proc/sys/kernel/shmall
134217728

Here are my settings in /etc/sysctl.conf
# Raise shared memory limits for zoneminder
kernel.shmall = 134217728
kernel.shmmax = 134217728

When I set up a system if I forget to check these values and see that error type, the first thing I check is shmmax and shmall.
Chuck Hast -- KP4DJT --
Web site www.wchast.com
ZM demo www.wchast.com/zm
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

That is the same setting i have in the /etc/sysctl.conf file

#ZoneMinder
kernel.shmall = 134217728
kernel.shmmax = 134217728

/proc/sys/kernelshmmax shmall also have the same value.

Thanks,

Q
kp4djt wrote:What is your value of shmmax set at? You can view it in the following location:
cat /proc/sys/kernel/shmmax
Also look at shmall
I have 6 IP cams on a machine both values are set to
[root@zmhost01 /]# cat /proc/sys/kernel/shmmax
134217728
[root@zmhost01 /]# cat /proc/sys/kernel/shmall
134217728

Here are my settings in /etc/sysctl.conf
# Raise shared memory limits for zoneminder
kernel.shmall = 134217728
kernel.shmmax = 134217728

When I set up a system if I forget to check these values and see that error type, the first thing I check is shmmax and shmall.
CoYoTe
Posts: 33
Joined: Sat Jul 18, 2009 12:56 pm
Location: Buenos Aires, Argentina

Post by CoYoTe »

try in console running

/usr/bin/zmdc.pl start zmc -m 7

and copy/paste the error here.

in this:
zmc_m5[30002]: ERR [Invalid response status 400: Bad Request]

looks like you are using a cam with web interfase?

Describe your hard so we maybe can find the error.
Alejandro
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

I ran and i got this.

%[root@bpl-tim-1]%[19]%[/srv/www]# /usr/bin/zmdc.pl start zmc -m 7
Subroutine ZoneMinder::Config::ZM_SHM_KEY redefined at /usr/lib/perl5/vendor_perl/5.10.0/ZoneMinder/Config.pm line 95.
'zmc -m 7' starting at 09/10/15 12:04:24, pid = 24934
%[root@bpl-tim-1]%[20]%[/srv/www]#

I also get a lot of this in the zmwatch error log

10/15/09 12:10:31.749252 zmwatch[24715].ERR [Can't get shared memory id '7a6d000d', 13: No such file or directory]

CoYoTe wrote:try in console running

/usr/bin/zmdc.pl start zmc -m 7

and copy/paste the error here.

in this:
zmc_m5[30002]: ERR [Invalid response status 400: Bad Request]

looks like you are using a cam with web interfase?

Describe your hard so we maybe can find the error.
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

I've recompiled ZoneMinder and have added Axis IP camera but i get the following errors

Oct 16 10:02:53 bpl-tim-1 zmc_m5[11709]: INF [Starting Capture]
Oct 16 10:02:53 bpl-tim-1 zmc_m5[11709]: ERR [Invalid response status 400: Bad Request]
Oct 16 10:02:53 bpl-tim-1 zmc_m5[11709]: ERR [Unable to get response]
Oct 16 10:02:53 bpl-tim-1 zmc_m5[11709]: ERR [Failed to capture image from monitor 5 (0/1)]
Oct 16 10:02:53 bpl-tim-1 zmc_m6[11712]: INF [Starting Capture]
Oct 16 10:02:53 bpl-tim-1 zmc_m6[11712]: ERR [Invalid response status 400: Bad Request]
Oct 16 10:02:53 bpl-tim-1 zmc_m6[11712]: ERR [Unable to get response]
Oct 16 10:02:53 bpl-tim-1 zmc_m6[11712]: ERR [Failed to capture image from monitor 6 (0/1)]
Oct 16 10:02:53 bpl-tim-1 zmdc[11060]: ERR ['zmc -m 5' exited abnormally, exit status 255]
Oct 16 10:02:53 bpl-tim-1 zmdc[11060]: ERR ['zmc -m 6' exited abnormally, exit status 255]
Oct 16 10:02:53 bpl-tim-1 zmc_m2[11710]: ERR [Invalid response status 400: ERROR]
Oct 16 10:02:53 bpl-tim-1 zmc_m2[11710]: ERR [Unable to get response]
Oct 16 10:02:53 bpl-tim-1 zmc_m2[11710]: ERR [Failed to capture image from monitor 2 (0/1)]
Oct 16 10:02:53 bpl-tim-1 zmdc[11060]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Oct 16 10:04:22 bpl-tim-1 zmc_m1[11696]: ERR [Can't connect to remote camera: Connection timed out]
Oct 16 10:04:22 bpl-tim-1 zmc_m1[11696]: ERR [Unable to connect to camera]
Oct 16 10:04:22 bpl-tim-1 zmc_m1[11696]: ERR [Failed to pre-capture monitor 1 (0/1)]
Oct 16 10:04:22 bpl-tim-1 zmdc[11060]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Oct 16 10:07:55 bpl-tim-1 zms[11741]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
Oct 16 10:07:55 bpl-tim-1 zms[11741]: WAR [Unable to store frame as shared memory invalid]
Oct 16 10:08:06 bpl-tim-1 zms[11741]: ERR [Terminating, last frame sent time 10.008634 secs more than maximum of 10.000000]



Any help?

thanks,

Quan
curtishall
Posts: 440
Joined: Sat Sep 25, 2004 12:45 am
Location: Fulton, MO

Post by curtishall »

Are you using MJPEG or RTSP?
--
Curtis Hall
Bluecherry
www.bluecherrydvr.com
store.bluecherry.net
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

What exactly should i be using. I know it is Axis IP camera but that is about it?

Q
TechGuy
Posts: 47
Joined: Sun Oct 18, 2009 8:16 pm

Re: zmwatch: ERR [Can't get shared memory id '7a6d000a',

Post by TechGuy »

try setting:
kernel.shmmax = 2054029313

in /etc/sysctl.conf (reboot required) or edit it /proc/sys/kernel.

I think you will need the larger value on large machines (greater than 1 GB of memory).
KeithB
Posts: 77
Joined: Thu Jun 07, 2007 4:23 pm
Location: uk

Post by KeithB »

shmall should be the total ram available to linux divided by 4096. E.G. if you want to allow it 3GB then shmall = 732422
shmmax = 180000000 works for me using an image buffer size of 80.
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

I got the share memory issued fixed by recompiling ZM but now i got another issue

[Tue Oct 20 10:10:57 2009] [error] [client 10.12.96.43] array (\n 0 => \n array (\n 'file' => '/srv/www/htdocs/zm/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-359444s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/srv/www/htdocs/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/srv/www/htdocs/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://bpl-tim-1/zm/index.php?view=watch&mid=2
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

Another errors that i encountered.

Oct 20 12:09:13 bpl-tim-1 zmc_m4[14403]: INF [Starting Capture]
Oct 20 12:09:13 bpl-tim-1 zmc_m5[14398]: ERR [Invalid response status 400: Bad Request]
Oct 20 12:09:13 bpl-tim-1 zmc_m5[14398]: ERR [Unable to get response]
Oct 20 12:09:13 bpl-tim-1 zmc_m5[14398]: ERR [Failed to capture image from monitor 5 (0/1)]
Oct 20 12:09:13 bpl-tim-1 zmc_m4[14403]: ERR [Invalid response status 400: Bad Request]
Oct 20 12:09:13 bpl-tim-1 zmc_m4[14403]: ERR [Unable to get response]
Oct 20 12:09:13 bpl-tim-1 zmc_m4[14403]: ERR [Failed to capture image from monitor 4 (0/1)]
Oct 20 12:09:13 bpl-tim-1 zmdc[12694]: ERR ['zmc -m 4' exited abnormally, exit status 255]
Oct 20 12:09:13 bpl-tim-1 zmdc[12694]: ERR ['zmc -m 5' exited abnormally, exit status 255]
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

Oct 20 12:27:46 bpl-tim-1 zmc_m3[14830]: INF [Debug Level = 0, Debug Log = <none>]
Oct 20 12:27:46 bpl-tim-1 zmc_m3[14830]: INF [Starting Capture]
Oct 20 12:27:46 bpl-tim-1 zmc_m3[14830]: ERR [Invalid response status 400: Bad Request]
Oct 20 12:27:46 bpl-tim-1 zmc_m3[14830]: ERR [Unable to get response]
Oct 20 12:27:46 bpl-tim-1 zmc_m3[14830]: ERR [Failed to capture image from monitor 3 (0/1)]
Oct 20 12:27:46 bpl-tim-1 zmdc[14484]: ERR ['zmc -m 3' exited abnormally, exit status 255]
Oct 20 12:27:46 bpl-tim-1 zms[14826]: ERR [Terminating, last frame sent time 10.003459 secs more than maximum of 10.000000]
TechGuy
Posts: 47
Joined: Sun Oct 18, 2009 8:16 pm

Post by TechGuy »

ttkh wrote:I got the share memory issued fixed by recompiling ZM but now i got another issue

[Tue Oct 20 10:10:57 2009] [error] [client 10.12.96.43] array (\n 0 => \n array (\n 'file' => '/srv/www/htdocs/zm/ajax/stream.php',\n 'line' => 55,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-359444s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/srv/www/htdocs/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/srv/www/htdocs/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://bpl-tim-1/zm/index.php?view=watch&mid=2
Check your apache error_log file. I bet you will see an error that its try to run nph-zms or zms from /var/www/localhost/cgi-bin instead of /var/www/zoneminder/cgi-bin.
ttkh
Posts: 16
Joined: Tue Sep 29, 2009 1:09 pm

Post by ttkh »

I've got problems after problems.

%[root@bpl-tim-1]%[42]%[/tmp]# tail /tmp/zm_debug.log.31064
10/21/09 10:18:46.106381 zma_m9[-1].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /tmp/zm_debug.log.31064]
10/21/09 10:18:46.106796 zma_m9[-1].DB1-zm_monitor.cpp/2262 [Got 1 monitors]
10/21/09 10:18:46.107278 zma_m9[-1].DB1-zm_monitor.cpp/338 [monitor purpose=2]
10/21/09 10:18:46.107291 zma_m9[-1].DB1-zm_monitor.cpp/345 [mem.size=10139124]
10/21/09 10:18:46.107313 zma_m9[-1].ERR-zm_monitor.cpp/362 [Got unexpected memory map file size 9217524, expected 10139124]
10/21/09 10:18:46.107351 zma_m9[-1].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/.zm.mmap.9 (10139124 bytes) to locked memory, trying unlocked]
10/21/09 10:18:46.107380 zma_m9[-1].ERR-zm_monitor.cpp/432 [Shared data not initialised by capture daemon]
%[root@bpl-tim-1]%[43]%[/tmp]#


Can anyone help? It's got the image but it's appear that mocord is trying to capture the image but got errered out.
Locked