<div dir="ltr"><div>Tim,</div><div><br></div>I believe the repository is now at <a href="https://github.com/MW-Peachy/Peachy">https://github.com/MW-Peachy/Peachy</a><div><br></div><div>I've submitted a pull request to this, but I don't have write access to this repository.</div>
<div><br></div><div>Simon (stwalkerster)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 July 2014 18:26, Tim Landscheidt <span dir="ltr"><<a href="mailto:tim@tim-landscheidt.de" target="_blank">tim@tim-landscheidt.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
today I fixed up tools-exec-cyberbot.  Its root partition<br>
had run out of inodes because /tmp was infested by about<br>
400000 temporary cookie files.<br>
<br>
Per default, SGE sets the environment variable TMPDIR to a<br>
directory beneath /tmp that is dedicated to the submitted<br>
job and removed afterwards.  This means that programs that<br>
don't clean up the temporary directory after themselves<br>
don't leave waste behind.<br>
<br>
Merlissimo pointed out however that the Peachy framework<br>
contains an error that makes it save cookie files not as<br>
${TMPDIR}/file, but as ${TMPDIR}file, i. e. the file is<br>
created directly in /tmp and thus not removed by SGE when<br>
the job terminates.  This caused the clogging on<br>
tools-exec-cyberbot.<br>
<br>
Fixing this in Peachy is easy: Change<br>
<a href="https://code.google.com/p/mw-peachy/source/browse/trunk/Includes/Wiki.php#273" target="_blank">https://code.google.com/p/mw-peachy/source/browse/trunk/Includes/Wiki.php#273</a><br>
from:<br>
<br>
|                         $this->http->setCookieJar( tempdir() . 'PeachyCookieSite' . sha1( $configuration['encodedparams'] ) );<br>
<br>
to:<br>
<br>
|                         $this->http->setCookieJar( tempdir() . '/PeachyCookieSite' . sha1( $configuration['encodedparams'] ) );<br>
<br>
But a) Peachy hasn't seen (public) development since 2010,<br>
and b) developers of tools that use Peachy would need to up-<br>
date their installation at Tools anyhow.<br>
<br>
So if you use Peachy, please incorporate the fix above in<br>
your local installation.  If you have access to the public<br>
repository, please commit the fix there as well.<br>
<br>
Thanks again to Merlissimo for his advice.<br>
<br>
Tim<br>
<br>
<br>
_______________________________________________<br>
Labs-l mailing list<br>
<a href="mailto:Labs-l@lists.wikimedia.org">Labs-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/labs-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</blockquote></div><br></div>