mysql8+seaweedfs-csi-driver

江南叶少發表於2024-07-19

mysql8使用seaweedfs-storage 啟動異常如下:

mysql 07:28:20.10
mysql 07:28:20.11 Welcome to the Bitnami mysql container
mysql 07:28:20.11 Subscribe to project updates by watching https://github.com/bitnami/containers
mysql 07:28:20.12 Submit issues and feature requests at https://github.com/bitnami/containers/issues
mysql 07:28:20.12
mysql 07:28:20.12 INFO  ==> ** Starting MySQL setup **
mysql 07:28:20.16 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mysql 07:28:20.17 INFO  ==> Initializing mysql database
mysql 07:28:20.20 WARN  ==> The mysql configuration file '/opt/bitnami/mysql/conf/my.cnf' is not writable. Configurations based on environment variables will not be applied for this file.
mysql 07:28:20.67 INFO  ==> Installing database
2024-07-19T07:28:20.716760Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2024-07-19T07:28:20.716788Z 0 [System] [MY-013169] [Server] /opt/bitnami/mysql/bin/mysqld (mysqld 8.0.33) initializing of server in progress as process 29
2024-07-19T07:28:20.718190Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2024-07-19T07:28:20.718201Z 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.
2024-07-19T07:28:20.786883Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-07-19T07:28:22.975389Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 17 in a file operation.
2024-07-19T07:28:22.975485Z 1 [ERROR] [MY-012596] [InnoDB] Error number 17 means 'File exists'
2024-07-19T07:28:22.975542Z 1 [ERROR] [MY-012126] [InnoDB] Cannot create file './#innodb_temp/temp_2.ibt'
2024-07-19T07:28:22.975584Z 1 [ERROR] [MY-012127] [InnoDB] The file './#innodb_temp/temp_2.ibt' already exists though the corresponding table did not exist. Have you moved InnoDB .ibd files around without using the SQL commands DISCARD TABLESPACE and IMPORT TABLESPACE, or did mysqld crash in the middle of CREATE TABLE? You can resolve the problem by removing the file './#innodb_temp/temp_2.ibt' under the 'datadir' of MySQL.
2024-07-19T07:28:22.975617Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB Database creation was aborted with error Tablespace already exists. You may need to delete the ibdata1 file before trying to start up again.
2024-07-19T07:28:23.359994Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2024-07-19T07:28:23.360075Z 0 [ERROR] [MY-013236] [Server] The designated data directory /bitnami/mysql/data/ is unusable. You can remove all files that the server added to it.
2024-07-19T07:28:23.360097Z 0 [ERROR] [MY-010119] [Server] Aborting
2024-07-19T07:28:23.361548Z 0 [System] [MY-010910] [Server] /opt/bitnami/mysql/bin/mysqld: Shutdown complete (mysqld 8.0.33)  Source distribution.