[Labs-l] Tools: Issues with temporary files and the Peachy framework
Petr Bena
benapetr at gmail.com
Wed Jul 9 18:43:24 UTC 2014
Just ranting:
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
On Jul 9, 2014 7:26 PM, "Tim Landscheidt" <tim at tim-landscheidt.de> wrote:
>
> Hi,
>
> today I fixed up tools-exec-cyberbot. Its root partition
> had run out of inodes because /tmp was infested by about
> 400000 temporary cookie files.
>
> Per default, SGE sets the environment variable TMPDIR to a
> directory beneath /tmp that is dedicated to the submitted
> job and removed afterwards. This means that programs that
> don't clean up the temporary directory after themselves
> don't leave waste behind.
>
> Merlissimo pointed out however that the Peachy framework
> contains an error that makes it save cookie files not as
> ${TMPDIR}/file, but as ${TMPDIR}file, i. e. the file is
> created directly in /tmp and thus not removed by SGE when
> the job terminates. This caused the clogging on
> tools-exec-cyberbot.
>
> Fixing this in Peachy is easy: Change
>
https://code.google.com/p/mw-peachy/source/browse/trunk/Includes/Wiki.php#273
> from:
>
> | $this->http->setCookieJar( tempdir() .
'PeachyCookieSite' . sha1( $configuration['encodedparams'] ) );
>
> to:
>
> | $this->http->setCookieJar( tempdir() .
'/PeachyCookieSite' . sha1( $configuration['encodedparams'] ) );
>
> But a) Peachy hasn't seen (public) development since 2010,
> and b) developers of tools that use Peachy would need to up-
> date their installation at Tools anyhow.
>
> So if you use Peachy, please incorporate the fix above in
> your local installation. If you have access to the public
> repository, please commit the fix there as well.
>
> Thanks again to Merlissimo for his advice.
>
> Tim
>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20140709/33c9cca8/attachment.html>
More information about the Labs-l
mailing list