ERROR 1130 (HY000): Host '172.19.0.13' is not allowed to connect to this MySQL server

Hi all. I am trying to run Open edX for development on my Ubuntu 22.04.3 LTS laptop. I am using Python version 3.8.10.

Step 1: I installed the latest version of Tutor using the command pip install "tutor[full]" (current version is 16.1.1).

Step 2: I ran the command tutor images build openedx-dev. Then I ran the command tutor dev launch. While this command is processing, I encountered an error: ERROR 1130 (HY000): Host '172.19.0.8' is not allowed to connect to this MySQL server.

What are the logs coming from the mysql container? (tutor local logs mysql)

This is logs coming from mysql container

tutor_dev-mysql-1  | 2023-09-25 09:16:34+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:16:34.373164Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:16:34.634745Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:16:34.641045Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:16:34.664993Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:16:34.665066Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:16:34.703661Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:16:37+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:16:37.795392Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.013534Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.015955Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:16:38.018228Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.018237Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.038139Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.292795Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.432340Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:16:38.442751Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.534055Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.534430Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.538153Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:16:38.567891Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:16:38.568000Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tutor_dev-mysql-1  | 2023-09-25 09:18:30+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:18:31.079651Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:18:31.370338Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:31.378245Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:18:31.384176Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:31.384186Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:31.416835Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:18:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:18:39.187039Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:18:39.487883Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:39.493397Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:18:39.498626Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:39.498634Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:39.539767Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:18:53+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:18:53.753282Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:18:53.997107Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:53.999370Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:18:54.001116Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.001122Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.014464Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.289755Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.424719Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:18:54.437057Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.519879Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.520250Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.523807Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:18:54.550694Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:18:54.550869Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tutor_dev-mysql-1  | 2023-09-25 09:19:34+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:19:40.350804Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:19:41.596156Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:19:41.617334Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:19:41.632084Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:19:41.632096Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:19:41.681156Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:24:39+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:24:40.640615Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:24:40.945042Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:24:40.951881Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:24:40.957806Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:24:40.957815Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:24:40.989854Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:24:41.966370Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:24:42.172559Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:24:42.187341Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:24:42.256452Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:24:42.256679Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:24:42.262158Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:24:42.295880Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:24:42.296046Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tutor_dev-mysql-1  | 2023-09-25 09:25:02+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:25:03.025514Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.283373Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.285833Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:25:03.287612Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.287617Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.295928Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.595658Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.744031Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:25:03.754719Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.842831Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.842966Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.846948Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:25:03.877410Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:25:03.877532Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tutor_dev-mysql-1  | 2023-09-25 09:25:59+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:00.179156Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:00.530178Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:00.541124Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:00.548240Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:00.548253Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:00.615449Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:26:03+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:04.948395Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:05.276225Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:05.284007Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:05.289821Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:05.289833Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:05.322785Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:26:07+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:07.663610Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:08.612842Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:08.619129Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:08.624141Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:08.624149Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:08.647381Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:26:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:11.271009Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:11.530785Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:11.533918Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:11.536344Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:11.536351Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:11.563417Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:26:11.885327Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25 09:26:14+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:15.094363Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:15.891946Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:15.896490Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:15.900987Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:15.900995Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:15.918594Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:26:16.218614Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:26:16.366488Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:26:16.377672Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:26:16.418602Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:26:16.418720Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:26:16.422431Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:26:16.442451Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:26:16.442533Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tutor_dev-mysql-1  | 2023-09-25 09:26:29+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:29.477506Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:29.738185Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:29.743745Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:29.749743Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:29.749754Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:29.773774Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:26:37+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:38.136991Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:38.532775Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:38.542071Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:38.553366Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:38.553385Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:38.620622Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25 09:26:40+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:41.047025Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:41.882480Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:41.896294Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:41.917243Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:41.917260Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:41.976986Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:26:42.819197Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:26:43.043068Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:26:43.060757Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:26:43.177632Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:26:43.177814Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:26:43.182713Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:26:43.232065Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:26:43.232236Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.
tutor_dev-mysql-1  | 2023-09-25 09:26:58+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.1.0-1.el8 started.
tutor_dev-mysql-1  | '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
tutor_dev-mysql-1  | 2023-09-25T09:26:58.652492Z 0 [System] [MY-015015] [Server] MySQL Server - start.
tutor_dev-mysql-1  | 2023-09-25T09:26:58.893383Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:58.898029Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.1.0) starting as process 1
tutor_dev-mysql-1  | 2023-09-25T09:26:58.902373Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:58.902380Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8mb3_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
tutor_dev-mysql-1  | 2023-09-25T09:26:58.930905Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
tutor_dev-mysql-1  | 2023-09-25T09:26:59.579062Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
tutor_dev-mysql-1  | 2023-09-25T09:26:59.807083Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
tutor_dev-mysql-1  | 2023-09-25T09:26:59.822433Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
tutor_dev-mysql-1  | 2023-09-25T09:26:59.920420Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
tutor_dev-mysql-1  | 2023-09-25T09:26:59.920578Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
tutor_dev-mysql-1  | 2023-09-25T09:26:59.925330Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
tutor_dev-mysql-1  | 2023-09-25T09:26:59.964280Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
tutor_dev-mysql-1  | 2023-09-25T09:26:59.964467Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.1.0'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server - GPL.

