Bug 6462 - Zoneminder systemd Invalid executable path messages in syslog
Summary: Zoneminder systemd Invalid executable path messages in syslog
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: mga2-64-OK mga2-32-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-06-14 14:41 CEST by claire robinson
Modified: 2012-07-10 21:26 CEST (History)
2 users (show)

See Also:
Source RPM: zoneminder
CVE:
Status comment:


Attachments

Description claire robinson 2012-06-14 14:41:06 CEST
I notice in syslog messages..

Jun 14 12:56:03 mega systemd[1]: Reloading.
Jun 14 12:56:04 mega systemd[1]: [/lib/systemd/system/zoneminder.service:11] Invalid executable path in command line, ignoring: ps aux | grep -q [z]mdc.pl && /usr/bin/zmpkg.pl stop


Every time it Reloads there is an associated zoneminder message

Not sure what is wrong there as the zmpkg.pl path seems valid..

# which zmpkg.pl
/usr/bin/zmpkg.pl
Manuel Hiebel 2012-06-25 04:33:13 CEST

Assignee: bugsquad => zen25000

Comment 1 Barry Jackson 2012-06-25 12:43:23 CEST
(In reply to comment #0)

> Every time it Reloads there is an associated zoneminder message

Hi Claire,
Thanks - is this on boot or shutdown, or when you manually start/stop the service?

I don't see anything in my server logs here which is running mga2. However I rarely stop/start it.
That line was a fix for another bug - maybe needs a re-think.

I can't do much testing at the moment as my main system motherboard died a week ago. Expecting shiny new one today :)

Barry
Comment 2 claire robinson 2012-06-25 12:54:29 CEST
I had to check Barry, I'd forgotten this one.

It seems to happen whenever systemd reloads, it's config I'm guessing.

This was after testing net-snmp, I was removing it which caused systemd to reload.

Jun 23 22:20:50 mega urpme: called with: net-snmp
Jun 23 22:20:53 mega urpme: transaction on / (remove=3, install=0, upgrade=0)
Jun 23 22:20:53 mega snmpd[32453]: Received TERM or STOP signal...  shutting down...
Jun 23 22:20:53 mega systemd[1]: Reloading.
Jun 23 22:20:53 mega systemd[1]: [/lib/systemd/system/zoneminder.service:11] Invalid executable path in command line, ignoring: ps aux | grep -q [z]mdc.pl && /usr/bin/zmpkg.pl stop
Jun 23 22:20:53 mega systemd[1]: Reloading.
Jun 23 22:20:53 mega systemd[1]: [/lib/systemd/system/zoneminder.service:11] Invalid executable path in command line, ignoring: ps aux | grep -q [z]mdc.pl && /usr/bin/zmpkg.pl stop
Jun 23 22:20:54 mega perl: [RPM] net-snmp-5.7.1-3.1.mga2.x86_64 removed
Jun 23 22:20:54 mega perl: [RPM] net-snmp-utils-5.7.1-3.1.mga2.x86_64 removed
Jun 23 22:20:55 mega perl: [RPM] perl-NetSNMP-5.7.1-3.1.mga2.x86_64 removed
Jun 23 22:20:55 mega systemd[1]: Reloading.
Jun 23 22:20:55 mega systemd[1]: [/lib/systemd/system/zoneminder.service:11] Invalid executable path in command line, ignoring: ps aux | grep -q [z]mdc.pl && /usr/bin/zmpkg.pl stop
Comment 3 claire robinson 2012-06-25 12:57:19 CEST
It perhaps just needs /usr/bin/ps aux | /usr/bin/grep -q ... etc
Comment 4 Barry Jackson 2012-06-25 14:35:26 CEST
(In reply to comment #3)
> It perhaps just needs /usr/bin/ps aux | /usr/bin/grep -q ... etc

Yep - spot on!
Just tested on my server.
I'll fix it and have another look at another (possibly related) issue before pushing an update.

Thanks again,
Barry
Comment 5 Barry Jackson 2012-07-09 10:39:35 CEST
Hmm was not that easy so used a different approach. 


Update Advisory
###############

zoneminder-1.25.0-10.1.mga2 is now in updates/testing

This fixes this bug.

Testing procedure:
Install (preferably using urpmi as a root terminal is needed for next step)
Follow the README.urpmi and run zmsetup
Using a browser go to the URL given at the end of zmsetup and check that it is "Running" (top centre of screen).
Open a terminal and run:
tailf /var/log/syslog
Open a second terminal and run: (while watching for errors in syslog on first terminal)
su
systemctl --system daemon-reload
systemctl stop zoneminder.service
systemctl start zoneminder.service

There should be no errors in syslog.

Assignee: zen25000 => qa-bugs

Comment 6 claire robinson 2012-07-09 13:20:21 CEST
Testing x86_64
Comment 7 claire robinson 2012-07-09 14:01:03 CEST
Before
------
# systemctl --system daemon-reload

systemd[1]: Reloading.
systemd[1]: [/lib/systemd/system/zoneminder.service:11] Invalid executable path in command line, ignoring: ps aux | grep -q [z]mdc.pl && /usr/bin/zmpkg.pl stop

# systemctl stop zoneminder.service

zmdc[2466]: INF ['zmupdate.pl -c' stopping at 12/07/09 12:30:05]
zmdc[2466]: INF [Can't find child with pid of '2470']
zmdc[2466]: INF ['zmfilter.pl ' exited, signal 14]
zmdc[2466]: INF ['zmaudit.pl -c' exited, signal 14]
zmdc[2466]: INF ['zmwatch.pl ' exited, signal 14]
zmdc[2466]: INF ['zmupdate.pl -c' exited, signal 14]
systemd[1]: zoneminder.service: main process exited, code=exited, status=9
zmc_dvideo0[2493]: INF [Got signal 15 (Terminated), exiting]
zmc_dvideo0[2493]: INF [Got signal 15 (Terminated), exiting]
systemd[1]: Unit zoneminder.service entered failed state.

# systemctl start zoneminder.service

Seems to start OK.


After
-----
Depcheck checked OK

# systemctl --system daemon-reload

systemd[1]: Reloading.

# systemctl stop zoneminder.service

zmpkg[14740]: INF [Command: stop]
zmdc[14200]: INF ['zmwatch.pl ' stopping at 12/07/09 12:46:37]
zmdc[14200]: INF [Can't find child with pid of '14204']
zmdc[14200]: INF ['zmwatch.pl ' exited, signal 14]
zmdc[14200]: INF ['zmaudit.pl -c' stopping at 12/07/09 12:46:37]
zmdc[14200]: INF ['zmaudit.pl -c' exited, signal 14]
zmdc[14200]: INF ['zmfilter.pl ' stopping at 12/07/09 12:46:37]
zmdc[14200]: INF ['zmfilter.pl ' exited, signal 14]
zmdc[14200]: INF ['zmupdate.pl -c' stopping at 12/07/09 12:46:37]
zmdc[14200]: INF ['zmupdate.pl -c' exited, signal 14]
zmdc[14200]: INF ['zmc -d /dev/video0' stopping at 12/07/09 12:46:37]
zmc_dvideo0[14229]: INF [Got signal 15 (Terminated), exiting]
zmdc[14200]: INF ['zmc -d /dev/video0' exited normally]
zmdc[14200]: INF [Server shutdown at 12/07/09 12:46:47]

# systemctl start zoneminder.service

Starts normally.

Tested with saa7134 cctv card & camera and usb webcam all seems OK.

Thanks Barry. Testing complete x86_64
claire robinson 2012-07-09 14:01:15 CEST

Whiteboard: (none) => mga2-64-OK

Comment 8 claire robinson 2012-07-10 17:54:36 CEST
Tested OK i586 with a webcam.

Validating

Advisory
--------
This corrects an invalid executable path in the systemd service file which left error messages in syslog.
--------

zoneminder-1.25.0-10.1.mga2.src.rpm

Could sysadmin please push from core/updates_testing to core/updates

Thanks!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: mga2-64-OK => mga2-64-OK mga2-32-OK

claire robinson 2012-07-10 17:54:46 CEST

Hardware: x86_64 => All

Comment 9 Thomas Backlund 2012-07-10 21:26:29 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0117

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.