On Sat, 20 Aug 2005, Jiri Kosina wrote:
> On Sat, 20 Aug 2005, Maarten Litmaath, CERN wrote:
>
> > The info provider may be run by 2 independent entities:
> > by the slapd, running as "edginfo", and by rgma-gin, running as "rgma".
> > I suspect the rgma-gin process has an incomplete environment, causing
> > qstat/pbsnodes/... to fail, which leads to an empty output file.
>
> That was a good guess (I didn't know that rgma is operasting with this
> file) .. however the file still gets truncated every minute, even after
> stopping the "rgma-gin" service.
>
> Is there amything else besides the /opt/lcg/libexec/lcg-info-wrapper
> accessing that cached file? I have no idea what is truncating it.
I do not think it is getting truncated: if it is empty, it means the
output of the dynamic plug-in was empty. That either means a problem
with the environment, or that it got killed (presumably on timeout).
You could replace the plug-in itself with a wrapper that logs the UID
of the process and runs the real plug-in via /usr/bin/time, capturing
a copy of the stdout using "tee", and capturing stderr.
|