/admin shows cronjob not running altho it is ok

Bug #776955 reported by Heinz Krettek
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Hugh Davenport

Bug Description

Hi,

I installed mahara 1.4 (Mahara version 1.4.0alpha2dev (2011042000)
the cronjob is running, but the site shows:
Cron: Cron is not running.
See the installation guide for instructions on how to set it up.

Changed in mahara:
milestone: none → 1.4.0
status: New → Triaged
importance: Undecided → Medium
Changed in mahara:
assignee: nobody → Hugh Davenport (hugh-catalyst)
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

The cause for this was because one of the cronjobs was checking in the import directory of the maharadata directory.
If this didn't exist, it complained with ugly error.

The patch at https://reviews.mahara.org/112 fixes this by adding a check for the import directory.

Another solution is that the import dir is made at install time.

Heinz, you can fix this for you by either waiting till it appears upstream, or do the following.

make a directory maharadata/import, where maharadata is the directory specified in config.php
this directory must be owned by the user that runs the webserver (ie www-data, or apache)
Then you have to wait for 24 hours since this cronjob was started, then it will try again.
You can keep the entry in your crontab, but just check after 24 hours.

Cheers,

Hugh

Changed in mahara:
status: Triaged → In Progress
Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

I wonder why all the dataroot directories except import and export get created in the ensure_sanity() function. Maybe at some point we should review them all, and either put import/export in there too, or else perhaps move some of the checks into the installation or to the places where they're first used.

Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.