And this is logs coming from lms container

tutor_dev-lms-1  | 2023-09-25 09:15:31,946 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/debug_toolbar/settings.py:83: DeprecationWarning: Please remove debug_toolbar.panels.logging.LoggingPanel from your DEBUG_TOOLBAR_PANELS setting.
tutor_dev-lms-1  |   warnings.warn(
tutor_dev-lms-1  | 
tutor_dev-lms-1  | 2023-09-25 09:15:45,904 WARNING 23 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/debug_toolbar/settings.py:83: DeprecationWarning: Please remove debug_toolbar.panels.logging.LoggingPanel from your DEBUG_TOOLBAR_PANELS setting.
tutor_dev-lms-1  |   warnings.warn(
tutor_dev-lms-1  | 
tutor_dev-lms-1  | Watching for file changes with StatReloader
tutor_dev-lms-1  | 2023-09-25 09:15:46,016 INFO 23 [django.utils.autoreload] [user None] [ip None] autoreload.py:637 - Watching for file changes with StatReloader
tutor_dev-lms-1  | Performing system checks...
tutor_dev-lms-1  | 
tutor_dev-lms-1  | System check identified no issues (3 silenced).
tutor_dev-lms-1  | Exception in thread django-main-thread:
tutor_dev-lms-1  | Traceback (most recent call last):
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_dev-lms-1  |     self.connection = self.get_new_connection(conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_dev-lms-1  |     connection = Database.connect(**conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 123, in Connect
tutor_dev-lms-1  |     return Connection(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
tutor_dev-lms-1  |     super().__init__(*args, **kwargs2)
tutor_dev-lms-1  | MySQLdb.OperationalError: (1130, "Host '172.18.0.8' is not allowed to connect to this MySQL server")
tutor_dev-lms-1  | 
tutor_dev-lms-1  | The above exception was the direct cause of the following exception:
tutor_dev-lms-1  | 
tutor_dev-lms-1  | Traceback (most recent call last):
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/threading.py", line 932, in _bootstrap_inner
tutor_dev-lms-1  |     self.run()
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/threading.py", line 870, in run
tutor_dev-lms-1  |     self._target(*self._args, **self._kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
tutor_dev-lms-1  |     fn(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
tutor_dev-lms-1  |     self.check_migrations()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 486, in check_migrations
tutor_dev-lms-1  |     executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__
tutor_dev-lms-1  |     self.loader = MigrationLoader(self.connection)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in __init__
tutor_dev-lms-1  |     self.build_graph()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 214, in build_graph
tutor_dev-lms-1  |     self.load_disk()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 116, in load_disk
tutor_dev-lms-1  |     migration_module = import_module(migration_path)
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/importlib/__init__.py", line 127, in import_module
tutor_dev-lms-1  |     return _bootstrap._gcd_import(name[level:], package, level)
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap_external>", line 843, in exec_module
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 24, in <module>
tutor_dev-lms-1  |     class Migration(migrations.Migration):
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 36, in Migration
tutor_dev-lms-1  |     fields = table_description()
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 15, in table_description
tutor_dev-lms-1  |     cursor = connection.cursor()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
tutor_dev-lms-1  |     return self._cursor()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
tutor_dev-lms-1  |     self.ensure_connection()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
tutor_dev-lms-1  |     raise dj_exc_value.with_traceback(traceback) from exc_value
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_dev-lms-1  |     self.connection = self.get_new_connection(conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_dev-lms-1  |     connection = Database.connect(**conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 123, in Connect
tutor_dev-lms-1  |     return Connection(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
tutor_dev-lms-1  |     super().__init__(*args, **kwargs2)
tutor_dev-lms-1  | django.db.utils.OperationalError: (1130, "Host '172.18.0.8' is not allowed to connect to this MySQL server")
tutor_dev-lms-1  | 2023-09-25 09:18:57,090 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/debug_toolbar/settings.py:83: DeprecationWarning: Please remove debug_toolbar.panels.logging.LoggingPanel from your DEBUG_TOOLBAR_PANELS setting.
tutor_dev-lms-1  |   warnings.warn(
tutor_dev-lms-1  | 
tutor_dev-lms-1  | 2023-09-25 09:19:05,782 WARNING 23 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/debug_toolbar/settings.py:83: DeprecationWarning: Please remove debug_toolbar.panels.logging.LoggingPanel from your DEBUG_TOOLBAR_PANELS setting.
tutor_dev-lms-1  |   warnings.warn(
tutor_dev-lms-1  | 
tutor_dev-lms-1  | Watching for file changes with StatReloader
tutor_dev-lms-1  | 2023-09-25 09:19:05,845 INFO 23 [django.utils.autoreload] [user None] [ip None] autoreload.py:637 - Watching for file changes with StatReloader
tutor_dev-lms-1  | Performing system checks...
tutor_dev-lms-1  | 
tutor_dev-lms-1  | System check identified no issues (3 silenced).
tutor_dev-lms-1  | Exception in thread django-main-thread:
tutor_dev-lms-1  | Traceback (most recent call last):
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_dev-lms-1  |     self.connection = self.get_new_connection(conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_dev-lms-1  |     connection = Database.connect(**conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 123, in Connect
tutor_dev-lms-1  |     return Connection(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
tutor_dev-lms-1  |     super().__init__(*args, **kwargs2)
tutor_dev-lms-1  | MySQLdb.OperationalError: (2005, "Unknown MySQL server host 'mysql' (-2)")
tutor_dev-lms-1  | 
tutor_dev-lms-1  | The above exception was the direct cause of the following exception:
tutor_dev-lms-1  | 
tutor_dev-lms-1  | Traceback (most recent call last):
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/threading.py", line 932, in _bootstrap_inner
tutor_dev-lms-1  |     self.run()
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/threading.py", line 870, in run
tutor_dev-lms-1  |     self._target(*self._args, **self._kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
tutor_dev-lms-1  |     fn(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
tutor_dev-lms-1  |     self.check_migrations()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 486, in check_migrations
tutor_dev-lms-1  |     executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__
tutor_dev-lms-1  |     self.loader = MigrationLoader(self.connection)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in __init__
tutor_dev-lms-1  |     self.build_graph()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 214, in build_graph
tutor_dev-lms-1  |     self.load_disk()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 116, in load_disk
tutor_dev-lms-1  |     migration_module = import_module(migration_path)
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/importlib/__init__.py", line 127, in import_module
tutor_dev-lms-1  |     return _bootstrap._gcd_import(name[level:], package, level)
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap_external>", line 843, in exec_module
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 24, in <module>
tutor_dev-lms-1  |     class Migration(migrations.Migration):
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 36, in Migration
tutor_dev-lms-1  |     fields = table_description()
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 15, in table_description
tutor_dev-lms-1  |     cursor = connection.cursor()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
tutor_dev-lms-1  |     return self._cursor()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
tutor_dev-lms-1  |     self.ensure_connection()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
tutor_dev-lms-1  |     raise dj_exc_value.with_traceback(traceback) from exc_value
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_dev-lms-1  |     self.connection = self.get_new_connection(conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_dev-lms-1  |     connection = Database.connect(**conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 123, in Connect
tutor_dev-lms-1  |     return Connection(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
tutor_dev-lms-1  |     super().__init__(*args, **kwargs2)
tutor_dev-lms-1  | django.db.utils.OperationalError: (2005, "Unknown MySQL server host 'mysql' (-2)")
tutor_dev-lms-1  | 2023-09-25 09:26:05,003 WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/debug_toolbar/settings.py:83: DeprecationWarning: Please remove debug_toolbar.panels.logging.LoggingPanel from your DEBUG_TOOLBAR_PANELS setting.
tutor_dev-lms-1  |   warnings.warn(
tutor_dev-lms-1  | 
tutor_dev-lms-1  | 2023-09-25 09:26:16,486 WARNING 23 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/debug_toolbar/settings.py:83: DeprecationWarning: Please remove debug_toolbar.panels.logging.LoggingPanel from your DEBUG_TOOLBAR_PANELS setting.
tutor_dev-lms-1  |   warnings.warn(
tutor_dev-lms-1  | 
tutor_dev-lms-1  | Watching for file changes with StatReloader
tutor_dev-lms-1  | 2023-09-25 09:26:16,594 INFO 23 [django.utils.autoreload] [user None] [ip None] autoreload.py:637 - Watching for file changes with StatReloader
tutor_dev-lms-1  | Performing system checks...
tutor_dev-lms-1  | 
tutor_dev-lms-1  | System check identified no issues (3 silenced).
tutor_dev-lms-1  | Exception in thread django-main-thread:
tutor_dev-lms-1  | Traceback (most recent call last):
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_dev-lms-1  |     self.connection = self.get_new_connection(conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_dev-lms-1  |     connection = Database.connect(**conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 123, in Connect
tutor_dev-lms-1  |     return Connection(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
tutor_dev-lms-1  |     super().__init__(*args, **kwargs2)
tutor_dev-lms-1  | MySQLdb.OperationalError: (2003, "Can't connect to MySQL server on 'mysql:3306' (111)")
tutor_dev-lms-1  | 
tutor_dev-lms-1  | The above exception was the direct cause of the following exception:
tutor_dev-lms-1  | 
tutor_dev-lms-1  | Traceback (most recent call last):
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/threading.py", line 932, in _bootstrap_inner
tutor_dev-lms-1  |     self.run()
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/threading.py", line 870, in run
tutor_dev-lms-1  |     self._target(*self._args, **self._kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 64, in wrapper
tutor_dev-lms-1  |     fn(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 121, in inner_run
tutor_dev-lms-1  |     self.check_migrations()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/core/management/base.py", line 486, in check_migrations
tutor_dev-lms-1  |     executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/executor.py", line 18, in __init__
tutor_dev-lms-1  |     self.loader = MigrationLoader(self.connection)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 53, in __init__
tutor_dev-lms-1  |     self.build_graph()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 214, in build_graph
tutor_dev-lms-1  |     self.load_disk()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/migrations/loader.py", line 116, in load_disk
tutor_dev-lms-1  |     migration_module = import_module(migration_path)
tutor_dev-lms-1  |   File "/opt/pyenv/versions/3.8.15/lib/python3.8/importlib/__init__.py", line 127, in import_module
tutor_dev-lms-1  |     return _bootstrap._gcd_import(name[level:], package, level)
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 991, in _find_and_load
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap_external>", line 843, in exec_module
tutor_dev-lms-1  |   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 24, in <module>
tutor_dev-lms-1  |     class Migration(migrations.Migration):
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 36, in Migration
tutor_dev-lms-1  |     fields = table_description()
tutor_dev-lms-1  |   File "/openedx/edx-platform/openedx/core/djangoapps/content/course_overviews/migrations/0009_readd_facebook_url.py", line 15, in table_description
tutor_dev-lms-1  |     cursor = connection.cursor()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 259, in cursor
tutor_dev-lms-1  |     return self._cursor()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 235, in _cursor
tutor_dev-lms-1  |     self.ensure_connection()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
tutor_dev-lms-1  |     raise dj_exc_value.with_traceback(traceback) from exc_value
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 219, in ensure_connection
tutor_dev-lms-1  |     self.connect()
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/base/base.py", line 200, in connect
tutor_dev-lms-1  |     self.connection = self.get_new_connection(conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/utils/asyncio.py", line 33, in inner
tutor_dev-lms-1  |     return func(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/django/db/backends/mysql/base.py", line 234, in get_new_connection
tutor_dev-lms-1  |     connection = Database.connect(**conn_params)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/__init__.py", line 123, in Connect
tutor_dev-lms-1  |     return Connection(*args, **kwargs)
tutor_dev-lms-1  |   File "/openedx/venv/lib/python3.8/site-packages/MySQLdb/connections.py", line 185, in __init__
tutor_dev-lms-1  |     super().__init__(*args, **kwargs2)
tutor_dev-lms-1  | django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on 'mysql:3306' (111)")

Your mysql container is crashing/restarting in an infinite loop. What’s the output of docker ps | grep mysql?

This is output of docker ps | grep mysql

How much memory do you have on your computer? free -h

My computer still has some GB of memory
image

Can you try to run the mysql container on its own?

tutor dev stop
tutor local stop
tutor dev run mysql

I stopped all containers and ran the command tutor dev run mysql, and got this result.

Your mysql container seems to be working just fine. Let’s delete all containers and try to restart the platform:

tutor dev dc down
tutor local dc down
tutor dev launch
1 Like

Hi everyone @regis ,

I am having the same issue, so here is my background using windows:

  1. Your mysql container is crashing/restarting in an infinite loop. What’s the output of docker ps | grep mysql?

  2. How much memory do you have on your computer? free -h
    image

  3. Can you try to run the mysql container on its own?
    tutor dev stop
    tutor local stop
    tutor dev run mysql

  4. I’ve tried this but no use:

tutor dev dc down
tutor local dc down
tutor dev launch

Can you help me with this?