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

Migration issue on database upgrade

$
0
0
by Eric H.  

Hey all, i've been trying this for a few days now and would appreciate any help.

My goal is to move the moodle install from one server to another. I've been following https://docs.moodle.org/402/en/Moodle_migration but have not been able to finish the process. I can start the Moodle container; it recognizes the backup from the legacy server and that there's a persisted installation to restore. It can connect to the restored Moodle database on the new server, but then it tries to upgrade the database, and it just loops.

moodle 14:52:17.44 Welcome to the Bitnami moodle container
moodle
14:52:17.44 Subscribe to project updates by watching https://github.com/bitnami/containers
moodle
14:52:17.44 Submit issues and feature requests at https://github.com/bitnami/containers/issues
moodle
14:52:17.44
moodle
14:52:17.45 INFO ==> ** Starting Moodle setup **
realpath: /bitnami/apache/conf: No such file or directory
moodle
14:52:17.49 INFO ==> Configuring Apache ServerTokens directive
moodle
14:52:17.52 INFO ==> Configuring PHP options
moodle
14:52:17.53 INFO ==> Setting PHP expose_php option
moodle
14:52:17.53 INFO ==> Setting PHP output_buffering option
moodle
14:52:17.56 INFO ==> Validating settings in MYSQL_CLIENT_* env vars
moodle
14:52:17.56 INFO ==> Validating settings in POSTGRESQL_CLIENT_* env vars
moodle
14:52:17.65 INFO ==> Restoring persisted Moodle installation
moodle
14:52:17.66 INFO ==> Trying to connect to the database server
moodle
14:52:17.72 INFO ==> Running database upgrade

I'm following the migration guide almost to the letter, but i deviate when i copy the files because both setups are in docker containers. I copy the files out of the volume on the legacy server, rsync to the new server, modify the url, and then push into the container. Then i make sure that root owns all the volumes again.

I've tried this like 5 times and i can't figure it out. There's no verbose logs to enable that i can find? My gut tells me that this is a permission issue but I chown'd the volumes to root so that should be okay?

I get this is a bitnami container but the upgrade.php script comes from moodle, right? Is there any insight into what the upgrade is doing?

Thanks for reading!


Viewing all articles
Browse latest Browse all 6815

Trending Articles



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