Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Issue During Moodle Upgrade Testing – Old Notifications Sent After DB Restore

$
0
0
von gayashan jayasinghe.  

I am performing a major Moodle upgrade test and encountered an issue related to unexpected email after restoring an old database. I’m looking for best-practice guidance.

Upgrade Scope

Test Architecture

  • Test environment deployed using Virtual Machine Manager (KVM/QEMU)

  • Isolated VM (non-production) local machinr MINT OS

  • Fresh OS and LAMP stack installed

  • No external SMTP intentionally configured for testing

Steps Performed

  1. Installed Moodle 4.5  on Ubuntu 24.04.

  2. Restored moodledata directory from production backup.

  3. Restored production database (originally from Moodle 4.1).

  4. Updated config.php with:

  5. set a cron job in installation step

Issue Encountered

After completing the database restoration and config.php configuration:

  • A large number of old email were sent to users.

  • These notifications appear to be related to scheduled tasks / adhoc tasks / message queues/ Course expire notice from the restored database.

  • Once the issue was noticed, I powered off the virtual machine immediately.

Questions

  1. What is the correct way to prevent old notifications/emails from being sent after a database restore?

  2. Is there a recommended procedure for restoring production databases into a test environment during major upgrades?

  3. Are there specific Moodle tables that should be cleaned or disabled before first access?

This incident occurred only in the test VM, but I want to ensure the production upgrade is done safely.

Any advice or best-practice documentation would be greatly appreciated.

Thank you in advance.


Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>