connortechnology / ZoneMinder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
9 stars 9 forks source link

Zoneminder background process leaking logs to foreground. #87

Closed shaun-ba closed 6 years ago

shaun-ba commented 6 years ago

Zoneminder background process leaking logs to foreground.

Replicate: Login to server, wait a few seconds and start seeing logs spammed to foreground.

n@zm-vid:~$ 
Broadcast message from systemd-journald@zm-vid (Mon 2018-03-12 15:41:51 UTC):

zma_m11[539]:  [zma_m11] [Rear-sub: 6255000 - Analysing at 5.99 fps]

Broadcast message from systemd-journald@zm-vid (Mon 2018-03-12 15:41:52 UTC):

zma_m8[503]:  [zma_m8] [Front-sub: 6255000 - Analysing at 6.02 fps]
pliablepixels commented 6 years ago

@connortechnology - the fixes did not solve this problem - its gotten worse (more frequent)

shaun-ba commented 6 years ago

server is unusable :D

connortechnology commented 6 years ago

weird. Anyways, turn off logging to syslog. Or set it to critical instead of info..

shaun-ba commented 6 years ago

Ok, that's a temporary workaround whilst you investigate and fix it?

pliablepixels commented 6 years ago

My current workaround is to add ForwardToWall=no to /etc/systemd/journald.conf and restart the service - this kills the broadcast messages for all apps including ZM, but really is a temporary workaround. There is something ZM-SA is doing that is triggering this that no other app is doing.

shaun-ba commented 6 years ago

@pliablepixels I've not come across this with ANY software in the past, very odd!

connortechnology commented 6 years ago

So what seems to be happening is that when the process is told to rotate logs, it starts doing this. So something is wrong in the log reload functions.

Should have a fix soon.

connortechnology commented 6 years ago

I think I found it.

Please note that the behaviour only happens after a reload, so to test, all you have do is killall -HUP zma

pliablepixels commented 6 years ago

so far so good

Updated: seems resolved for me.

shaun-ba commented 6 years ago

resolved!