<p>Just ranting:</p>
<p>Good sysadmin never put /tmp on root partition and if it was using some decent fs like btrfs it would never ran out of inodes. This is failure of sysadmins and not peachy<br>
On Jul 9, 2014 7:26 PM, "Tim Landscheidt" <<a href="mailto:tim@tim-landscheidt.de">tim@tim-landscheidt.de</a>> wrote:<br>
><br>
> 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">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">https://lists.wikimedia.org/mailman/listinfo/labs-l</a><br>
</p>