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

Automated backup fails to work without any hint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.4
    • 2.0, 2.1
    • Backup
    • None
    • MySQL
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_20_STABLE
    • MDL-25811_master
    • 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.

      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!

            stronk7 Eloy Lafuente (stronk7)
            bunna Stefan Eberhard (Inactive)
            Sam Hemelryk Sam Hemelryk
            Rajesh Taneja Rajesh Taneja
            Votes:
            18 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.