<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #44: PHP temp session files need deleting</title>
    <link>https://trac.crin.org/trac/ticket/44</link>
    <description>&lt;p&gt;
On &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;Crin1&lt;/a&gt; php session files are written to these directories:
&lt;/p&gt;
&lt;pre class="wiki"&gt;/var/www/piwik/tmp
/var/www/mediawiki/w/tmp
/var/www/mediawiki/tmp
/var/www/owncloud/tmp
&lt;/pre&gt;&lt;p&gt;
Something like &lt;a class="ext-link" href="https://packages.debian.org/jessie/tmpreaper"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;tmpreaper&lt;/a&gt; needs installing and configuring to delete old files.
&lt;/p&gt;
&lt;p&gt;
On &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin2"&gt;Crin2&lt;/a&gt; and &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin4"&gt;Crin4&lt;/a&gt; &lt;tt&gt;/tmp&lt;/tt&gt; is used and that could also do with old files being deleted.
&lt;/p&gt;
&lt;p&gt;
I have CC'd Mori in case there are any issues I need to be aware of regarding Drupal / Solr and temp files.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/44</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Wed, 28 Oct 2015 11:03:21 GMT</pubDate>
      <title></title>
      <link>https://trac.crin.org/trac/ticket/44#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/44#comment:1</guid>
      <description>
        &lt;p&gt;
&lt;tt&gt;tmpreaper&lt;/tt&gt; has been setup on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin4"&gt;Crin4&lt;/a&gt; as it was running out of space, see &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/48" title="defect: crin4 /tmp filling up (closed: fixed)"&gt;ticket:48&lt;/a&gt;.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Tue, 17 Nov 2015 13:11:07 GMT</pubDate>
      <title>hours changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/44#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/44#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.25&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Installed &lt;tt&gt;tmpreaper&lt;/tt&gt; and edited &lt;tt&gt;/etc/tmpreaper.conf&lt;/tt&gt; to contain:
&lt;/p&gt;
&lt;pre class="wiki"&gt;TMPREAPER_PROTECT_EXTRA=''
TMPREAPER_TIME=1d
TMPREAPER_DIRS='/tmp/. /var/www/piwik/tmp/. /var/www/mediawiki/w/tmp/. /var/www/mediawiki/tmp/. /var/www/owncloud/tmp/.'
TMPREAPER_DELAY='256'
TMPREAPER_ADDITIONALOPTIONS=''
&lt;/pre&gt;&lt;p&gt;
Existing number of tmp files:
&lt;/p&gt;
&lt;pre class="wiki"&gt;ls -lah /var/www/piwik/tmp/ | wc -l
1475
ls -lah /var/www/mediawiki/tmp/ | wc -l
29276
ls -lah /var/www/mediawiki/w/tmp/ | wc -l
3
ls -lah /var/www/owncloud/tmp/ | wc -l
557
&lt;/pre&gt;&lt;p&gt;
I'll check tomorrow to see how many we have...
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 07 Apr 2016 12:53:36 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/44#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/44#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.2&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.25&lt;/em&gt; to &lt;em&gt;0.45&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
This has now been documented on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin1"&gt;wiki:Crin1&lt;/a&gt; so closing.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Thu, 07 Apr 2016 13:36:59 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/44#comment:4</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/44#comment:4</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>