Fatal Error - zmaudit.pl appears to already be running at pid 1144

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Pembrae
Posts: 14
Joined: Tue Feb 23, 2021 4:05 pm

Fatal Error - zmaudit.pl appears to already be running at pid 1144

Post by Pembrae »

I have noticed that following error being logged. Please can anyone advise what the problem is and what I should do to fix it. Thanks

zmaudit.pl appears to already be running at pid 1144. If not, please delete /run/zm/zmaudit.pid or use the --force command line option.
User avatar
iconnor
Posts: 2879
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Fatal Error - zmaudit.pl appears to already be running at pid 1144

Post by iconnor »

if zmaudit is in fact not running, then run zmaudit.pl -f
Pembrae
Posts: 14
Joined: Tue Feb 23, 2021 4:05 pm

Re: Fatal Error - zmaudit.pl appears to already be running at pid 1144

Post by Pembrae »

Thank you for the response.

Not being a competent Linux user I was not sure of how to work out if zmaudit.pl was running, I used HTOP and 'service --status-al' but saw no listing of zmaudit. (Retrospectively I suspect I would have been better using 'top' command).

I executed the 'zmaudit.pl -f' command and got the following response:

pete@pemserv2:~$ zmaudit.pl -f
24/05/22 17:34:21.976626 zmaudit[225351].ERR [main:106] [zmaudit.pl appears to already be running at pid 1144. Continuing.]
24/05/22 17:34:24.928032 zmaudit[225351].INF [main:199] [Auditing All Storage Areas]
Found open event '75791' on Monitor 5 at 2022-05-06 06:48:52, closing
Deleted 10 log table entries by time
Deleted 2 log table entries by time
Deleted 0 log table entries by time


The ZoneMinder log reported the following:

"2022-05-24 17:35:46",zmaudit,,225369,FAT,"zmaudit.pl appears to already be running at pid 225351. If not, please delete /run/zm/zmaudit.pid or use the --force command line option.",zmaudit.pl,'-
"2022-05-24 17:34:24",zmaudit,,225351,INF,"Auditing All Storage Areas",zmaudit.pl,'-
"2022-05-24 17:34:21",zmaudit,,225351,ERR,"zmaudit.pl appears to already be running at pid 1144. Continuing.",zmaudit.pl,'-

Does this mean zmaudit was restarted as a new process with PID 225351 and that I am still getting the effectively the same error message as before except the PID has changed from 1144 to 225351?

I have tried unselected the option to run zmaudit but top is still showing zmaudit.pl running with PID 225351 and I am still getting the 'zmaudit.pl appears to already be running at pid 225351. If not, please delete /run/zm/zmaudit.pid or use the --force command line option' error message.

Please can anyone advice why I am getting this error message and its consequence .

Thanks
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Fatal Error - zmaudit.pl appears to already be running at pid 1144

Post by Magic919 »

Would be worth restarting ZM since you unticked the option.

If you wish to use htop then -u www-data will show all the ZM stuff that’s running.

Or run

Code: Select all

pgrep -fl zm 
-
Post Reply