I have tried your multicraft project, but I get this error, when I start the containers with docker-compose
multicraft_1 | 2021-11-21 11:40:11,874 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:40:11,894 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:40:11,894 ERROR Database connection failed.
multicraft_1 | 2021-11-21 11:40:11,895 DEBUG Connecting to MySQL server at db:3306
and I don't know how to solve it.
Maybe it is related to this error where the databases is created and mc_user is grated privileges?
db_1 | 2021-11-21 11:38:33+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/mysqlinit.sql
db_1 | ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.
This is the complete log. Are you able to see whats wrong?
Status: Downloaded newer image for mysql:latest
Creating examples_multicraft_1 ... done
Creating examples_db_1 ... done
Attaching to examples_multicraft_1, examples_db_1
db_1 | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started.
multicraft_1 | [2021-11-21_12:38:12] - No multicraft daemon config file detected, creating new one from multicraft.conf.dist
multicraft_1 | [2021-11-21_12:38:12] - No Multicraft Panel config file found. Creating new one from config.php.dist
db_1 | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started.
db_1 | 2021-11-21 11:38:12+00:00 [Note] [Entrypoint]: Initializing database files
db_1 | 2021-11-21T11:38:12.611640Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.27) initializing of server in progress as process 43
db_1 | 2021-11-21T11:38:12.634751Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1 | 2021-11-21T11:38:14.943864Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
multicraft_1 | Multicraft 2.4.1 - Minecraft Server Manager Daemon
multicraft_1 | Loading configuration from /opt/multicraft/multicraft.conf
multicraft_1 | DOCKER: The daemon needs to run in multiuser mode for Docker support to work.
multicraft_1 | DOCKER: See the "multiuser" setting in the multicraft.conf
multicraft_1 | Starting daemon
multicraft_1 | Permissions set, exiting.
multicraft_1 | [2021-11-21_12:38:17] - No Apache config file found. Creating one from template.
multicraft_1 | * Starting Apache httpd web server apache2
multicraft_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.2. Set the 'ServerName' directive globally to suppress this message
db_1 | 2021-11-21T11:38:18.235655Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
db_1 | 2021-11-21T11:38:18.235683Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
db_1 | 2021-11-21T11:38:18.323862Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
multicraft_1 | *
multicraft_1 | [2021-11-21_12:38:18] - Symlinked Data
multicraft_1 | [2021-11-21_12:38:18] - Symlinked Jar
multicraft_1 | [2021-11-21_12:38:18] - Symlinked Servers
multicraft_1 | [2021-11-21_12:38:18] - Symlinked Templates
db_1 | 2021-11-21 11:38:29+00:00 [Note] [Entrypoint]: Database files initialized
db_1 | 2021-11-21 11:38:29+00:00 [Note] [Entrypoint]: Starting temporary server
db_1 | 2021-11-21T11:38:29.525315Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.27) starting as process 92
db_1 | 2021-11-21T11:38:29.551478Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1 | 2021-11-21T11:38:29.870811Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1 | 2021-11-21T11:38:30.312892Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
db_1 | 2021-11-21T11:38:30.312956Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
db_1 | 2021-11-21T11:38:30.315849Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2021-11-21T11:38:30.315972Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1 | 2021-11-21T11:38:30.321869Z 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.
db_1 | 2021-11-21T11:38:30.366665Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: /var/run/mysqld/mysqlx.sock
db_1 | 2021-11-21T11:38:30.366709Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.27' socket: '/var/run/mysqld/mysqld.sock' port: 0 MySQL Community Server - GPL.
db_1 | 2021-11-21 11:38:30+00:00 [Note] [Entrypoint]: Temporary server started.
db_1 | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
db_1 | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
db_1 | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
db_1 | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
db_1 |
db_1 | 2021-11-21 11:38:33+00:00 [Note] [Entrypoint]: /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/mysqlinit.sql
db_1 | ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.
db_1 | 2021-11-21 11:38:35+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1 | 2021-11-21 11:38:35+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.27-1debian10 started.
db_1 | 2021-11-21T11:38:35.429504Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.27) starting as process 1
db_1 | 2021-11-21T11:38:35.446425Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1 | 2021-11-21T11:38:39.750628Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
db_1 | 2021-11-21T11:38:40.013361Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...
db_1 | 2021-11-21T11:38:40.026366Z 0 [System] [MY-010232] [Server] XA crash recovery finished.
db_1 | 2021-11-21T11:38:40.195072Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main
db_1 | 2021-11-21T11:38:40.195141Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main
db_1 | 2021-11-21T11:38:40.197314Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
db_1 | 2021-11-21T11:38:40.197421Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
db_1 | 2021-11-21T11:38:40.204693Z 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.
db_1 | 2021-11-21T11:38:40.251788Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
db_1 | 2021-11-21T11:38:40.251923Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.27' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
multicraft_1 | [2021-11-21_12:38:47] - Symlinked HTML
multicraft_1 | [2021-11-21_12:38:47] - Symlinked Key
multicraft_1 | 2021-11-21 11:38:59,950 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:00,015 INFO File installed, status: done, message:
multicraft_1 | 2021-11-21 11:39:00,016 INFO Updating: minecraft_optimized.jar.conf
multicraft_1 | 2021-11-21 11:39:00,016 INFO Starting download from http://www.multicraft.org/download/conf/?file=minecraft_optimized.jar.conf&version=2.4.1&os=posix&arch=64&machine=x86_64
multicraft_1 | 2021-11-21 11:39:00,220 INFO Download finished.
multicraft_1 | 2021-11-21 11:39:00,220 INFO Checked file, status: ready
multicraft_1 | 2021-11-21 11:39:00,220 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:00,222 INFO File installed, status: done, message:
multicraft_1 | 2021-11-21 11:39:00,227 INFO Updating: minecraft_optimized.jar
multicraft_1 | 2021-11-21 11:39:00,228 INFO Starting download from http://www.multicraft.org/download/jar/?file=minecraft&version=latest&client=multicraft
multicraft_1 | 2021-11-21 11:39:06,697 INFO Download finished.
multicraft_1 | 2021-11-21 11:39:06,697 INFO Checked file, status: ready
multicraft_1 | 2021-11-21 11:39:06,698 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:06,767 INFO File installed, status: done, message:
multicraft_1 | 2021-11-21 11:39:06,767 INFO Updating: minecraft_server.jar.conf
multicraft_1 | 2021-11-21 11:39:06,767 INFO Starting download from http://www.multicraft.org/download/conf/?file=minecraft_server.jar.conf&version=2.4.1&os=posix&arch=64&machine=x86_64
multicraft_1 | 2021-11-21 11:39:07,127 INFO Download finished.
multicraft_1 | 2021-11-21 11:39:07,128 INFO Checked file, status: ready
multicraft_1 | 2021-11-21 11:39:07,129 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:07,130 INFO File installed, status: done, message:
multicraft_1 | 2021-11-21 11:39:07,137 INFO Updating: minecraft_server.jar
multicraft_1 | 2021-11-21 11:39:07,137 INFO Starting download from http://www.multicraft.org/download/jar/?file=minecraft&version=latest&client=multicraft
multicraft_1 | 2021-11-21 11:39:11,864 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:39:11,871 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:39:11,871 ERROR Database connection failed.
multicraft_1 | 2021-11-21 11:39:11,872 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:39:11,872 WARNING Setting daemon info failed, please update your database.
multicraft_1 | 2021-11-21 11:39:11,876 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:39:11,876 ERROR Database connection failed.
multicraft_1 | 2021-11-21 11:39:11,876 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:39:11,880 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:39:11,880 ERROR Database connection failed.
multicraft_1 | 2021-11-21 11:39:14,185 INFO Download finished.
multicraft_1 | 2021-11-21 11:39:14,185 INFO Checked file, status: ready
multicraft_1 | 2021-11-21 11:39:14,186 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:14,253 INFO File installed, status: done, message:
multicraft_1 | 2021-11-21 11:39:14,254 INFO Updating: spigot.jar.conf
multicraft_1 | 2021-11-21 11:39:14,254 INFO Starting download from http://www.multicraft.org/download/conf/?file=spigot.jar.conf&version=2.4.1&os=posix&arch=64&machine=x86_64
multicraft_1 | 2021-11-21 11:39:14,633 INFO Download finished.
multicraft_1 | 2021-11-21 11:39:14,634 INFO Checked file, status: uptodate
multicraft_1 | 2021-11-21 11:39:14,635 INFO File has not changed, no update necessary
multicraft_1 | 2021-11-21 11:39:14,635 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:14,640 INFO Updating: spigot.jar
multicraft_1 | 2021-11-21 11:39:14,640 INFO Starting download from http://www.multicraft.org/download/jar/?file=spigot&version=latest&client=multicraft
multicraft_1 | 2021-11-21 11:39:21,177 INFO Download finished.
multicraft_1 | 2021-11-21 11:39:21,177 INFO Checked file, status: ready
multicraft_1 | 2021-11-21 11:39:21,178 INFO Install of downloaded file requested
multicraft_1 | 2021-11-21 11:39:21,248 INFO File installed, status: done, message:
multicraft_1 | 2021-11-21 11:39:31,866 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:39:31,874 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:39:31,874 ERROR Database connection failed.
multicraft_1 | 2021-11-21 11:39:31,874 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:39:31,875 WARNING Setting daemon info failed, please update your database.
multicraft_1 | 2021-11-21 11:39:31,882 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:39:31,882 ERROR Database connection failed.
multicraft_1 | 2021-11-21 11:39:31,882 DEBUG Connecting to MySQL server at db:3306
multicraft_1 | 2021-11-21 11:39:31,889 ERROR Failed to connect to MySQL: (1045, "Access denied for user 'mc_user'@'172.19.0.2' (using password: YES)")
multicraft_1 | 2021-11-21 11:39:31,890 ERROR Database connection failed.