Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25811

Automated backup fails to work without any hint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.0.4
    • Component/s: Backup
    • Labels:
      None
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      Requires DB manipulation and, optionally, hacking:

      • OPTIONAL (for quicker testing, required hacking): edit backup_cron_helper.class.php and change the "60 * 90" to "60 *3", so the semaphore cleaning will happen after 3 mins (instead of 90).
      • DB MANIPULATION: In the config_plugins table insert one record with values (plugin => backup, name => backup_auto_running, value => 1). This will simulate the semaphore.
      • Enable automated backups in admin->courses->automated backups
      • TEST: Run the CLI cron.php script, should show message about automated backups running.
      • TEST: Run the CLI automated_backups.php script, should show message about automated backups running.
      • Wait 1 minute and re-rerun the 2 TESTS above, they must continue showing running status.
      • TEST: Wait > 3 minutes and run the cli cron.php. The semaphore gets cleaned (with message) and automated backup happens. Ignore any other output.
      • TEST: Run the cli automated_backups.php script. The semaphore has been cleaned by the previous test so backups should happen. Ignore any other output.
      Show
      Requires DB manipulation and, optionally, hacking: OPTIONAL (for quicker testing, required hacking): edit backup_cron_helper.class.php and change the "60 * 90" to "60 *3", so the semaphore cleaning will happen after 3 mins (instead of 90). DB MANIPULATION: In the config_plugins table insert one record with values (plugin => backup, name => backup_auto_running, value => 1). This will simulate the semaphore. Enable automated backups in admin->courses->automated backups TEST: Run the CLI cron.php script, should show message about automated backups running. TEST: Run the CLI automated_backups.php script, should show message about automated backups running. Wait 1 minute and re-rerun the 2 TESTS above, they must continue showing running status. TEST: Wait > 3 minutes and run the cli cron.php. The semaphore gets cleaned (with message) and automated backup happens. Ignore any other output. TEST: Run the cli automated_backups.php script. The semaphore has been cleaned by the previous test so backups should happen. Ignore any other output.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-25811_master

      Description

      Automated backups do not start at all. Changing backup_auto_hour in admins settings for automated backups will not result in any changes or activity. No mail about start or fail. No reaction at all!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                18 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11