Befuddled... It is NOT SHMMAX/SHMALL

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
kp4djt
Posts: 224
Joined: Mon Jun 18, 2007 1:53 am
Location: Tampa, FL

Befuddled... It is NOT SHMMAX/SHMALL

Post by kp4djt »

Folks
I have fiddled with those two variables based on I think every bit of postings that I can see on the list. Here is the problem.

I am running Ross's LARCH CD with ver 1.24.2.1 (that is what is says somewhere) installed on a hard disk. The first time I brought it up, it complained about not enough shared memory, Ahh, me thinks, and I go in and doctor shmmax, that got me images, so I added more and more cams. I had 4 DCS-910's and a DCS-920 running at 640X480 just fine. I let the thing run overnight, it got powered down and up, changed things around, and every time I restarted all of the cameras came up JUST fine.

So I shut the whole thing down and gathered all of it into it's case, and fired it back up again. Now if I try to run more than 3 cameras I get a error which I will give below. Here is the machine description
2.8Ghz dual core intel
320G HD.
2G of ram

This is the LARCH LiveCD.

Here pieces of the error log, on more investigation it appears that something is crashing or causing a segmentation fault, it also takes the network port off line:
Oct 1 16:33:44 zmhost zmc_m1[3476]: INF [Starting Capture]
Oct 1 16:35:13 zmhost kernel: r8169: eth0: link up
Oct 1 16:35:14 zmhost zmc_m1[3476]: INF [Got signal 11 (Segmentation fault), crashing]
Oct 1 16:35:14 zmhost zmc_m1[3476]: INF [Backtrace complete, please execute the following command for more information]
Oct 1 16:35:14 zmhost zmc_m1[3476]: INF [addr2line -e /usr/lib/zm/bin/zmc 0x807af1c 0x807af1c 0x807b61f 0x807debd 0x806f0d4 0x804d2a4 0xb6ddca36 0x804cb11]
Oct 1 16:36:34 zmhost zmdc[2941]: INF [Starting pending process, zmc -m 1]
Oct 1 16:36:34 zmhost zmdc[2941]: INF ['zmc -m 1' starting at 09/10/01 16:36:34, pid = 3482]
Oct 1 16:36:34 zmhost zmdc[3482]: INF ['zmc -m 1' started at 09/10/01 16:36:34]
Oct 1 16:36:34 zmhost zmc_m1[3482]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:36:34 zmhost zmc_m1[3482]: INF [Starting Capture]


