I am testing to see if I will run into issues if instead of solving this problem:
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
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “CREATE DATABASE IF NOT EXISTS openedx;”
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “CREATE USER IF NOT EXISTS ‘openedx’;”
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “ALTER USER ‘openedx’@‘%’ IDENTIFIED BY ‘JQo8cLBO’;”
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “GRANT ALL ON openedx.* TO ‘openedx’@‘%’;”
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
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “CREATE DATABASE IF NOT EXISTS openedx;”
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “CREATE USER IF NOT EXISTS ‘openedx’;”
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “ALTER USER ‘openedx’@‘%’ IDENTIFIED BY ‘JQo8cLBO’;”
mysql -u root --password=“JQo8cLBO” --host “mysql” --port 3306 -e “GRANT ALL ON openedx.* TO ‘openedx’@‘%’;”
$ tutor local logs myqsl
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 logs myqsl
no such service: myqsl
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 logs myqsl
I got problem while I was trying to update an installation from 2019 using tutor. I don’t really care a lot about keeping the student data, as I should be able to load the class again, so I tried a brand new (not for deployment install on my laptop running Ubuntu 24.04 instead of my server. It installed just fine, and I was able to get to where I needed to verify my email for studio, but I don’t get the email. It is not in my junk or anywhere else. The email address is correct. I am sure I have checked everything I can think of. I am using Microsoft Outlook. Here is what I did to debug the email problem:
~$ tutor local run --no-deps lms ./manage.py lms shell -c “from django.core.mail import send_mail; send_mail(‘test subject’, ‘test message’, ‘rob.frohne@wallawalla.edu’, [‘rob.frohne@wallawalla.edu’])”
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 run --rm --no-deps lms ./manage.py lms shell -c ‘from django.core.mail import send_mail; send_mail(’“'”‘test subject’“'”‘, ‘"’“‘test message’”’“', '”‘“‘rob.frohne@wallawalla.edu’”’“‘, [’”‘“‘rob.frohne@wallawalla.edu’”’"‘])’
2024-10-01 04:24:26,563 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:110 - /openedx/venv/lib/python3.11/site-packages/pgpy/constants.py:5: DeprecationWarning: ‘imghdr’ is deprecated and slated for removal in Python 3.13
import imghdr
frohro@silver:~$ tutor local logs smtp
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 logs smtp
smtp-1 | 2024-10-01 03:19:44 exim 4.96 daemon started: pid=8, -q15m, listening for SMTP on port 8025 (IPv6 and IPv4)
smtp-1 | 2024-10-01 03:19:45 Start queue run: pid=9
smtp-1 | 2024-10-01 03:19:45 End queue run: pid=9
smtp-1 | 2024-10-01 03:34:45 Start queue run: pid=10
smtp-1 | 2024-10-01 03:34:45 End queue run: pid=10
smtp-1 | 2024-10-01 03:49:45 Start queue run: pid=11
smtp-1 | 2024-10-01 03:49:45 End queue run: pid=11
smtp-1 | 2024-10-01 04:02:03 1svU5L-00000C-3B <= rob.frohne@wallawalla.edu H=(6d145b985095) [172.18.0.10] P=esmtp S=11724 id=172775532381.29.9874282460330000721@6d145b985095
smtp-1 | 2024-10-01 04:02:05 1svU5L-00000C-3B => rob.frohne@wallawalla.edu R=dnslookup T=remote_smtp H=wallawalla-edu.mail.protection.outlook.com [52.101.10.18] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C=“250 2.6.0 172775532381.29.9874282460330000721@6d145b985095 [InternalId=21539260990327, Hostname=BL4PR07MB10111.namprd07.prod.outlook.com] 20901 bytes in 0.150, 135.493 KB/sec Queued mail for delivery”
smtp-1 | 2024-10-01 04:02:05 1svU5L-00000C-3B Completed
smtp-1 | 2024-10-01 04:04:45 Start queue run: pid=15
smtp-1 | 2024-10-01 04:04:45 End queue run: pid=15
smtp-1 | 2024-10-01 04:19:46 Start queue run: pid=16
smtp-1 | 2024-10-01 04:19:46 End queue run: pid=16
smtp-1 | 2024-10-01 04:24:29 1svUR3-00000H-1B <= rob.frohne@wallawalla.edu H=(c1e5349b3780) [172.18.0.13] P=esmtp S=510 id=172775666921.1.7691042955340957504@c1e5349b3780
smtp-1 | 2024-10-01 04:24:31 1svUR3-00000H-1B => rob.frohne@wallawalla.edu R=dnslookup T=remote_smtp H=wallawalla-edu.mail.protection.outlook.com [52.101.10.10] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=yes K C=“250 2.6.0 172775666921.1.7691042955340957504@c1e5349b3780 [InternalId=142210662146971, Hostname=BN0PR07MB8262.namprd07.prod.outlook.com] 9751 bytes in 0.131, 72.483 KB/sec Queued mail for delivery”
smtp-1 | 2024-10-01 04:24:31 1svUR3-00000H-1B Completed
To me, this looks like studio sent the emails. Does anyone have any advice? Is this perhaps because I am not using a site install, just one for testing? Why no emails?
Thanks,
Rob