Hello.
I am trying to run MySQL 8 in an unprivileged Ubuntu 20.04 (Ubuntu Focal) LXD container. Unfortunately, for some unknown reason, the installation is failing. I’m posting the logs (that I could gather) here:
2022-06-29T09:32:51.947049Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) initializing of server in progress as process 1753
2022-06-29T09:32:51.957747Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:32:52.565299Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-06-29T09:32:53.623804Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2022-06-29T09:32:54.938108Z 6 [System] [MY-013172] [Server] Received SHUTDOWN from user boot. Shutting down mysqld (Version: 8.0.29-0ubuntu0.20.04.3).
2022-06-29T09:32:59.027516Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 1803
2022-06-29T09:32:59.063054Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:32:59.288154Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!
2022-06-29T09:32:59.288267Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2022-06-29T09:32:59.767636Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-06-29T09:32:59.767952Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-06-29T09:32:59.768113Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-06-29T09:32:59.769753Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
2022-06-29T09:33:02.005268Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 1928
2022-06-29T09:33:02.016050Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:33:02.250366Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!
2022-06-29T09:33:02.250445Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2022-06-29T09:33:02.707320Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-06-29T09:33:02.707769Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-06-29T09:33:02.708090Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-06-29T09:33:02.709712Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
2022-06-29T09:33:03.805284Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 2011
2022-06-29T09:33:03.817040Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:33:03.951690Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!
2022-06-29T09:33:03.951778Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2022-06-29T09:33:04.403462Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-06-29T09:33:04.403760Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-06-29T09:33:04.403972Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-06-29T09:33:04.404821Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
2022-06-29T09:33:05.194365Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 2440
2022-06-29T09:33:05.212742Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:33:05.433675Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!
2022-06-29T09:33:05.433776Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2022-06-29T09:33:05.898950Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-06-29T09:33:05.899231Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-06-29T09:33:05.899390Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-06-29T09:33:05.900369Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
2022-06-29T09:33:06.701777Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 2471
2022-06-29T09:33:06.712110Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:33:06.810150Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!
2022-06-29T09:33:06.810295Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2022-06-29T09:33:07.288091Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-06-29T09:33:07.288609Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-06-29T09:33:07.288820Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-06-29T09:33:07.289654Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
2022-06-29T09:33:07.980810Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 2510
2022-06-29T09:33:07.991338Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:33:08.036718Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes!
2022-06-29T09:33:08.036798Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2022-06-29T09:33:08.518174Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
2022-06-29T09:33:08.518427Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-06-29T09:33:08.518563Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-06-29T09:33:08.519425Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
2022-06-29T09:33:09.237557Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.29-0ubuntu0.20.04.3) starting as process 2532
2022-06-29T09:33:09.260125Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-06-29T09:33:09.347723Z 1 [ERROR] [MY-012963] [InnoDB] Log file ./ib_logfile1 is of different size 0 bytes than other log files 18874368 bytes
Please let me know if you have seen a similar issue and, possibly, the fix for this.
By the way, this is the guide I followed to install MySQL 8.
Have tried this fix (Solution “InnoDB Error ib_logfile0 is of different size” – IT Blog) but the issue still persists.
Thanks!