Score:0

Mariadb:10.6 in Docker cant start: Size of control file is smaller than expected when trying to use aria control file '/var/lib/mysql/aria_log_control

gb flag
db_1   | 2023-08-18 18:56:16 0 [ERROR] mariadbd: Got error 'Size of control file is smaller than expected' when trying to use aria control file '/var/lib/mysql/aria_log_control'
db_1   | 2023-08-18 18:56:16 0 [ERROR] Plugin 'Aria' init function returned error.
db_1   | 2023-08-18 18:56:16 0 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
db_1   | 2023-08-18 18:56:16 0 [ERROR] InnoDB: The Auto-extending data file './ibdata1' is of a different size 0 pages than specified by innodb_data_file_path
db_1   | 2023-08-18 18:56:16 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
db_1   | 2023-08-18 18:56:16 0 [ERROR] Plugin 'InnoDB' init function returned error.
db_1   | 2023-08-18 18:56:16 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
db_1   | 2023-08-18 18:56:16 0 [ERROR] Failed to initialize plugins.
db_1   | 2023-08-18 18:56:16 0 [ERROR] Aborting
db_1   | 
db_1   | Installation of system tables failed!  Examine the logs in
db_1   | /var/lib/mysql/ for more information.
db_1   | 
db_1   | The problem could be conflicting information in an external
db_1   | my.cnf files. You can ignore these by doing:
db_1   | 
db_1   |     shell> /usr/bin/mariadb-install-db --defaults-file=~/.my.cnf
db_1   | 
db_1   | You can also try to start the mariadbd daemon with:
db_1   | 
db_1   |     shell> /usr/sbin/mariadbd --skip-grant-tables --general-log &
db_1   | 
db_1   | and use the command line tool /usr/bin/mariadb
db_1   | to connect to the mysql database and look at the grant tables:
db_1   | 
db_1   |     shell> /usr/bin/mariadb -u root mysql
db_1   |     MariaDB> show tables;
db_1   | 
db_1   | Try '/usr/sbin/mariadbd --help' if you have problems with paths.  Using
db_1   | --general-log gives you a log in /var/lib/mysql/ that may be helpful.
db_1   | 
db_1   | The latest information about mysql_install_db is available at
db_1   | https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
db_1   | You can find the latest source at https://downloads.mariadb.org and
db_1   | the maria-discuss email list at https://launchpad.net/~maria-discuss
db_1   | 
db_1   | Please check all of the above before submitting a bug report
db_1   | at https://mariadb.org/jira

....
services:
  db:
    image: mariadb:10.6
    restart: always
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql
...

Container cant start.

Nikita Kipriyanov avatar
za flag
Recreate the container **following all the instructions** provided with the container, then put data there from the backup.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.