Moodle

Autobackup into Serverpath fails without E-Mail notice

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: 2.1
  • Fix Version/s: STABLE backlog
  • Component/s: Backup
  • Labels:
  • Environment:
    Debian, Apache2, MySQL
  • Database:
    MySQL
  • Difficulty:
    Difficult
  • Affected Branches:
    MOODLE_21_STABLE

Description

https://www.mymoodle.domain/admin/settings.php?section=automated is set to backup my Moodle courses into a directory on my server. The serverpath is writable, cron is working and everything worked fine with Moodle 2.0.1. E-mails from my Moodle backupsystem still tell me that all courses have been backuped. But: This is not so! No new backups are created. Looking around moodledata I found moodledata/temp/backup contains a log file for each courseroom of my Moodle telling me:

[warn] backup_auto_failed_on_course coursename

Activity

Hide
Dirk Weller added a comment -

I upgraded to Debian Squeeze hoping that this would solve the problem but it persists. I still have one entry for each courseroom in /moodledata/temp/backup/ telling me: [warn] backup_auto_failed_on_course
The email I get from Moodle every day still tells me that everything is fine and the same is true for the list in https://www.mymoodle.domain/admin/report/backups/index.php
Cron works - emails from forums etc are being sent. The serverdirectory in whcih I want to put the backupfiles is writable (777 by now). The job in admin/settings.php?section=automated is active.

I would really appreciate help: How can I debug this problem? Which settings do I need to check which I haven't checked yet?

Show
Dirk Weller added a comment - I upgraded to Debian Squeeze hoping that this would solve the problem but it persists. I still have one entry for each courseroom in /moodledata/temp/backup/ telling me: [warn] backup_auto_failed_on_course The email I get from Moodle every day still tells me that everything is fine and the same is true for the list in https://www.mymoodle.domain/admin/report/backups/index.php Cron works - emails from forums etc are being sent. The serverdirectory in whcih I want to put the backupfiles is writable (777 by now). The job in admin/settings.php?section=automated is active. I would really appreciate help: How can I debug this problem? Which settings do I need to check which I haven't checked yet?
Hide
Dirk Weller added a comment -

A rough guess: Would a too strict php memory limit produce an error like this (sending email that backup succeeded without checking if course-room-backup-files have been created)??

Show
Dirk Weller added a comment - A rough guess: Would a too strict php memory limit produce an error like this (sending email that backup succeeded without checking if course-room-backup-files have been created)??
Hide
Dirk Weller added a comment -

Incresing php memory limit changes nothing. This Bug is related to

http://tracker.moodle.org/browse/MDL-25811

The same workaround (adding

set_config('backup_auto_running', '0', 'backup');

to

/moodle/backup/util/helper/backup_cron_helper.class.php

also setting Backups in http://www.mymoodlesite.domain/admin/settings.php?section=automated

to "Manuell" and adding a server directory for it to place the backup files in. You then have to run backup manually with

sudo -u www-data /usr/bin/php ../moodle/admin/cli/automated_backups.php

With Moodle mailing me every day that backups are succeeding but nothing being done I would consider this bug to be critical!

Show
Dirk Weller added a comment - Incresing php memory limit changes nothing. This Bug is related to http://tracker.moodle.org/browse/MDL-25811 The same workaround (adding set_config('backup_auto_running', '0', 'backup'); to /moodle/backup/util/helper/backup_cron_helper.class.php also setting Backups in http://www.mymoodlesite.domain/admin/settings.php?section=automated to "Manuell" and adding a server directory for it to place the backup files in. You then have to run backup manually with sudo -u www-data /usr/bin/php ../moodle/admin/cli/automated_backups.php With Moodle mailing me every day that backups are succeeding but nothing being done I would consider this bug to be critical!
Hide
Dirk Weller added a comment - - edited

Sorry for adding another comment right after the last - but because of reasons unknown this does NOT work for all my Moodles. All large Moodle installations say:

Backing up NameOfCourseRoom...backup_auto_failed_on_course NameOfCourseRoom
complete - next execution: Montag, 2. Mai 2011, 02:30
Sending email to admin
Automated backups complete.
Automated cron backups completed correctly

Still: Most of my smaller Moodles with less than about 10 Course-Rooms have backups now and the bug (telling the administrator everything is OK though nothing is) persists.

Show
Dirk Weller added a comment - - edited Sorry for adding another comment right after the last - but because of reasons unknown this does NOT work for all my Moodles. All large Moodle installations say: Backing up NameOfCourseRoom...backup_auto_failed_on_course NameOfCourseRoom complete - next execution: Montag, 2. Mai 2011, 02:30 Sending email to admin Automated backups complete. Automated cron backups completed correctly Still: Most of my smaller Moodles with less than about 10 Course-Rooms have backups now and the bug (telling the administrator everything is OK though nothing is) persists.
Hide
Dirk Weller added a comment -

Problem still exists after upgrade to Moodle 2.0.3: moodledata/temp/backup contains warn-messages like [So 15 Mai 2011 01:31:25 CEST] [warn] backup_auto_failed_on_course but Moodle tells me in Website-Administration | Berichte | Sicherung that everything is OK.

Show
Dirk Weller added a comment - Problem still exists after upgrade to Moodle 2.0.3: moodledata/temp/backup contains warn-messages like [So 15 Mai 2011 01:31:25 CEST] [warn] backup_auto_failed_on_course but Moodle tells me in Website-Administration | Berichte | Sicherung that everything is OK.
Hide
Dirk Weller added a comment -

Moodle 2.1 Build 20110701 has the same bug: No backups cereated but Moodle tells you everything is OK.

Show
Dirk Weller added a comment - Moodle 2.1 Build 20110701 has the same bug: No backups cereated but Moodle tells you everything is OK.
Hide
Dirk Weller added a comment -

Solved with newest Moodle Build!

Show
Dirk Weller added a comment - Solved with newest Moodle Build!

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: