Timing issue in ztart-up? Shared memory not initialised...

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Timing issue in ztart-up? Shared memory not initialised...

Post by lazyleopard »

I noticed today that one of my three monitors hadn't recorded any events. When I investigated it turned out that its zma process hadn't re-started properly. It looks like a subtle timing issue in the start-up process, as if something's looking for the zma process just a fraction before it's ready to talk. 999 times in 1000 it works just fine.
Syslog says:

Code: Select all

Jul  6 03:40:05 duma zmfix[1510]: INF [Debug Level = 0, Debug Log = ]
Jul  6 03:40:09 duma zmc-d0[1536]: INF [Debug Level = 0, Debug Log = ]
Jul  6 03:40:09 duma zmc-d0[1536]: INF [Starting Capture]
Jul  6 03:40:09 duma zma-m7[1541]: INF [Debug Level = 0, Debug Log = ]
Jul  6 03:40:09 duma zma-m7[1541]: INF [Warming up]
Jul  6 03:40:09 duma zmc-d1[1546]: INF [Debug Level = 0, Debug Log = ]
Jul  6 03:40:09 duma zma-m6[1551]: INF [Debug Level = 0, Debug Log = ]
Jul  6 03:40:09 duma zma-m6[1551]: ERR [Shared memory not initialised by capture daemon]
Jul  6 03:40:10 duma zmc-d1[1546]: INF [Starting Capture]
Jul  6 03:40:10 duma zma-m5[1559]: INF [Debug Level = 0, Debug Log = ]
Jul  6 03:40:10 duma zma-m5[1559]: WAR [Waiting for capture daemon]
Jul  6 03:40:11 duma zma-m5[1559]: INF [Warming up]
Monitors 5 and 6 are on video d1 and monitor 7 is on d0. zmdc.log says:

Code: Select all

Server starting at 04/07/06 03:40:05
'zmc -d 0' starting at 04/07/06 03:40:09, pid = 1536
'zmc -d 0' started at 04/07/06 03:40:09
'zma -m 7' starting at 04/07/06 03:40:09, pid = 1541
'zma -m 7' started at 04/07/06 03:40:09
'zmc -d 1' starting at 04/07/06 03:40:09, pid = 1546
'zmc -d 1' started at 04/07/06 03:40:09
'zma -m 6' started at 04/07/06 03:40:09
Can't find child with pid of '1551'
'zma -m 6' starting at 04/07/06 03:40:09, pid = 1551
'zmc -d 1' already running at 04/07/06 03:40:09, pid = 1546
'zma -m 5' starting at 04/07/06 03:40:10, pid = 1559
'zma -m 5' started at 04/07/06 03:40:10
'zmfilter.pl' starting at 04/07/06 03:40:10, pid = 1564
'zmfilter.pl' started at 04/07/06 03:40:10
'zmaudit.pl -d 900 -y' starting at 04/07/06 03:40:10, pid = 1569
'zmaudit.pl -d 900 -y' started at 04/07/06 03:40:10
'zmwatch.pl' started at 04/07/06 03:40:10
'zmwatch.pl' starting at 04/07/06 03:40:10, pid = 1574
...and then nothing more til I stopped and re-started the server (and that all worked fine).
Rick Hewett
Locked