Description
Describe your problem
dependency failed to start: container ragflow-mysql is unhealthy
(base) [root@localhost ragflow]# docker logs ragflow-mysql
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:17+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:17.180866Z 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.
2025-01-09T05:34:17.180927Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:17.180937Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 81
2025-01-09T05:34:17.186467Z 0 [Warning] [MY-010001] [Server] Can't create thread to handle bootstrap (errno: 1)
2025-01-09T05:34:17.186496Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2025-01-09T05:34:17.186502Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:17.186508Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:17.186754Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:17+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:17+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:17.885381Z 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.
2025-01-09T05:34:17.885437Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:17.885447Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 81
2025-01-09T05:34:17.886286Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:17.886290Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:17.886315Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:17.886385Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:18+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:18+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:18+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:18+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:18+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:18.621976Z 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.
2025-01-09T05:34:18.622033Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:18.622043Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 81
2025-01-09T05:34:18.622876Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:18.622879Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:18.622904Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:18.622969Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:19+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:19+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:19+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:19+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:19+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:19.522766Z 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.
2025-01-09T05:34:19.522823Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:19.522833Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 81
2025-01-09T05:34:19.523697Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:19.523701Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:19.523727Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:19.523792Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:20+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:20+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:20+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:20+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:20+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:20.912706Z 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.
2025-01-09T05:34:20.912791Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:20.912807Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 81
2025-01-09T05:34:20.914089Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:20.914094Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:20.914136Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:20.914230Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:22+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:22+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:22+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:23+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:23+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:23.032330Z 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.
2025-01-09T05:34:23.032405Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:23.032416Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 80
2025-01-09T05:34:23.033272Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:23.033276Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:23.033306Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:23.033390Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:26+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:26+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:26+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:26+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:26+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:26.759117Z 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.
2025-01-09T05:34:26.759176Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:26.759186Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 81
2025-01-09T05:34:26.760048Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:26.760051Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:26.760078Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:26.760144Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.
2025-01-09 13:34:33+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:33+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2025-01-09 13:34:33+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.39-1.el9 started.
2025-01-09 13:34:33+08:00 [Warn] [Entrypoint]: MYSQL_PASSWORD specified, but missing MYSQL_USER; MYSQL_PASSWORD will be ignored
2025-01-09 13:34:33+08:00 [Note] [Entrypoint]: Initializing database files
2025-01-09T05:34:33.647967Z 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.
2025-01-09T05:34:33.648021Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2025-01-09T05:34:33.648031Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 80
2025-01-09T05:34:33.648853Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2025-01-09T05:34:33.648856Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
2025-01-09T05:34:33.648879Z 0 [ERROR] [MY-010119] [Server] Aborting
2025-01-09T05:34:33.648938Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39) MySQL Community Server - GPL.