Page 1 of 1

ZM crashes Suse 9.3

Posted: Fri Mar 31, 2006 2:31 pm
by sick347
So, I got this thing running and was working on assigning video monitors/cams and have been leaving the system with ZM running but this is the second time it has completely crashed my system.

Should I reinstall ZM?

IS there andother issue with ZM?

thanks
-frank

Sep 9 06:13:11 linux dhcpcd[5396]: DHCP_NAK server response received
Sep 9 06:22:57 linux dhcpcd[5993]: terminating on signal 15
Sep 14 08:04:42 wdshss dhcpcd[5956]: DHCP_NAK server response received
Feb 15 03:17:04 wdshss dhcpcd[6195]: DHCP_NAK server response received
Mar 30 07:50:37 wdshss zmpkg[18086]: INF [Command: start]
Mar 30 07:50:38 wdshss zmdc[18105]: INF [Server starting at 06/03/30 07:50:38]
Mar 30 07:50:41 wdshss zmdc[18105]: INF ['zmfilter.pl' starting at 06/03/30 07:50:41, pid = 18129]
Mar 30 07:50:41 wdshss zmdc[18129]: INF ['zmfilter.pl' started at 06/03/30 07:50:41]
Mar 30 07:50:41 wdshss zmfilter[18129]: INF [Scanning for events]
Mar 30 07:50:41 wdshss zmdc[18135]: INF ['zmaudit.pl -c' started at 06/03/30 07:50:41]
Mar 30 07:50:41 wdshss zmdc[18105]: INF ['zmaudit.pl -c' starting at 06/03/30 07:50:41, pid = 18135]
Mar 30 07:50:42 wdshss zmdc[18141]: INF ['zmwatch.pl' started at 06/03/30 07:50:42]
Mar 30 07:50:42 wdshss zmdc[18105]: INF ['zmwatch.pl' starting at 06/03/30 07:50:42, pid = 18141]
Mar 30 07:50:42 wdshss zmwatch[18141]: INF [Watchdog starting]
Mar 30 07:50:42 wdshss zmwatch[18141]: INF [Watchdog pausing for 30 seconds]
Mar 30 07:50:42 wdshss zmdc[18146]: INF ['zmupdate.pl -c' started at 06/03/30 07:50:42]
Mar 30 07:50:42 wdshss zmdc[18105]: INF ['zmupdate.pl -c' starting at 06/03/30 07:50:42, pid = 18146]
Mar 30 07:50:42 wdshss zmupdate[18146]: INF [Checking for updates]
Mar 30 07:50:43 wdshss zmupdate[18146]: INF [Got version: '1.22.0']
Mar 30 07:55:10 wdshss zmfix[18169]: ERR [Can't stat (null): Bad address]
Mar 30 07:55:11 wdshss zmdc[18105]: WAR [Can't find process with command of 'zmc -d']
Mar 30 07:55:11 wdshss zmdc[18105]: WAR [Can't find process with command of 'zma -m 1']
Mar 30 08:11:24 wdshss zmfix[18249]: ERR [Can't stat 8: No such file or directory]
Mar 30 08:11:24 wdshss zmdc[18105]: WAR [Can't find process with command of 'zmc -d 8']
Mar 30 08:11:24 wdshss zmdc[18105]: WAR [Can't find process with command of 'zma -m 1']
Mar 30 08:18:04 wdshss zmfix[18307]: ERR [Can't stat 0: No such file or directory]
Mar 30 08:18:04 wdshss zmdc[18105]: WAR [Can't find process with command of 'zmc -d 0']
Mar 30 08:18:05 wdshss zmdc[18105]: WAR [Can't find process with command of 'zma -m 1']
Mar 30 08:18:16 wdshss zmdc[18105]: WAR [Can't find process with command of 'zmc -d 0']
Mar 30 08:18:17 wdshss zmdc[18332]: INF ['zmc -d 0' started at 06/03/30 08:18:17]

****** SNIP OUT OF ABOUT 3 HOURS OF THE SAME STUFF **********

Mar 30 23:37:24 wdshss zmwatch[7171]: INF [Restarting capture daemon for one, shared memory not valid]
Mar 30 23:37:24 wdshss zmdc[7132]: INF ['zmc -d 0' starting at 06/03/30 23:37:24, pid = 10289]
Mar 30 23:37:24 wdshss zmdc[10289]: INF ['zmc -d 0' started at 06/03/30 23:37:24]
Mar 30 23:37:24 wdshss zmc_d0[10289]: INF [Debug Level = 0, Debug Log = <none>]
Mar 30 23:37:24 wdshss zmc_d0[10289]: ERR [Failed to open video device 0: No such file or directory]
Mar 30 23:37:24 wdshss zmdc[7132]: ERR ['zmc -d 0' crashed, exit status 255]
Mar 30 23:37:24 wdshss zmwatch[7171]: INF ['zmc -d 0' starting at 06/03/30 23:37:24, pid = 10289]
Mar 30 23:37:34 wdshss zmwatch[7171]: ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
Mar 30 23:37:34 wdshss zmwatch[7171]: INF [Restarting capture daemon for one, shared memory not valid]
Mar 30 23:37:34 wdshss zmdc[7132]: INF ['zmc -d 0' starting at 06/03/30 23:37:34, pid = 10293]
Mar 30 23:37:34 wdshss zmdc[10293]: INF ['zmc -d 0' started at 06/03/30 23:37:34]
Mar 30 23:37:34 wdshss zmc_d0[10293]: INF [Debug Level = 0, Debug Log = <none>]
Mar 30 23:37:34 wdshss zmc_d0[10293]: ERR [Failed to open video device 0: No such file or directory]
Mar 30 23:37:34 wdshss zmdc[7132]: ERR ['zmc -d 0' crashed, exit status 255]
Mar 30 23:37:34 wdshss zmwatch[7171]: INF ['zmc -d 0' starting at 06/03/30 23:37:34, pid = 10293]
****************** SYSTEM CRASHED HERE **********************
****************** SYSTEM CRASHED HERE **********************
****************** SYSTEM CRASHED HERE **********************
Mar 31 06:14:48 wdshss zmpkg[7463]: INF [Command: start]
Mar 31 06:14:48 wdshss zmfix[7471]: ERR [Can't stat 0: No such file or directory]
Mar 31 06:14:48 wdshss zmdc[7475]: INF [Server starting at 06/03/31 06:14:48]
Mar 31 06:14:52 wdshss zmdc[7498]: INF ['zmc -d 0' started at 06/03/31 06:14:52]
Mar 31 06:14:52 wdshss zmdc[7475]: INF ['zmc -d 0' starting at 06/03/31 06:14:52, pid = 7498]
Mar 31 06:14:52 wdshss zmc_d0[7498]: INF [Debug Level = 0, Debug Log = <none>]
Mar 31 06:14:52 wdshss zmc_d0[7498]: ERR [Failed to open video device 0: No such file or directory]
Mar 31 06:14:52 wdshss zmdc[7475]: ERR ['zmc -d 0' crashed, exit status 255]
Mar 31 06:14:52 wdshss zmdc[7475]: INF [Starting pending process, zmc -d 0]
Mar 31 06:14:52 wdshss zmdc[7501]: INF ['zmc -d 0' started at 06/03/31 06:14:52]
Mar 31 06:14:52 wdshss zmdc[7475]: INF ['zmc -d 0' starting at 06/03/31 06:14:52, pid = 7501]
Mar 31 06:14:52 wdshss zmc_d0[7501]: INF [Debug Level = 0, Debug Log = <none>]
Mar 31 06:14:52 wdshss zmc_d0[7501]: ERR [Failed to open video device 0: No such file or directory]
Mar 31 06:14:52 wdshss zmdc[7475]: ERR ['zmc -d 0' crashed, exit status 255]
Mar 31 06:14:52 wdshss zmdc[7475]: INF ['zmfilter.pl' starting at 06/03/31 06:14:52, pid = 7504]
Mar 31 06:14:52 wdshss zmdc[7504]: INF ['zmfilter.pl' started at 06/03/31 06:14:52]
Mar 31 06:14:52 wdshss zmfilter[7504]: INF [Scanning for events]
Mar 31 06:14:52 wdshss zmdc[7509]: INF ['zmaudit.pl -c' started at 06/03/31 06:14:52]

Posted: Fri Mar 31, 2006 2:37 pm
by maciekc
Change your video device in monitor configuration.
it should be "/dev/video0" not "0".

Posted: Fri Mar 31, 2006 2:49 pm
by sick347
Yeah...I think I've got that defined as you see from my ZM window...but hey I'm a newb.

thanks
-frank


Id Name Function Source Events Hour Day Week Month Archive Zones Mark
1. one Monitor /dev/video0 (1) 0 0 0 0 0 0 1

Posted: Fri Mar 31, 2006 4:41 pm
by sick347
ok...I performed a simple test by REMOVING my /dev/video0 in ZM and have ZM running.

I am monitoring the logs for any crashes and they are GONE!!!

So it appears that when I configure the monitor incorrectly ZM crashes my entire system!!!

see below

wdshss:/var/log # tail localmessages
Mar 31 08:34:18 wdshss zmdc[7685]: INF ['zmaudit.pl -c' started at 06/03/31 08:34:18]
Mar 31 08:34:18 wdshss zmdc[7657]: INF ['zmaudit.pl -c' starting at 06/03/31 08:34:18, pid = 7685]
Mar 31 08:34:19 wdshss zmdc[7690]: INF ['zmwatch.pl' started at 06/03/31 08:34:19]
Mar 31 08:34:19 wdshss zmdc[7657]: INF ['zmwatch.pl' starting at 06/03/31 08:34:19, pid = 7690]
Mar 31 08:34:19 wdshss zmwatch[7690]: INF [Watchdog starting]
Mar 31 08:34:19 wdshss zmwatch[7690]: INF [Watchdog pausing for 30 seconds]
Mar 31 08:34:19 wdshss zmdc[7694]: INF ['zmupdate.pl -c' started at 06/03/31 08:34:19]
Mar 31 08:34:19 wdshss zmdc[7657]: INF ['zmupdate.pl -c' starting at 06/03/31 08:34:19, pid = 7694]
Mar 31 08:34:19 wdshss zmupdate[7694]: INF [Checking for updates]
Mar 31 08:34:20 wdshss zmupdate[7694]: INF [Got version: '1.22.0']
wdshss:/var/log # tail localmessages
Mar 31 08:34:18 wdshss zmdc[7685]: INF ['zmaudit.pl -c' started at 06/03/31 08:34:18]
Mar 31 08:34:18 wdshss zmdc[7657]: INF ['zmaudit.pl -c' starting at 06/03/31 08:34:18, pid = 7685]
Mar 31 08:34:19 wdshss zmdc[7690]: INF ['zmwatch.pl' started at 06/03/31 08:34:19]
Mar 31 08:34:19 wdshss zmdc[7657]: INF ['zmwatch.pl' starting at 06/03/31 08:34:19, pid = 7690]
Mar 31 08:34:19 wdshss zmwatch[7690]: INF [Watchdog starting]
Mar 31 08:34:19 wdshss zmwatch[7690]: INF [Watchdog pausing for 30 seconds]
Mar 31 08:34:19 wdshss zmdc[7694]: INF ['zmupdate.pl -c' started at 06/03/31 08:34:19]
Mar 31 08:34:19 wdshss zmdc[7657]: INF ['zmupdate.pl -c' starting at 06/03/31 08:34:19, pid = 7694]
Mar 31 08:34:19 wdshss zmupdate[7694]: INF [Checking for updates]
Mar 31 08:34:20 wdshss zmupdate[7694]: INF [Got version: '1.22.0']
wdshss:/var/log #
wdshss:/var/log # tail localmessages
Mar 31 08:34:18 wdshss zmdc[7685]: INF ['zmaudit.pl -c' started at 06/03/31 08:34:18]
Mar 31 08:34:18 wdshss zmdc[7657]: INF ['zmaudit.pl -c' starting at 06/03/31 08:34:18, pid = 7685]
Mar 31 08:34:19 wdshss zmdc[7690]: INF ['zmwatch.pl' started at 06/03/31 08:34:19]
Mar 31 08:34:19 wdshss zmdc[7657]: INF ['zmwatch.pl' starting at 06/03/31 08:34:19, pid = 7690]
Mar 31 08:34:19 wdshss zmwatch[7690]: INF [Watchdog starting]
Mar 31 08:34:19 wdshss zmwatch[7690]: INF [Watchdog pausing for 30 seconds]
Mar 31 08:34:19 wdshss zmdc[7694]: INF ['zmupdate.pl -c' started at 06/03/31 08:34:19]
Mar 31 08:34:19 wdshss zmdc[7657]: INF ['zmupdate.pl -c' starting at 06/03/31 08:34:19, pid = 7694]
Mar 31 08:34:19 wdshss zmupdate[7694]: INF [Checking for updates]
Mar 31 08:34:20 wdshss zmupdate[7694]: INF [Got version: '1.22.0']

Posted: Sun Apr 02, 2006 8:49 pm
by sick347
AFter looking into the zm logs I found this little jewle:

Does any of you understand what this message is telling me?

03/30/2006 08:21:26.369831 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:21:26.572709 zmwatch[18141].INF ['zmc -d 0' started at 06/03/30 08:21:26] at /usr/local/bin/zmwatch.pl line 118
03/30/2006 08:21:36.576298 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:21:36.778042 zmwatch[18141].INF ['zmc -d 0' started at 06/03/30 08:21:36] at /usr/local/bin/zmwatch.pl line 118
03/30/2006 08:21:46.780739 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:21:46.983520 zmwatch[18141].INF ['zmc -d 0' started at 06/03/30 08:21:46] at /usr/local/bin/zmwatch.pl line 118
03/30/2006 08:21:56.986207 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:21:57.188843 zmwatch[18141].INF ['zmc -d 0' started at 06/03/30 08:21:57] at /usr/local/bin/zmwatch.pl line 118
03/30/2006 08:22:07.191633 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:22:07.393748 zmwatch[18141].INF ['zmc -d 0' started at 06/03/30 08:22:07] at /usr/local/bin/zmwatch.pl line 118
03/30/2006 08:22:17.397083 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:22:17.600439 zmwatch[18141].INF ['zmc -d 0' starting at 06/03/30 08:22:17, pid = 18487] at /usr/local/bin/zmwatch.pl line 118
03/30/2006 08:22:27.603542 zmwatch[18141].INF [Restarting capture daemon for one, shared memory not valid]
03/30/2006 08:22:27.805271 zmwatch[18141].INF ['zmc -d 0' started at 06/03/30 08:22:27] at /usr/local/bin/zmwatch.pl line 118


Here is my sysctl.conf file contains:

frank@wdshss:/etc> cat sysctl.conf
# Disable response to broadcasts.
# You don't want yourself becoming a Smurf amplifier.
net.ipv4.icmp_echo_ignore_broadcasts = 1
# enable route verification on all interfaces
net.ipv4.conf.all.rp_filter = 1
# enable ipV6 forwarding
#net.ipv6.conf.all.forwarding = 1
kernel.shmall = 134217728
kernel.shmmax = 134217728
frank@wdshss:/etc>

This is perplexing. I assigned the shared memory but ZM is rejecting or not reconizing it.

thanks
-frank

Posted: Sun Apr 02, 2006 9:14 pm
by sick347
I did a quick HEX to DECIMAL conversion on the id in this line

03/30/06 22:59:38.324004 zmwatch[7171].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]

It appears that the 7A6D2001 HEX number is 2,053,971,969 in DECIMAL and wonder if this represents a shared memory location? If it does then this seems strange because I have only 1 1GB SDRAM memory stick.

Ideas?

Posted: Sun Apr 02, 2006 11:13 pm
by zoneminder
The id '7a6d2001' is just a label really for the shared memory. It is the ascii chars for 'z', 'm' and ' ' (space) followed by the id of 1. So it doesn't relate to a location at all. The address of the memory used is decided by your system when the segment is requested.

Posted: Mon Apr 03, 2006 6:30 pm
by sick347
zoneminder wrote:The id '7a6d2001' is just a label really for the shared memory. It is the ascii chars for 'z', 'm' and ' ' (space) followed by the id of 1. So it doesn't relate to a location at all. The address of the memory used is decided by your system when the segment is requested.
ok. So armed with this I ran a few more tests and I still get these errors:

wdshss:/var/log # tail localmessages
Apr 2 21:35:53 wdshss zmdc[9803]: INF ['zmc -d 0' starting at 06/04/02 21:35:53, pid = 11378]
Apr 2 21:35:53 wdshss zmc_d0[11378]: ERR [Failed to open video device 0: No such file or directory]
Apr 2 21:35:53 wdshss zmdc[9803]: ERR ['zmc -d 0' crashed, exit status 255]
Apr 2 21:35:53 wdshss zmwatch[9836]: INF ['zmc -d 0' started at 06/04/02 21:35:53]
Apr 2 21:35:56 wdshss zmdc[9803]: INF [Starting pending process, zma -m 2]
Apr 2 21:35:56 wdshss zmdc[11380]: INF ['zma -m 2' started at 06/04/02 21:35:56]
Apr 2 21:35:56 wdshss zmdc[9803]: INF ['zma -m 2' starting at 06/04/02 21:35:56, pid = 11380]
Apr 2 21:35:56 wdshss zma_m2[11380]: INF [Debug Level = 0, Debug Log = <none>]
Apr 2 21:35:56 wdshss zma_m2[11380]: ERR [Shared memory not initialised by capture daemon]
Apr 2 21:35:56 wdshss zmdc[9803]: ERR ['zma -m 2' crashed, exit status 255]
wdshss:/var/log # tail localmessages
Apr 2 21:38:33 wdshss zmdc[11395]: INF ['zmc -d 0' started at 06/04/02 21:38:33]
Apr 2 21:38:33 wdshss zmc_d0[11395]: INF [Debug Level = 0, Debug Log = <none>]
Apr 2 21:38:33 wdshss zmdc[9803]: INF ['zmc -d 0' starting at 06/04/02 21:38:33, pid = 11395]
Apr 2 21:38:33 wdshss zmc_d0[11395]: ERR [No monitors found]
Apr 2 21:38:33 wdshss zmdc[9803]: ERR ['zmc -d 0' crashed, exit status 255]
Apr 2 21:40:36 wdshss zmdc[9803]: INF [Starting pending process, zma -m 2]
Apr 2 21:40:36 wdshss zmdc[11397]: INF ['zma -m 2' started at 06/04/02 21:40:36]
Apr 2 21:40:36 wdshss zmdc[9803]: INF ['zma -m 2' starting at 06/04/02 21:40:36, pid = 11397]
Apr 2 21:40:36 wdshss zma_m2[11397]: INF [Debug Level = 0, Debug Log = <none>]
Apr 2 21:40:36 wdshss zmdc[9803]: INF ['zma -m 2' died]

I turned on the monitor as /dev/video0 in the ZM interface (because the actual /dev/video0 was 700 so I changed it to 777 and ran it again) but I still get "/dev/video0" in RED and I get the above errors.

The ERR [No monitors found] message appears because I REMOVED the only one I had connected to see what that would produce in my logs.

Would running this system as RAID1 make any difference?

thanks
-frank