Here is another piece, I have never seen this in the logs of the 1.22 and 1.23 versions... This happens when I open a view on a camera. I thought it was related to the number of cameras running, but this was with just one:
Oct 1 16:41:13 zmhost zms[3579]: WAR [Shared data not initialised by capture daemon, some query functions may not be availableor produce invalid results]
Oct 1 16:41:13 zmhost zms[3582]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:41:13 zmhost zms[3580]: INF [Authenticated user 'admin']
Oct 1 16:41:13 zmhost zms[3582]: INF [Authenticated user 'admin']
Oct 1 16:41:30 zmhost httpd: socket_sendto( /var/lib/zm/socks/zms-796093s.sock ) failed: No such file or directory
Oct 1 16:41:30 zmhost httpd: array (
Oct 1 16:41:30 zmhost 0: =>
Oct 1 16:41:30 zmhost array: (
Oct 1 16:41:30 zmhost 'file': => '/var/lib/zm/www/ajax/stream.php',
Oct 1 16:41:30 zmhost 'line': => 55,
Oct 1 16:41:30 zmhost 'function': => 'ajaxError',
Oct 1 16:41:30 zmhost 'args': =>
Oct 1 16:41:30 zmhost array: (
Oct 1 16:41:30 zmhost 0: => 'socket_sendto( /var/lib/zm/socks/zms-796093s.sock ) failed: No such file or directory',
Oct 1 16:41:30 zmhost ),:
Oct 1 16:41:30 zmhost ),:
Oct 1 16:41:30 zmhost 1: =>
Oct 1 16:41:30 zmhost array: (
Oct 1 16:41:30 zmhost 'file': => '/var/lib/zm/www/index.php',
Oct 1 16:41:30 zmhost 'line': => 116,
Oct 1 16:41:30 zmhost 'args': =>
Oct 1 16:41:30 zmhost array: (
Oct 1 16:41:30 zmhost 0: => '/var/lib/zm/www/ajax/stream.php',
Oct 1 16:41:30 zmhost ),:
Oct 1 16:41:30 zmhost 'function': => 'require_once',
Oct 1 16:41:30 zmhost ),:
Oct 1 16:41:30 zmhost ):
Oct 1 16:41:45 zmhost httpd: socket_sendto( /var/lib/zm/socks/zms-123098s.sock ) failed: No such file or directory
Oct 1 16:41:45 zmhost httpd: array (
Oct 1 16:41:45 zmhost 0: =>
Oct 1 16:41:45 zmhost array: (
Oct 1 16:41:45 zmhost 'file': => '/var/lib/zm/www/ajax/stream.php',
Oct 1 16:41:45 zmhost 'line': => 55,
Oct 1 16:41:45 zmhost 'function': => 'ajaxError',
Oct 1 16:41:45 zmhost 'args': =>
Oct 1 16:41:45 zmhost array: (
Oct 1 16:41:45 zmhost 0: => 'socket_sendto( /var/lib/zm/socks/zms-123098s.sock ) failed: No such file or directory',
Oct 1 16:41:45 zmhost ),:
Oct 1 16:41:45 zmhost ),:
Oct 1 16:41:45 zmhost 1: =>
Oct 1 16:41:45 zmhost array: (
Oct 1 16:41:45 zmhost 'file': => '/var/lib/zm/www/index.php',
Oct 1 16:41:45 zmhost 'line': => 116,
Oct 1 16:41:45 zmhost 'args': =>
Oct 1 16:41:45 zmhost array: (
Oct 1 16:41:45 zmhost 0: => '/var/lib/zm/www/ajax/stream.php',
Oct 1 16:41:45 zmhost ),:
Oct 1 16:41:45 zmhost ),:
Oct 1 16:41:45 zmhost 'function': => 'require_once',
Oct 1 16:41:45 zmhost ),:
Oct 1 16:41:45 zmhost ):
Oct 1 16:42:00 zmhost httpd: socket_sendto( /var/lib/zm/socks/zms-647934s.sock ) failed: No such file or directory
Oct 1 16:42:00 zmhost httpd: array (
Oct 1 16:42:00 zmhost 0: =>
Oct 1 16:42:00 zmhost array: (
Oct 1 16:42:00 zmhost 'file': => '/var/lib/zm/www/ajax/stream.php',
Oct 1 16:42:00 zmhost 'line': => 55,
Oct 1 16:42:00 zmhost 'function': => 'ajaxError',
Oct 1 16:42:00 zmhost 'args': =>
Oct 1 16:42:00 zmhost array: (
Oct 1 16:42:00 zmhost 0: => 'socket_sendto( /var/lib/zm/socks/zms-647934s.sock ) failed: No such file or directory',
Oct 1 16:42:00 zmhost ),:
Oct 1 16:42:00 zmhost ),:
Oct 1 16:42:00 zmhost 1: =>
Oct 1 16:42:00 zmhost array: (
Oct 1 16:42:00 zmhost 'file': => '/var/lib/zm/www/index.php',
Oct 1 16:42:00 zmhost 'line': => 116,
Oct 1 16:42:00 zmhost 'args': =>
Oct 1 16:42:00 zmhost array: (
Oct 1 16:42:00 zmhost 0: => '/var/lib/zm/www/ajax/stream.php',
Oct 1 16:42:00 zmhost ),:
Oct 1 16:42:00 zmhost 'function': => 'require_once',
Oct 1 16:42:00 zmhost ),:
Oct 1 16:42:00 zmhost ):
Oct 1 16:42:02 zmhost smartd[2752]: Device: /dev/sda, SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 81 to 78
Oct 1 16:43:07 zmhost kernel: r8169: eth0: link up
Oct 1 16:43:15 zmhost zmdc[2941]: INF [Starting pending process, zmc -m 2]
Oct 1 16:43:15 zmhost zmdc[2941]: INF ['zmc -m 2' starting at 09/10/01 16:43:15, pid = 3600]
Oct 1 16:43:15 zmhost zmdc[2941]: INF [Starting pending process, zmc -m 3]
Oct 1 16:43:15 zmhost zmdc[3600]: INF ['zmc -m 2' started at 09/10/01 16:43:15]
Oct 1 16:43:15 zmhost zmdc[3601]: INF ['zmc -m 3' started at 09/10/01 16:43:15]
Oct 1 16:43:15 zmhost zmdc[2941]: INF ['zmc -m 3' starting at 09/10/01 16:43:15, pid = 3601]
Oct 1 16:43:15 zmhost zmc_m3[3601]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:43:15 zmhost zmc_m2[3600]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:43:15 zmhost zmc_m3[3601]: INF [Starting Capture]
Oct 1 16:43:15 zmhost zmc_m2[3600]: INF [Starting Capture]
Oct 1 16:43:48 zmhost zmdc[2941]: INF [Starting pending process, zmc -m 1]
Oct 1 16:43:48 zmhost zmdc[2941]: INF ['zmc -m 1' starting at 09/10/01 16:43:48, pid = 3605]
Oct 1 16:43:48 zmhost zmdc[3605]: INF ['zmc -m 1' started at 09/10/01 16:43:48]
Oct 1 16:43:48 zmhost zmc_m1[3605]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:43:48 zmhost zmc_m1[3605]: INF [Starting Capture]
Oct 1 16:44:30 zmhost zmdc[2941]: INF [Starting pending process, zmc -m 2]
Oct 1 16:44:30 zmhost zmdc[2941]: INF ['zmc -m 2' starting at 09/10/01 16:44:30, pid = 3635]
Oct 1 16:44:30 zmhost zmdc[2941]: INF [Starting pending process, zmc -m 3]
Oct 1 16:44:30 zmhost zmdc[3635]: INF ['zmc -m 2' started at 09/10/01 16:44:30]
Oct 1 16:44:30 zmhost zmdc[3636]: INF ['zmc -m 3' started at 09/10/01 16:44:30]
Oct 1 16:44:30 zmhost zmdc[2941]: INF ['zmc -m 3' starting at 09/10/01 16:44:30, pid = 3636]
Oct 1 16:44:30 zmhost zmc_m3[3636]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:44:30 zmhost zmc_m2[3635]: INF [Debug Level = 0, Debug Log = <none>]
Oct 1 16:44:30 zmhost zmc_m3[3636]: INF [Starting Capture]
Oct 1 16:44:30 zmhost zmc_m2[3635]: INF [Starting Capture]
Oct 1 16:45:13 zmhost httpd: PHP Notice: Undefined index: newEnabled in /var/lib/zm/www/includes/actions.php on line 969
Oct 1 16:45:13 zmhost zmdc[2941]: INF ['zmc -m 3' stopping at 09/10/01 16:45:13]
Oct 1 16:45:13 zmhost zmc_m3[3636]: INF [Got signal 15 (Terminated), exiting]
Oct 1 16:45:13 zmhost zmdc[2941]: WAR [Can't find process with command of 'zma -m 3']
Oct 1 16:45:22 zmhost httpd: PHP Notice: Undefined index: newEnabled in /var/lib/zm/www/includes/actions.php on line 969
Oct 1 16:45:23 zmhost zmdc[2941]: INF ['zmc -m 2' stopping at 09/10/01 16:45:23]
Oct 1 16:45:23 zmhost zmc_m2[3635]: INF [Got signal 15 (Terminated), exiting]

I am trying to figure out where else to punch at it, hope someone can help me because it sure did work nice for a day or so...
Chuck Hast -- KP4DJT --
Web site www.wchast.com
ZM demo www.wchast.com/zm
Locked