[problem] Zoneminder several crash
[problem] Zoneminder several crash
System : ubuntu 16.04
ZM version : 1.30.4
DataBase : mariadb 10.2 + galera 3 (cluster)
Bug : several crash
First, i have try to re-installs and reboots, it's change nothing.
In my log i can watch some informations about "Segmentation fault". I edit my post after for add screenshot and more informations.
Actually for it's work i need start ZM via cron all 15 seconds and that add some problems on my machine (reboot really bug).
ZM version : 1.30.4
DataBase : mariadb 10.2 + galera 3 (cluster)
Bug : several crash
First, i have try to re-installs and reboots, it's change nothing.
In my log i can watch some informations about "Segmentation fault". I edit my post after for add screenshot and more informations.
Actually for it's work i need start ZM via cron all 15 seconds and that add some problems on my machine (reboot really bug).
Re: [problem] Zoneminder several crash
With the numbe of cameras you have it may be possoble you are running out of memory, tmpfs. Reduce the resolution and frame rate on your cameras. Also check the WIKI for the install instructions to see if you missed something.
Re: [problem] Zoneminder several crash
Many thanks for your helping @bbunge
I test during some hours and post a new message with fresh informations from the battleground
All my installation procedure is indicated here in french : [Tuto/HowTo] Installer zoneminder sur ubuntu 16.04, [Tuto/HowTo] [Ubuntu] système distribué de caméra vidéos surveillance and [EN] [Tuto/HowTo] ZoneMinder Optimizations
I have this bug too on this install when i have only two cameras.
Some times when i change the config of one camera and save, ZoneMinder crash.
Sorry for my not terrible english.
Ok i try : i have stop 3 cams and decreases the quality of the main cam.
I test during some hours and post a new message with fresh informations from the battleground

Hmmm it's my 3th install (on the same machine after reset) and the last install do not have this bug with full FPS and HD. But it's my first in Multi-Server mod with Database clustering.
All my installation procedure is indicated here in french : [Tuto/HowTo] Installer zoneminder sur ubuntu 16.04, [Tuto/HowTo] [Ubuntu] système distribué de caméra vidéos surveillance and [EN] [Tuto/HowTo] ZoneMinder Optimizations
I have this bug too on this install when i have only two cameras.
Some times when i change the config of one camera and save, ZoneMinder crash.
Sorry for my not terrible english.
Re: [problem] Zoneminder several crash
This post receive edit during the day.
Logs after a crash with 2 cams (1 in Modect and 1 in Mocord). On my last ZM install this config don't have this bug. With this config (1 cam modect + 1 cam mocord) the bug is not solved
Logs after a crash with 2 cams (1 in Modect and 1 in Mocord). On my last ZM install this config don't have this bug. With this config (1 cam modect + 1 cam mocord) the bug is not solved
Last edited by vox on Wed Nov 08, 2017 5:32 pm, edited 1 time in total.
Re: [problem] Zoneminder several crash
Couol be the multi server mode.
Your English is better than my Francais!
Your English is better than my Francais!
Re: [problem] Zoneminder several crash
Please anybody for help me to search how to solve these really boring crash 

Re: [problem] Zoneminder several crash
Hi
I had a lot of errors similar what you have, like "zmc -m 4' has not stopped at 17/10/15 07:15:09. Sending KILL to pid 10474" or "'zma -m 2' exited abnormally, exit status 255]". Root cause for these errors was missing keepalive message in REMOTE RTSP protocol.
I manually forced keepalive messages by altering the code in zm_rtsp.cpp:
Line 365 in zm_rtsp.cpp
-- bool sendKeepalive = false;
++ bool sendKeepalive = true;
Line 508 in zm_rtsp.cpp
-- int timeout = 0;
++ int timeout = 60;
This change made the trick and now all my cameras have been now working over a week without any jamming.
I think that ZoneMinder monitor configuration should have an option to force keepalive message sending. Most likely my cameras are not the only ones needing keepalive messages...
Cheers
osk
I had a lot of errors similar what you have, like "zmc -m 4' has not stopped at 17/10/15 07:15:09. Sending KILL to pid 10474" or "'zma -m 2' exited abnormally, exit status 255]". Root cause for these errors was missing keepalive message in REMOTE RTSP protocol.
I manually forced keepalive messages by altering the code in zm_rtsp.cpp:
Line 365 in zm_rtsp.cpp
-- bool sendKeepalive = false;
++ bool sendKeepalive = true;
Line 508 in zm_rtsp.cpp
-- int timeout = 0;
++ int timeout = 60;
This change made the trick and now all my cameras have been now working over a week without any jamming.
I think that ZoneMinder monitor configuration should have an option to force keepalive message sending. Most likely my cameras are not the only ones needing keepalive messages...
Cheers
osk
Re: [problem] Zoneminder several crash
here are all the steps I made to fix this error (Ubuntu 17.10):
Get build dependencies
Code: Select all
sudo apt build-dep zoneminder
Code: Select all
apt source zoneminder
Code: Select all
#include <sys/uio.h>
Line 365 in zm_rtsp.cpp
-- bool sendKeepalive = false;
++ bool sendKeepalive = true;
Line 508 in zm_rtsp.cpp
-- int timeout = 0;
++ int timeout = 60;
Compile sources
Code: Select all
apt-get --compile source zoneminder
Code: Select all
sudo dpkg -i zoneminder_1.30.4+dfsg-2_amd64.deb
osk
Re: [problem] Zoneminder several crash
Really thanks Osk, i try tomorrow and post if it's working or not

With this method, what hapenning to zoneminder if i apt-get dist-upgrade ?
apt source zoneminder => that download in the current folder of the shell session?

Re: [problem] Zoneminder several crash
Well, my zomenider build last week was the first time I ever built something from sources, so I am not an expert here...
I suppose that apt dist-upgrade and even apt upgrade will replace the self-built zoneminder with distribution's original version unless you remove the default zoneminder package with apt remove.
Yes, it downloads the sources to current directory. I used instructions from this page when I built zoneminder: https://askubuntu.com/questions/28372/h ... gh-apt-get
Cheers
osk
Re: [problem] Zoneminder several crash
Code: Select all
sudo apt build-dep zoneminder
Code: Select all
apt source zoneminder
and theses instruction at the command "./do_debian_package.sh `lsb_release -a 2>/dev/null | grep Codename | awk '{print $2}'` `date +%Y%m%d`01 local stable" respond "Unknown option xenial, continue? (Y|n)n".
Re: [problem] Zoneminder several crash
If you're running it from command line, the the application name is software-properties-gtk

