[Labs-l] Tools: Issues with temporary files and the Peachy framework
Simon Walker
simon at stwalkerster.co.uk
Wed Jul 9 17:35:34 UTC 2014
Tim,
I believe the repository is now at https://github.com/MW-Peachy/Peachy
I've submitted a pull request to this, but I don't have write access to
this repository.
Simon (stwalkerster)
On 9 July 2014 18:26, 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/b3a22b03/attachment.html>
More information about the Labs-l
mailing list