pcp
[Top] [All Lists]

Re: [pcp] pmcd gets stuck with pmda kill

To: Martins Innus <minnus@xxxxxxxxxxx>, pcp@xxxxxxxxxxx
Subject: Re: [pcp] pmcd gets stuck with pmda kill
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 29 Jan 2015 08:59:07 +1100
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <54C94943.4040108@xxxxxxxxxxx>
References: <54C7FF66.5090503@xxxxxxxxxxx> <54C80E1F.1010909@xxxxxxxxxxxxxxxx> <54C93BFD.5090803@xxxxxxxxxxx> <54C93DED.9020601@xxxxxxxxxxxxxxxx> <54C94943.4040108@xxxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
On 29/01/15 07:40, Martins Innus wrote:
...
OK, but you don't need to restart pmcd (that is expensive and disrupts
the data stream for the other PMDAs that you might be logging).
Sending pmcd a SIGHUP will restart the proc PMDA.
Thanks, I wasn't aware of that but it doesn't seem to work in my case.
Similar setup to my other email. No other pcp services running (
pmlogger, pmie, pmwebd, pmmgr all stopped).

I sent that mail from the time warp that is labelled "it is OK for all PCP processes to run as root" ... later I realized that in the brave new world where running as root has become less fashionable this won't work if the PMDA needs root priveleges, because once pmcd is able to accept the SIGHUP it has downgraded itself to user "pcp" ... so restarting _pmcd_ (as root) is the only option in your case.

> ...
The following in pmcd.log

[Wed Jan 28 20:11:19] pmcd(494) Info: CleanupAgent ...
Cleanup "proc" agent (dom 3): protocol failure for fd=9, signal(15)
Configuration file '/etc/pcp/pmcd/pmcd.conf' unchanged
Restarting any deceased agents:
     "proc" agent

pmcd: unexpected end-of-file at initial exchange with proc PMDA


I assume the cleanup agent is from the "killall -v pmdaproc" and expected?

CleanupAgent is expected in this scenario.

The "pmcd: unexpected ... proc PMDA" bit is probably because the proc PMDA was restarted as user "pcp" and baulked ... it would be interesting to see what's in /var/log/pcp/pmcd/proc.log (this should contain a reason why the proc PMDA terminated at startup).

<Prev in Thread] Current Thread [Next in Thread>