I am trying to upgrade from back in 2019 to use edX again in my Digital Logic class. The very old version of tutor was working fine, but the IT guys don’t like me running old software, so I am trying to upgrade. I backed up, pip installed tutor and then did tutor local launch. It does a bunch of things, but then it repeatedly waits for MySQL, and then finally I get this message:
MySQL initialisation error
Error: Command failed with status 1: docker compose -f /home/frohro/.local/share/tutor/env/local/docker-compose.yml -f /home/frohro/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local -f /home/frohro/.local/share/tutor/env/local/docker-compose.jobs.yml run --rm mysql-job sh -e -c echo “Initialising MySQL…”
mysql_connection_max_attempts=10
mysql_connection_attempt=0
until mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e ‘exit’
do
mysql_connection_attempt=$(expr $mysql_connection_attempt + 1)
echo " [$mysql_connection_attempt/$mysql_connection_max_attempts] Waiting for MySQL service (this may take a while)…"
if [ $mysql_connection_attempt -eq $mysql_connection_max_attempts ]
then
echo “MySQL initialisation error” 1>&2
exit 1
fi
sleep 10
done
echo “MySQL is up and running”
edx-platform database
After this there appear te bo some MySQL commands with usernames and passwords I did not copy, possibly the commands that failed.
I should add, I’m okay with losing data if solving this is easier that way. I just want to set it up for use this quarter with a new cohort of students. I have the edX classes backed up if I need to reload them.
Thanks,
Rob