This forum is no longer active. Please post your questions to our new community site

Forums Moodle

cron backups

Subscribe to cron backups 6 post(s), 2 voice(s)

 
Avatar tbelgard 4 post(s)

Hello, I have recently installed bitnami 1.9.7 Moodle for Windows. I also installed the MoodleCron for Windows. I want to be able to backup the user information from the courses. I set up the admin/backup to save it to a folder under BitNami_Moodle_Stack folder. I run it via the webserver and I do not get an error. I just get a message about the next execution time for the courses. When I run this under the normal Moodle install it does the actual backup. Could you please help me get this figured out?
Thank you,Tammy

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

is there any error at the end of the apache log file installdir/apache2/logs/error.log ?

 
Avatar tbelgard 4 post(s)

This is the log from the time when I ran the backup.

[Mon Dec 14 11:19:50 2009] [warn] pid file C:/Program Files/BitNami Moodle Stack/apache2/logs/httpd.pid overwritten — Unclean shutdown of previous Apache run?
[Mon Dec 14 11:19:52 2009] [notice] Apache/2.2.13 (Win32) PHP/5.2.10 configured — resuming normal operations
[Mon Dec 14 11:19:52 2009] [notice] Server built: Aug 6 2009 15:50:50
[Mon Dec 14 11:19:52 2009] [notice] Parent: Created child process 1888
[Mon Dec 14 11:19:56 2009] [notice] Child 1888: Child process is running
[Mon Dec 14 11:19:56 2009] [notice] Child 1888: Acquired the start mutex.
[Mon Dec 14 11:19:56 2009] [notice] Child 1888: Starting 64 worker threads.
[Mon Dec 14 11:19:56 2009] [notice] Child 1888: Starting thread to listen on port 80.
[Mon Dec 14 11:24:25 2009] [error] [client 127.0.0.1] File does not exist: C:/Program Files/BitNami Moodle Stack/apache2/htdocs/favicon.ico

Thanks for your quick response.

 
Avatar tbelgard 4 post(s)

This is the messages from the cron job.

Starting activity modules
Processing module function assignment_cron …done.
Processing module function chat_cron …done.
Processing module function forum_cron …Starting digest processing…
Cleaned old digest records
done.
Processing module function journal_cron …done.
Processing module function scorm_cron …done.
Finished activity modules
Starting blocks
Processing cron function for rss_client….
0 feeds refreshed (took 1.552141 seconds)
done.
Processing cron function for search….
-DELETE—-
Fatal exception from Lucene subsystem. Search engine may not have been updated.
exception ‘Zend_Search_Lucene_Exception’ with message ‘Index doesn’t exists in the specified directory.’ in C:\Program Files\BitNami Moodle Stack\apps\moodle\htdocs\search\Zend\Search\Lucene.php:453
Stack trace:

  1. C:\Program Files\BitNami Moodle Stack\apps\moodle\htdocs\search\delete.php(49): Zend_Search_Lucene→__construct(‘C:\Program File…’)
  2. C:\Program Files\BitNami Moodle Stack\apps\moodle\htdocs\search\cron_php5.php(16): require_once(‘C:\Program File…’)
  3. C:\Program Files\BitNami Moodle Stack\apps\moodle\htdocs\search\cron.php(25): include(‘C:\Program File…’)
  4. C:\Program Files\BitNami Moodle Stack\apps\moodle\htdocs\blocks\search\block_search.php(83): include(‘C:\Program File…’)
  5. C:\Program Files\BitNami Moodle Stack\apps\moodle\htdocs\admin\cron.php(148): block_search→cron()
  6. {main}
    done.
    Finished blocks
    Starting admin reports
    Finished admin reports
    Updating languages cache
    Removing expired enrolments …none found
    Starting main gradebook job …
    done.
    Running clean-up tasks…
    Deleted old cache_text records
    Synchronised metacourses
    checking for create_password
    Executed tag cron
    Cleaned up contexts
    Cleaned cache flags
    Built context paths
    Finished clean-up tasks…
    Running backups if required…
    Checking backup status…OK
    Getting admin info
    Deleting old data
    Checking courses
    Skipping deleted courses
    0 courses
    BSC Military Education
    Next execution: Thursday, 17 December 2009, 09:00 AM
    Lane Practice course
    Next execution: Thursday, 17 December 2009, 09:00 AM
    Backup tasks finished.
    Running auth crons if required…
    Cron script completed correctly
    Execution took 26.335948 seconds
 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

