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

Re: Migration issue on database upgrade

$
0
0
by Eric H.  

Hey Ken! Thanks for responding; you were super helpful and got me thinking. I resolved this with a few changes:

  1.  Start a fresh moodle instance
    1. I started up Moodle + Maria DB and let it install fully. 
    2. I believe this allowed the creation of that `/bitnami/apache/conf` file you mentioned.
  2. Do the migrations: 
    1. I entered the Maria container and used 'source' to import the SQL file.
    2. I used cp to copy files into the directory im using for moodle data (./docker/appdata/moodle and /moodledata)
  3. Update permissions via `sudo chown daemon:root -R' on the data i moved over from the other server
    1. Using `root:root` caused the system to go into that "upgrading database" cycle. Fair enough, I should have done `ls -l` on the folders after they were created to confirm instead of assuming it was the root user.
    2. This let me log in to the site but started giving me a database error
  4. Re-migrate the database
    1. I removed the entire data for the Maria DB, and re-did the entire migration of the SQL
    2. This did it, I can now log in to my site, and it seems to be working properly!
There might be a smoother way to do this, I'm still learning a lot with docker and Linux, but it's such a relief to make some progress finally! I'll leave this post up for future people having the same problem.

Viewing all articles
Browse latest Browse all 6815

Trending Articles



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