After upgrade to 7.0, I continuous received InnoDB: Error
After docker-compose up, the first two lines of them are
seafile-mysql | 2019-06-16 04:21:10 7f52fd8c1700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:10 7f52fd8c1700 InnoDB: Error: Fetch of persistent statistics requested for table "mysql"."gtid_slave_pos" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 4:21:10 139994418403328 [Note] mysqld: ready for connections.
seafile-mysql | Version: '10.1.40-MariaDB-1~bionic' socket: '/var/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
Then right after seafile | Updating seafile/seahub database ..., alot of InnoDB Error appeared.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Fetch of persistent statistics requested for table "ccnet_db"."UserRole" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "ccnet_db"."UserRole" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Fetch of persistent statistics requested for table "seafile_db"."RepoInfo" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "seafile_db"."RepoInfo" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Fetch of persistent statistics requested for table "seafile_db"."RepoSyncError" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Fetch of persistent statistics requested for table "seahub_db"."options_useroptions" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "seahub_db"."options_useroptions" index "options_useroptions_option_key_7bf7ae4b" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Fetch of persistent statistics requested for table "seahub_db"."profile_profile" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "seahub_db"."profile_profile" index "profile_profile_contact_email_0975e4bf_uniq" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Fetch of persistent statistics requested for table "seahub_db"."base_filecomment" but the required system tables mysql.innodb_table_stats and mysql.innodb_index_stats are not present or have unexpected structure. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "seahub_db"."base_filecomment" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "seahub_db"."base_filecomment" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Recalculation of persistent statistics requested for table "seahub_db"."base_filecomment" index "resolved" but the required persistent statistics storage is not present or is corrupted. Using transient stats instead.
seafile-mysql | 2019-06-16 04:21:12 7f52fd876700 InnoDB: Error: Column last_update in table "mysql"."innodb_table_stats" is INT UNSIGNED NOT NULL but should be BINARY(4) NOT NULL (type mismatch).
Seems that though some table didn't exist, the upgrade process still finished. And it was fine to open the website and list/upload/download files with a lot of InnoDB: Error in the console output.
So I'm worried to know if those error was fine or not?
PS: to get the upgrade work
add memcached settings in seahub_settings.py since version 6.3.2 didn't come with that.
change for database in {ccnet_db,seafile_db,seahub_db}; do sudo docker exec -it seafile /usr/bin/mysql -e "grant all on ${database}.* to 'seaf'@'%.%.%.%' identified by '467fa02f-bf9a-4afb-9300-c4683073162a';"; done to for database in {ccnet_db,seafile_db,seahub_db}; do sudo docker exec -it seafile /usr/bin/mysql -e "grant all on ${database}.* to 'seafile'@'%.%.%.%' identified by '467fa02f-bf9a-4afb-9300-c4683073162a';"; done
cus seaf is not a user in db?
reset the password in cli for MariaDB and fix ‘Unix_socket’ Is Not Loaded Error 1
After upgrade to 7.0, I continuous received InnoDB: Error
After
docker-compose up
, the first two lines of them areThen right after
seafile | Updating seafile/seahub database ...
, alot of InnoDB Error appeared.But those didn't stop the script, then came with
Seems that though some table didn't exist, the upgrade process still finished. And it was fine to open the website and list/upload/download files with a lot of
InnoDB: Error
in the console output. So I'm worried to know if those error was fine or not?PS: to get the upgrade work
seahub_settings.py
since version 6.3.2 didn't come with that.for database in {ccnet_db,seafile_db,seahub_db}; do sudo docker exec -it seafile /usr/bin/mysql -e "grant all on ${database}.* to 'seaf'@'%.%.%.%' identified by '467fa02f-bf9a-4afb-9300-c4683073162a';"; done
tofor database in {ccnet_db,seafile_db,seahub_db}; do sudo docker exec -it seafile /usr/bin/mysql -e "grant all on ${database}.* to 'seafile'@'%.%.%.%' identified by '467fa02f-bf9a-4afb-9300-c4683073162a';"; done
cusseaf
is not a user in db?