I found the following bug in the moodle bug tracking system http://tracker.moodle.org/browse/MDL-15824 Some people commented several solutions. I hope it helps.

 
Avatar tbelgard 4 post(s)

Thank you for getting me that information. It was very helpful. I applied the code patches and it seemed to process correctly or at least through the error part. I ran the cron.php again and I still do not get the files to backup. The apache error log reads:

[Tue Dec 15 10:02:23 2009] [error] [client 127.0.0.1] File does not exist: C:/Program Files/BitNami Moodle Stack/apache2/htdocs/favicon.ico

The cron.php log is:

Server Time: Tue, 15 Dec 2009 10:04:22 -0600

Starting activity modules
Finished activity modules
Starting blocks
Processing cron function for search….
-DELETE—-
Starting clean-up of removed records…
Index size before: 0

9 modules to search in / 18 modules found.
0 blocks to search in / 31 blocks found.
1 additional to search in.
Checking assignment module for deletions.
Finished assignment.

Checking chat module for deletions.
No types to delete.

Finished chat.

Checking data module for deletions.
Finished data.

Checking forum module for deletions.
Finished forum.

Checking glossary module for deletions.
Finished glossary.

Checking label module for deletions.
Finished label.

Checking lesson module for deletions.
Finished lesson.

Checking resource module for deletions.
Finished resource.

Checking wiki module for deletions.
Finished wiki.

Checking user module for deletions.
Finished user.

Finished 0 removals.
Index size after: 0
-UPDATE—-
Starting index update (updates)…

9 modules to search in / 18 modules found.
0 blocks to search in / 31 blocks found.
1 additional to search in.
Checking assignment module for updates.
Finished assignment.

Checking chat module for updates.
No types to update.

Finished chat.

Checking data module for updates.
Finished data.

Checking forum module for updates.
Finished forum.

Checking glossary module for updates.
Finished glossary.

Checking label module for updates.
Finished label.

Checking lesson module for updates.
Finished lesson.

Checking resource module for updates.
Finished resource.

Checking wiki module for updates.
Finished wiki.

Checking user module for updates.
Finished user.

Finished 0 updates
-ADD———
Starting index update (additions)…
Index size before: 0

9 modules to search in / 18 modules found.
0 blocks to search in / 31 blocks found.
1 additional to search in.
Checking assignment module for additions.
Finished assignment.

Checking chat module for additions.
No types to add.

Finished chat.

Checking data module for additions.
Finished data.

Checking forum module for additions.
Finished forum.

Checking glossary module for additions.
Finished glossary.

Checking label module for additions.
Finished label.

Checking lesson module for additions.
Finished lesson.

Checking resource module for additions.
Finished resource.

Checking wiki module for additions.
Finished wiki.

Checking user module for additions.
Finished user.

Added 0 documents.
Index size after: 0
-————-
done
done.
Finished blocks
Starting admin reports
Finished admin reports
Updating languages cache
Removing expired enrolments …none found
Starting main gradebook job …
done.
Running backups if required…
Checking backup status…OK
Getting admin info
Deleting old data
Checking courses
Skipping deleted courses
0 courses
BSC Military Education
Next execution: Thursday, 17 December 2009, 09:00 AM
Lane Practice course
Next execution: Thursday, 17 December 2009, 09:00 AM
Backup tasks finished.
Running auth crons if required…
Cron script completed correctly
Execution took 3.034845 seconds

Forums Moodle