Session files not cleaned except on linux
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Hugh Davenport |
Bug Description
Since out Update to Mahara 1.4 the cron job isn't working any more.
Even though it is setup properly Mahare reports that the cron job isn't running. Here's what the Apache log says:
[DBG] e7 (lib/cron.php:146) Running core cron rebuild_
[DBG] e7 (lib/cron.php:502) Skipping long-running cron job core_auth_
[DBG] e7 (lib/cron.php:146) Running core cron activity_
[DBG] e7 (lib/cron.php:146) Running core cron import_
[DBG] e7 (lib/cron.php:168) ---------- cron finished Thu, 22 Sep 2011 09:35:01 +0200 ----------
[DBG] 38 (lib/cron.php:45) ---------- cron running Thu, 22 Sep 2011 09:36:01 +0200 ----------
[DBG] 38 (lib/cron.php:146) Running core cron rebuild_
[DBG] 38 (lib/cron.php:502) Skipping long-running cron job core_auth_
[DBG] 38 (lib/cron.php:168) ---------- cron finished Thu, 22 Sep 2011 09:36:01 +0200 ----------
[DBG] db (lib/cron.php:45) ---------- cron running Thu, 22 Sep 2011 09:37:01 +0200 ----------
[DBG] db (lib/cron.php:146) Running core cron rebuild_
[DBG] db (lib/cron.php:502) Skipping long-running cron job core_auth_
[DBG] db (lib/cron.php:168) ---------- cron finished Thu, 22 Sep 2011 09:37:01 +0200 ----------
A nonrecoverable error occured. This probably means you have encountered a bug in the systemxargs: illegal option -- r
xargs: Usage: xargs: [-t] [-p] [-e[eofstr]] [-E eofstr] [-I replstr] [-i[replstr]] [-L #] [-l[#]] [-n # [-x]] [-s size] [cmd [args ...]]
A nonrecoverable error occured. This probably means you have encountered a bug in the systemxargs: illegal option -- r
Server OS: SunOS
PHP Version: 5.2.9
Database: MySQL
Mahara Version: 1.4
Browser: Firefox 7.0.1
description: | updated |
tags: | added: solaris |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
This will be caused by the following line in htdocs/ auth/lib. php:
exec('find ' . escapeshellarg( get_config( 'dataroot' ) . 'sessions') . ' -type f -mtime +1 | xargs -n 1000 -r rm');
It needs to be rewritten to work independently of the os.