ZMC crashes ,memmory problems
Posted: Tue Apr 12, 2016 9:17 pm
My server has been running for approx 2 years, about a month ago I upgraded to 1.2.9 (ubuntu 14) with no issues. Today I noticed individual cameras crashing....
Here is what I know:
/run/shm is pegged
lots of zma & zmc crashing
I have tried to increase /dev/shm but it does not change the situation. Things are still very unhappy.
Any ideas?
I have 5 cameras and not much has changed in the last few weeks on them at all.
df -h
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 395M 600K 394M 1% /run
/dev/sda1 913G 471G 397G 55% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 2.0G 0 100% /run/shm
none 100M 0 100M 0% /run/user
/home/cef/.Private 913G 471G 397G 55% /home/cef
syslog:
Apr 12 17:11:58 cef3 zma[4136]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Apr 12 17:11:58 cef3 zma[4147]: ERR [Shared data not initialised by capture daemon for monitor Driveway]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zma -m 2' exited abnormally, exit status 255]
Apr 12 17:11:58 cef3 X?ʰ[4149]: 9]: ERR [Got empty memory map file size 0, is the zmc process for this monitor running?]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zmc -m 3' exited abnormally, exit status 255]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Got signal 11 (Segmentation fault), crashing]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Signal address is (nil), from 0xb21f43bd]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x7a) [0xb2269e9a]]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 1: [0xb218b410]]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK5Image10EncodeJpegEPhPii+0x8d) [0xb21f43bd]]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN7Monitor11SingleImageEi+0xcf) [0xb220953f]]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0xbe5) [0xb220a1e5]]
Apr 12 17:12:00 cef3 zma[4162]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 5: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xb12) [0xb21c3d12]]
Apr 12 17:12:00 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 6: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb0b1ea83]]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 7: /usr/lib/zoneminder/cgi-bin/nph-zms(+0x16d61) [0xb21c4d61]]
Apr 12 17:12:01 cef3 zmdc[4108]: ERR ['zmc -m 4' exited abnormally, exit status 255]
Apr 12 17:12:05 cef3 zma[4246]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:05 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:12:07 cef3 zmfilter[4198]: ERR [No message address defined, not sending message]
Apr 12 17:12:15 cef3 zma[4288]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:15 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:12:35 cef3 zma[4314]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:35 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
cef@cef3:~$
Here is what I know:
/run/shm is pegged
lots of zma & zmc crashing
I have tried to increase /dev/shm but it does not change the situation. Things are still very unhappy.
Any ideas?
I have 5 cameras and not much has changed in the last few weeks on them at all.
df -h
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 395M 600K 394M 1% /run
/dev/sda1 913G 471G 397G 55% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 2.0G 0 100% /run/shm
none 100M 0 100M 0% /run/user
/home/cef/.Private 913G 471G 397G 55% /home/cef
syslog:
Apr 12 17:11:58 cef3 zma[4136]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Apr 12 17:11:58 cef3 zma[4147]: ERR [Shared data not initialised by capture daemon for monitor Driveway]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zma -m 2' exited abnormally, exit status 255]
Apr 12 17:11:58 cef3 X?ʰ[4149]: 9]: ERR [Got empty memory map file size 0, is the zmc process for this monitor running?]
Apr 12 17:11:58 cef3 zmdc[4108]: ERR ['zmc -m 3' exited abnormally, exit status 255]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Got signal 11 (Segmentation fault), crashing]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Signal address is (nil), from 0xb21f43bd]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 0: /usr/lib/zoneminder/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x7a) [0xb2269e9a]]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 1: [0xb218b410]]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 2: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZNK5Image10EncodeJpegEPhPii+0x8d) [0xb21f43bd]]
Apr 12 17:11:59 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 3: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN7Monitor11SingleImageEi+0xcf) [0xb220953f]]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 4: /usr/lib/zoneminder/cgi-bin/nph-zms(_ZN13MonitorStream9runStreamEv+0xbe5) [0xb220a1e5]]
Apr 12 17:12:00 cef3 zma[4162]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 5: /usr/lib/zoneminder/cgi-bin/nph-zms(main+0xb12) [0xb21c3d12]]
Apr 12 17:12:00 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 6: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb0b1ea83]]
Apr 12 17:12:00 cef3 X?ʰ[4149]: 9]: ERR [Backtrace 7: /usr/lib/zoneminder/cgi-bin/nph-zms(+0x16d61) [0xb21c4d61]]
Apr 12 17:12:01 cef3 zmdc[4108]: ERR ['zmc -m 4' exited abnormally, exit status 255]
Apr 12 17:12:05 cef3 zma[4246]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:05 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:12:07 cef3 zmfilter[4198]: ERR [No message address defined, not sending message]
Apr 12 17:12:15 cef3 zma[4288]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:15 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
Apr 12 17:12:35 cef3 zma[4314]: ERR [Shared data not initialised by capture daemon for monitor Side-doors-high]
Apr 12 17:12:35 cef3 zmdc[4108]: ERR ['zma -m 1' exited abnormally, exit status 255]
cef@cef3:~$