awesome-kyuubi / hadoop-testing

Testing Sandbox for Hadoop Ecosystem Components
Apache License 2.0
32 stars 13 forks source link

MySQL container can not be started normally #7

Closed yanghua closed 10 months ago

yanghua commented 10 months ago

The detailed error list below:

mysql           | mysql 08:47:13.50
mysql           | mysql 08:47:13.50 Welcome to the Bitnami mysql container
mysql           | mysql 08:47:13.51 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mysql
mysql           | mysql 08:47:13.51 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mysql/issues
mysql           | mysql 08:47:13.51
mysql           | mysql 08:47:13.51 INFO  ==> ** Starting MySQL setup **
mysql           | mysql 08:47:13.53 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql           | mysql 08:47:13.53 INFO  ==> Initializing mysql database
mysql           | mysql 08:47:13.55 INFO  ==> Updating 'my.cnf' with custom configuration
mysql           | mysql 08:47:13.55 INFO  ==> Setting default_authentication_plugin option
mysql           | mysql 08:47:13.56 INFO  ==> Using persisted data
mysql           | mysql: Can't get stat of '/opt/bitnami/mysql/conf/bitnami/my_custom.cnf' (OS errno 2 - No such file or directory)
mysql           | mysql: [ERROR] Stopped processing the 'include' directive in file /opt/bitnami/mysql/conf/my.cnf at line 30.
mysql           | mysql: Can't get stat of '/opt/bitnami/mysql/conf/bitnami/my_custom.cnf' (OS errno 2 - No such file or directory)
mysql           | mysql: [ERROR] Stopped processing the 'include' directive in file /opt/bitnami/mysql/conf/my.cnf at line 30.
mysql           | mysql: Can't get stat of '/opt/bitnami/mysql/conf/bitnami/my_custom.cnf' (OS errno 2 - No such file or directory)
mysql           | mysql: [ERROR] Stopped processing the 'include' directive in file /opt/bitnami/mysql/conf/my.cnf at line 30.
mysql           | mysql 08:47:13.58 INFO  ==> Running mysql_upgrade
mysql           | mysql 08:47:13.59 INFO  ==> Starting mysql in background
mysql           | mysql 08:47:19.60 INFO  ==> Loading user's custom files from /docker-entrypoint-initdb.d
grafana         | logger=cleanup t=2024-01-05T08:54:53.1976969Z level=info msg="Completed cleanup jobs" duration=5.6468ms
grafana         | logger=grafana.update.checker t=2024-01-05T08:54:55.4631048Z level=info msg="Update check succeeded" duration=725.5994ms
grafana         | logger=plugins.update.checker t=2024-01-05T08:54:55.5665859Z level=info msg="Update check succeeded" duration=711.166ms
mysql           | mysql 08:57:23.15 ERROR ==> Timed out waiting for MySQL to be accessible
mysql           | mysql 08:57:23.16 INFO  ==> Stopping mysql

solution:

touch /opt/bitnami/mysql/conf/bitnami/my_custom.cnf
pan3793 commented 10 months ago

Emm... seems I haven't met this issue, do you mean that the bitnami/mysql has issues with the default configurations?

yanghua commented 10 months ago

Emm... seems I haven't met this issue, do you mean that the bitnami/mysql has issues with the default configurations?

yes, follow the readme guide(did not change anything), I met this issue.

pan3793 commented 10 months ago

some possibilities I guess:

  1. we use bitnami/mysql:8.0, the tag is not unique, maybe a recent version is broken, pin a x.y.z version may help
  2. you just hit a transient issue