Opened 3 years ago
Closed 2 years ago
#44 closed defect (fixed)
PHP temp session files need deleting
Reported by: | chris | Owned by: | chris |
---|---|---|---|
Priority: | major | Milestone: | Maintenance |
Component: | crin1 | Version: | |
Keywords: | Cc: | mori | |
Estimated Number of Hours: | 0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0.45 |
Description
On Crin1 php session files are written to these directories:
/var/www/piwik/tmp /var/www/mediawiki/w/tmp /var/www/mediawiki/tmp /var/www/owncloud/tmp
Something like tmpreaper needs installing and configuring to delete old files.
On Crin2 and Crin4 /tmp is used and that could also do with old files being deleted.
I have CC'd Mori in case there are any issues I need to be aware of regarding Drupal / Solr and temp files.
Change History (4)
comment:1 Changed 3 years ago by chris
comment:2 Changed 3 years ago by chris
- Add Hours to Ticket changed from 0 to 0.25
- Total Hours set to 0.25
Installed tmpreaper and edited /etc/tmpreaper.conf to contain:
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=''
Existing number of tmp files:
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
I'll check tomorrow to see how many we have...
comment:3 Changed 2 years ago by chris
- Add Hours to Ticket changed from 0 to 0.2
- Total Hours changed from 0.25 to 0.45
This has now been documented on wiki:Crin1 so closing.
comment:4 Changed 2 years ago by chris
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
tmpreaper has been setup on Crin4 as it was running out of space, see ticket:48.