mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #06406
[Bug 863895] Re: Cron Job not running properly
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.
** Changed in: mahara
Status: New => Triaged
** Changed in: mahara
Importance: Undecided => Low
** Summary changed:
- Cron Job not running properly
+ Session files not cleaned except on linux
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/863895
Title:
Session files not cleaned except on linux
Status in Mahara ePortfolio:
Triaged
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_artefact_parent_cache_dirty
[DBG] e7 (lib/cron.php:502) Skipping long-running cron job core_auth_handle_account_expiries (Wed, 21 Sep 2011 10:06:01 +0200).
[DBG] e7 (lib/cron.php:146) Running core cron activity_process_queue
[DBG] e7 (lib/cron.php:146) Running core cron import_process_queue
[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_artefact_parent_cache_dirty
[DBG] 38 (lib/cron.php:502) Skipping long-running cron job core_auth_handle_account_expiries (Wed, 21 Sep 2011 10:06:01 +0200).
[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_artefact_parent_cache_dirty
[DBG] db (lib/cron.php:502) Skipping long-running cron job core_auth_handle_account_expiries (Wed, 21 Sep 2011 10:06:01 +0200).
[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
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/863895/+subscriptions
References