[Maria-discuss] mariadb 10.4.13-lp152.1.1 to 10.5.12-3.9.1 upgrade failure
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine! So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc. Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin -- *"The Truth is out there" - Spooky* -- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . * Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before! (/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./)
Marc, Sorry to see you encountered this. I searched https://jira.mariadb.org and cannot find a similar issue. Can you please create a bug report. A mariadbackup might hit exactly the same issue. A mysqldump/restore will regenerate the innodb space listed as corrupt. On Fri, Nov 5, 2021 at 3:45 AM Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin
-- "The Truth is out there" - Spooky
-- _ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ .
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
(Re-sent because I forgot to include the list, sorry.) Hi Marc, That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12? Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well. Cheers, Karl On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin -- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.* ) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Before you do the upgrade, can you try shutting it down after setting innodb_fast_shutdown=0? That will purge the redo logs completely before shutting down. Then try the new version and see if it starts. innodb_force_recovery is a bit of a last-resort option to try before you have to resort to more advanced methods of data recovery. On Fri, Nov 5, 2021 at 11:30 AM Karl Levik <karl.levik@gmail.com> wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin
-- "The Truth is out there" - Spooky
-- _ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ .
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Hi Gordan, and I appreciate your taking the time to help me. Your suggestion to set "innodb_fast_shutdown=0" didn't produce any joy. I will show the new output from the log files to see if that will help... *from /var/log/messages -** * 2021-11-05T09:26:13.146616-07:00 bigbang systemd[1]: Starting MariaDB database server... 2021-11-05T09:26:13.206649-07:00 bigbang mysql-systemd-helper[15781]: Checking MySQL configuration for obsolete options... 2021-11-05T09:26:13.210550-07:00 bigbang mysql-systemd-helper[15781]: Trying to run upgrade of MySQL databases... 2021-11-05T09:26:13.252847-07:00 bigbang mysql-systemd-helper[15781]: Running protected MySQL... 2021-11-05T09:26:13.253624-07:00 bigbang mysql-systemd-helper[15781]: Waiting for MySQL to start 2021-11-05T09:26:13.293453-07:00 bigbang mysql-systemd-helper[15801]: 2021-11-05 9:26:13 0 [Note] /usr/sbin/mysqld (mysqld 10.5.12-MariaDB) starting as process 15801 ... 2021-11-05T09:27:13.833724-07:00 bigbang mysql-systemd-helper[15781]: MySQL is still dead 2021-11-05T09:27:13.833779-07:00 bigbang mysql-systemd-helper[15781]: MySQL didn't start, can't continue 2021-11-05T09:27:13.834287-07:00 bigbang systemd[1]: mariadb.service: Control process exited, code=exited, status=1/FAILURE 2021-11-05T09:27:13.834361-07:00 bigbang systemd[1]: mariadb.service: Failed with result 'exit-code'. 2021-11-05T09:27:13.834400-07:00 bigbang systemd[1]: Failed to start MariaDB database server. *and from log_upgrade_run.err -* bigbang:/var/tmp/mysql-protected.k34sIB # cat log_upgrade_run.err 2021-11-05 10:09:35 0 [Note] InnoDB: Uses event mutexes 2021-11-05 10:09:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-11-05 10:09:35 0 [Note] InnoDB: Number of pools: 1 2021-11-05 10:09:35 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-11-05 10:09:35 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-11-05 10:09:36 0 [Note] InnoDB: Using Linux native AIO 2021-11-05 10:09:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-11-05 10:09:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-11-05 10:09:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748e4465 2021-11-05 10:09:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-11-05 10:09:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-11-05 10:09:36 0 [Note] InnoDB: Starting shutdown... 2021-11-05 10:09:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-11-05 10:09:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-11-05 10:09:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-11-05 10:09:36 0 [ERROR] /usr/sbin/mysqld: unknown variable 'defaults-file=/etc/my.cnf' 2021-11-05 10:09:36 0 [ERROR] Aborting *my.conf (with comments removed) -* [client] port = 3306 socket = /run/mysql/mysql.sock [mysqld] innodb_fast_shutdown=0 bind-address = 127.0.0.1 log-error = /var/log/mysql/mysqld.log secure_file_priv = /var/lib/mysql-files datadir = /srv/mysql/mysql_15.3 server-id = 1 port = 3306 socket = /run/mysql/mysql.sock [mysqld_multi] mysqld = /usr/bin/mysqld_safe mysqladmin = /usr/bin/mysqladmin log = /var/log/mysqld_multi.log !includedir /etc/my.cnf.d *(there is nothing in /etc/my.cnf.d)** * *HTHs Marc...* On 11/5/21 2:58 AM, Gordan Bobic wrote:
Before you do the upgrade, can you try shutting it down after setting innodb_fast_shutdown=0? That will purge the redo logs completely before shutting down. Then try the new version and see if it starts. innodb_force_recovery is a bit of a last-resort option to try before you have to resort to more advanced methods of data recovery.
On Fri, Nov 5, 2021 at 11:30 AM Karl Levik <karl.levik@gmail.com> wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin
-- "The Truth is out there" - Spooky
-- _ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ .
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp -- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . * Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before! (/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./)
Hi Karl, and thanks for your thoughts, and I think you got me a bit further but in the end still no joy getting the upgrade to the latest version of Mariadb, that is supported in OpenSuSE 15.3, (10.5.12-3.9.1), to work. I took your idea of doing incremental upgrades to see how far I could get and this is what I found using various versions found in the OpenSuSE 15.3 repositories - Version 10.4.13-lp152.1.1-x86_64 (supplied as part of OpenSuSE 15.2) upgraded to version 10.5.8-1.5-x86-64, works! Version 10.5.8-1.5-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.11-3.3.1-x86-64, works! Version 10.5.11-3.3.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.6.1-x86-64, worked first time I tried, but all subsequent attempts to upgrade to this version (from version 10.5.8-1.5-x86-64) have failed. Version 10.5.12-3.6.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.9.1-x86-64, always fails. So at the moment I can use version 10.5.11-3.3.1-x86-64. By failed I mean I cannot get that version of the MySQL/MariaDB server to start. Instead I get the error about corrupt tables that I reported earlier. It appears that something broke in version 10.5.12-3.6.1-x86-64 even though I did get it to work one time. Your other suggestion, to "Retry with innodb_force_recovery=5" hasn't seemed to make a difference in my assorted attempts to upgrade to the latest versions that OpenSuSE 15.3 has in it's repositories. HTHs, Marc... On 11/5/21 2:30 AM, Karl Levik wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com <mailto:marc@marcchamberlin.com>> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin
-- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to : maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe : https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
-- *"The Truth is out there" - Spooky* *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . * Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before! (/This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like./)
Hiya Marc, That sounds like progress. I wonder whether the upgrade would work with MariaDB Server packages from the mariadb.org repo instead of packages from OpenSuSE? If so, then that would indicate the problem might be related to the packaging done by OpenSuSE. Cheers, Karl On Mon, 8 Nov 2021 at 06:08, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hi Karl, and thanks for your thoughts, and I think you got me a bit further but in the end still no joy getting the upgrade to the latest version of Mariadb, that is supported in OpenSuSE 15.3, (10.5.12-3.9.1), to work. I took your idea of doing incremental upgrades to see how far I could get and this is what I found using various versions found in the OpenSuSE 15.3 repositories -
Version 10.4.13-lp152.1.1-x86_64 (supplied as part of OpenSuSE 15.2) upgraded to version 10.5.8-1.5-x86-64, works! Version 10.5.8-1.5-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.11-3.3.1-x86-64, works! Version 10.5.11-3.3.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.6.1-x86-64, worked first time I tried, but all subsequent attempts to upgrade to this version (from version 10.5.8-1.5-x86-64) have failed. Version 10.5.12-3.6.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.9.1-x86-64, always fails.
So at the moment I can use version 10.5.11-3.3.1-x86-64. By failed I mean I cannot get that version of the MySQL/MariaDB server to start. Instead I get the error about corrupt tables that I reported earlier. It appears that something broke in version 10.5.12-3.6.1-x86-64 even though I did get it to work one time.
Your other suggestion, to "Retry with innodb_force_recovery=5" hasn't seemed to make a difference in my assorted attempts to upgrade to the latest versions that OpenSuSE 15.3 has in it's repositories.
HTHs, Marc...
On 11/5/21 2:30 AM, Karl Levik wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin -- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.* ) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
--
*"The Truth is out there" - Spooky*
*_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com <https://keys.openpgp.org/search?q=marc@marcchamberlin.com> or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like.*) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Hi Karl - I tried/took a look at the packages from mariadb.org and ran into a couple of snags that I dunno how to work around. First, the mariadb.org repos only support the Enterprise versions of SuSE (SLES), and not the community versions of OpenSuSE. I decided to try using SLES15 and proceeded to try and set up mariadb using those packages. But that path ran into another snag where the packages from mariadb.org for SLES15 have different package names than the packages used by OpenSuSE. And trying to switch to and use the packages from the SLES15 repo lead to all kinds of dependency and name conflict errors. So I dunno how to proceed and have dropped back to using the OpenSuSE packages. Thanks again and hopefully you or others will have some more good ideas! Marc On 11/8/21 4:27 AM, Karl Levik wrote:
Hiya Marc,
That sounds like progress.
I wonder whether the upgrade would work with MariaDB Server packages from the mariadb.org <http://mariadb.org> repo instead of packages from OpenSuSE?
If so, then that would indicate the problem might be related to the packaging done by OpenSuSE.
Cheers, Karl
On Mon, 8 Nov 2021 at 06:08, Marc Chamberlin <marc@marcchamberlin.com <mailto:marc@marcchamberlin.com>> wrote:
Hi Karl, and thanks for your thoughts, and I think you got me a bit further but in the end still no joy getting the upgrade to the latest version of Mariadb, that is supported in OpenSuSE 15.3, (10.5.12-3.9.1), to work. I took your idea of doing incremental upgrades to see how far I could get and this is what I found using various versions found in the OpenSuSE 15.3 repositories -
Version 10.4.13-lp152.1.1-x86_64 (supplied as part of OpenSuSE 15.2) upgraded to version 10.5.8-1.5-x86-64, works! Version 10.5.8-1.5-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.11-3.3.1-x86-64, works! Version 10.5.11-3.3.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.6.1-x86-64, worked first time I tried, but all subsequent attempts to upgrade to this version (from version 10.5.8-1.5-x86-64) have failed. Version 10.5.12-3.6.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.9.1-x86-64, always fails.
So at the moment I can use version 10.5.11-3.3.1-x86-64. By failed I mean I cannot get that version of the MySQL/MariaDB server to start. Instead I get the error about corrupt tables that I reported earlier. It appears that something broke in version 10.5.12-3.6.1-x86-64 even though I did get it to work one time.
Your other suggestion, to "Retry with innodb_force_recovery=5" hasn't seemed to make a difference in my assorted attempts to upgrade to the latest versions that OpenSuSE 15.3 has in it's repositories.
HTHs, Marc...
On 11/5/21 2:30 AM, Karl Levik wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com <mailto:marc@marcchamberlin.com>> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin
-- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to : maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe : https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
_______________________________________________ Mailing list:https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to :maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe :https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help :https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
--
*"The Truth is out there" - Spooky*
*_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(/This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com <https://keys.openpgp.org/search?q=marc@marcchamberlin.com> or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like./) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to : maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe : https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp -- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . * Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before! (/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./)
I tried/took a look at the packages from mariadb.org and ran into a couple of snags that I dunno how to work around. First, the mariadb.org repos only support the Enterprise versions of SuSE (SLES), and not the community versions of OpenSuSE.
What do you mean by that as there are no repositories for OpenSuse? https://mariadb.org/download/?t=repo-config&d=openSUSE+15+%28x86_64%29&v=10.5 or can grab the rpms directly (chose one random mirror) https://ftp.nluug.nl/db/mariadb/yum/10.5/opensuse/15/x86_64/rpms/ p.s. besides 15.3 is practically SLEs rr
Aw thanks Reinis, I see the problem/mistake I made. There are 2 apparently very different websites purporting to be the "official" website for MariaDB - mariadb.com and mariadb.org. VERY confusing and I had accidentally gone to the mariadb.com website. Why in the world are there two sites and if necessary to have both, why don't each site refer users to the other site and give a description of why a user should choose one or the other site? IMHO this is a very bad way to provide website support for MariaDB users! I had simply Googled for MariaDB and clicked on a link, assuming I was going to be directed to the one and only "official" MariaDB website, never realizing there were two sites, nor double checking that I was not directed to the mariadb.org website. Heck I never would have guessed that there were two different MariaDB websites! GUI's, including websites, should be guides to solutions, not just toolboxes, and as for providing a guide to which website is best suited for a user, both of these website have failed miserably and this should be corrected ASAP! The mariadb.com website almost got it right in that one can select a "Community" version of MariaDB, which I did, but it does not show the options from the mariadb.org site, instead it only shows options for the Enterprise versions. For me that just made it worse, since I was being lead to believe I was getting the open source "community" versions of MariaDB and therefore I complained that the choices I found there were unsuitable. Marc... On 11/8/21 5:14 PM, Reinis Rozitis wrote:
I tried/took a look at the packages from mariadb.org and ran into a couple of snags that I dunno how to work around. First, the mariadb.org repos only support the Enterprise versions of SuSE (SLES), and not the community versions of OpenSuSE. What do you mean by that as there are no repositories for OpenSuse?
https://mariadb.org/download/?t=repo-config&d=openSUSE+15+%28x86_64%29&v=10.5
or can grab the rpms directly (chose one random mirror) https://ftp.nluug.nl/db/mariadb/yum/10.5/opensuse/15/x86_64/rpms/
p.s. besides 15.3 is practically SLEs
rr
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
-- *"The Truth is out there" - Spooky* *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . * Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before! (/This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like./)
Yes, I agree this is confusing. mariadb.com is MariaDB Corporation whereas mariadb.org is MariaDB Foundation, and the delineation between them is not entirely clear in some areas. But that is for another thread ... Anyways, I hope you were able to get the correct packages in the end and do some more testing. Cheers, Karl On Tue, 9 Nov 2021 at 04:39, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Aw thanks Reinis, I see the problem/mistake I made. There are 2 apparently very different websites purporting to be the "official" website for MariaDB - mariadb.com and mariadb.org. VERY confusing and I had accidentally gone to the mariadb.com website. Why in the world are there two sites and if necessary to have both, why don't each site refer users to the other site and give a description of why a user should choose one or the other site? IMHO this is a very bad way to provide website support for MariaDB users! I had simply Googled for MariaDB and clicked on a link, assuming I was going to be directed to the one and only "official" MariaDB website, never realizing there were two sites, nor double checking that I was not directed to the mariadb.org website. Heck I never would have guessed that there were two different MariaDB websites! GUI's, including websites, should be guides to solutions, not just toolboxes, and as for providing a guide to which website is best suited for a user, both of these website have failed miserably and this should be corrected ASAP!
The mariadb.com website almost got it right in that one can select a "Community" version of MariaDB, which I did, but it does not show the options from the mariadb.org site, instead it only shows options for the Enterprise versions. For me that just made it worse, since I was being lead to believe I was getting the open source "community" versions of MariaDB and therefore I complained that the choices I found there were unsuitable.
Marc...
On 11/8/21 5:14 PM, Reinis Rozitis wrote:
I tried/took a look at the packages from mariadb.org and ran into a couple of snags that I dunno how to work around. First, the mariadb.org repos only support the Enterprise versions of SuSE (SLES), and not the community versions of OpenSuSE.
What do you mean by that as there are no repositories for OpenSuse? https://mariadb.org/download/?t=repo-config&d=openSUSE+15+%28x86_64%29&v=10.5
or can grab the rpms directly (chose one random mirror) https://ftp.nluug.nl/db/mariadb/yum/10.5/opensuse/15/x86_64/rpms/
p.s. besides 15.3 is practically SLEs
rr
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
--
*"The Truth is out there" - Spooky*
*_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com <https://keys.openpgp.org/search?q=marc@marcchamberlin.com> or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like.*) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Hi and thanks Karl and everyone who tried to help me, and sorry for the long delay in responding. Trying to use the packages from the mariadb.org repo did not work any better than using the repos from OpenSuSE's repositories. The automatic upgrade process did not work when trying to upgrade from any version past 10.5.11-3.3.1-x86-64. However, I have managed to find a solution by using another approach. I reinstalled version 10.5.11-3.3.1-x86-64 and used mysqldump to dump all the databases to an sql file. Then I set the database storage directory aside and created a new directory to hold the database files. I then installed the latest versions of mariadb server, client, tools etc from the OpenSuSE repository (Ver 10.5.12-3.9.1-x86_64), started it with no databases, and imported all my databases from the aforementioned sql file. Seems to have worked! Thanks again, just reporting how I managed to workaround this issue. Marc.... On 11/8/21 4:27 AM, Karl Levik wrote:
Hiya Marc,
That sounds like progress.
I wonder whether the upgrade would work with MariaDB Server packages from the mariadb.org <http://mariadb.org> repo instead of packages from OpenSuSE?
If so, then that would indicate the problem might be related to the packaging done by OpenSuSE.
Cheers, Karl
On Mon, 8 Nov 2021 at 06:08, Marc Chamberlin <marc@marcchamberlin.com <mailto:marc@marcchamberlin.com>> wrote:
Hi Karl, and thanks for your thoughts, and I think you got me a bit further but in the end still no joy getting the upgrade to the latest version of Mariadb, that is supported in OpenSuSE 15.3, (10.5.12-3.9.1), to work. I took your idea of doing incremental upgrades to see how far I could get and this is what I found using various versions found in the OpenSuSE 15.3 repositories -
Version 10.4.13-lp152.1.1-x86_64 (supplied as part of OpenSuSE 15.2) upgraded to version 10.5.8-1.5-x86-64, works! Version 10.5.8-1.5-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.11-3.3.1-x86-64, works! Version 10.5.11-3.3.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.6.1-x86-64, worked first time I tried, but all subsequent attempts to upgrade to this version (from version 10.5.8-1.5-x86-64) have failed. Version 10.5.12-3.6.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.9.1-x86-64, always fails.
So at the moment I can use version 10.5.11-3.3.1-x86-64. By failed I mean I cannot get that version of the MySQL/MariaDB server to start. Instead I get the error about corrupt tables that I reported earlier. It appears that something broke in version 10.5.12-3.6.1-x86-64 even though I did get it to work one time.
Your other suggestion, to "Retry with innodb_force_recovery=5" hasn't seemed to make a difference in my assorted attempts to upgrade to the latest versions that OpenSuSE 15.3 has in it's repositories.
HTHs, Marc...
On 11/5/21 2:30 AM, Karl Levik wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com <mailto:marc@marcchamberlin.com>> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin
-- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to : maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe : https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
_______________________________________________ Mailing list:https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to :maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe :https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help :https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
--
*"The Truth is out there" - Spooky*
*_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(/This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com <https://keys.openpgp.org/search?q=marc@marcchamberlin.com> or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like./) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> Post to : maria-discuss@lists.launchpad.net <mailto:maria-discuss@lists.launchpad.net> Unsubscribe : https://launchpad.net/~maria-discuss <https://launchpad.net/~maria-discuss> More help : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp -- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . * Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before! (/This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further./)
Failure of in-place upgrade between 10.5.11 and 10.5.12 sounds like a _major_ bug. On Thu, 25 Nov 2021, 21:59 Marc Chamberlin, <marc@marcchamberlin.com> wrote:
Hi and thanks Karl and everyone who tried to help me, and sorry for the long delay in responding. Trying to use the packages from the mariadb.org repo did not work any better than using the repos from OpenSuSE's repositories. The automatic upgrade process did not work when trying to upgrade from any version past 10.5.11-3.3.1-x86-64.
However, I have managed to find a solution by using another approach. I reinstalled version 10.5.11-3.3.1-x86-64 and used mysqldump to dump all the databases to an sql file. Then I set the database storage directory aside and created a new directory to hold the database files. I then installed the latest versions of mariadb server, client, tools etc from the OpenSuSE repository (Ver 10.5.12-3.9.1-x86_64), started it with no databases, and imported all my databases from the aforementioned sql file. Seems to have worked!
Thanks again, just reporting how I managed to workaround this issue. Marc.... On 11/8/21 4:27 AM, Karl Levik wrote:
Hiya Marc,
That sounds like progress.
I wonder whether the upgrade would work with MariaDB Server packages from the mariadb.org repo instead of packages from OpenSuSE?
If so, then that would indicate the problem might be related to the packaging done by OpenSuSE.
Cheers, Karl
On Mon, 8 Nov 2021 at 06:08, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hi Karl, and thanks for your thoughts, and I think you got me a bit further but in the end still no joy getting the upgrade to the latest version of Mariadb, that is supported in OpenSuSE 15.3, (10.5.12-3.9.1), to work. I took your idea of doing incremental upgrades to see how far I could get and this is what I found using various versions found in the OpenSuSE 15.3 repositories -
Version 10.4.13-lp152.1.1-x86_64 (supplied as part of OpenSuSE 15.2) upgraded to version 10.5.8-1.5-x86-64, works! Version 10.5.8-1.5-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.11-3.3.1-x86-64, works! Version 10.5.11-3.3.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.6.1-x86-64, worked first time I tried, but all subsequent attempts to upgrade to this version (from version 10.5.8-1.5-x86-64) have failed. Version 10.5.12-3.6.1-x86-64 (supplied as part of OpenSuSE 15.3) upgraded to version 10.5.12-3.9.1-x86-64, always fails.
So at the moment I can use version 10.5.11-3.3.1-x86-64. By failed I mean I cannot get that version of the MySQL/MariaDB server to start. Instead I get the error about corrupt tables that I reported earlier. It appears that something broke in version 10.5.12-3.6.1-x86-64 even though I did get it to work one time.
Your other suggestion, to "Retry with innodb_force_recovery=5" hasn't seemed to make a difference in my assorted attempts to upgrade to the latest versions that OpenSuSE 15.3 has in it's repositories.
HTHs, Marc...
On 11/5/21 2:30 AM, Karl Levik wrote:
(Re-sent because I forgot to include the list, sorry.)
Hi Marc,
That sounds frustrating. 10.4.13 is not the most recent in the 10.4 series, so perhaps it would help to upgrade to 10.4.21 first, and then upgrade from there to 10.5.12?
Your error log also suggests a solution: "Retry with innodb_force_recovery=5" - it might be worth trying that as well.
Cheers, Karl
On Thu, 4 Nov 2021 at 16:45, Marc Chamberlin <marc@marcchamberlin.com> wrote:
Hello - I have ran into a problem that maybe someone else has hit and knows a solution for it. I recently upgraded my OpenSuSE 15.2 x64 version to OpenSuSE 15.3 x64 and installed all additional updates and patches that were suggested for 15.3. Most of the upgrade succeeded, all except Mariadb. Google has not been helpful either. My understanding of Mariadb is that after a new install of a new version it is suppose to automagically update and fix the databases from the older version, when the server is restarted, but I think this is failing. I found the upgrade log file for Mariadb and it appears to be reporting some kind of corruption has occurred. This is preventing the mariadb (mysql) server from even starting, so it is not possible to use queries to find and repair the database. -
bigbang:/var/tmp/mysql-protected.lBP2YQ # more log_upgrade_run.err 2021-10-31 12:11:36 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!! 2021-10-31 12:11:36 0 [Note] InnoDB: Uses event mutexes 2021-10-31 12:11:36 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-10-31 12:11:36 0 [Note] InnoDB: Number of pools: 1 2021-10-31 12:11:36 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions 2021-10-31 12:11:36 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) 2021-10-31 12:11:36 0 [Note] InnoDB: Using Linux native AIO 2021-10-31 12:11:36 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728 2021-10-31 12:11:36 0 [Note] InnoDB: Completed initialization of buffer pool 2021-10-31 12:11:36 0 [ERROR] InnoDB: corrupted TRX_NO 5f737461748dea16 2021-10-31 12:11:36 0 [Note] InnoDB: Retry with innodb_force_recovery=5 2021-10-31 12:11:36 0 [ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption 2021-10-31 12:11:36 0 [Note] InnoDB: Starting shutdown... 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-10-31 12:11:36 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-10-31 12:11:36 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-10-31 12:11:36 0 [ERROR] Unknown/unsupported storage engine: InnoDB 2021-10-31 12:11:36 0 [ERROR] Aborting
On a hunch, I decided to install the OpenSuSE OSS repository for 15.2 and this allowed me to drop back and install version 10.4.13-lp152.1.1 of the mariadb server, client, errormessages, and tools packages. (OpenSuSE 15.3 wants to install version 10.5.12-3.9.1 of these mariadb packages.) And lo and behold the previous 10.4.13-lp152.1.1 package works fine!
So what gives? Any idea why the upgraded version of mariadb packages are failing to upgrade and support my databases? As I said I have tried Googling for an answer but no joy finding one. A lot of the proposed solutions, Google found, assume the mariadb server is up and running (hump!) so the example solutions given, use mysql queries and commands to fix corrupt databases and tables. I should also point out that AFAIK most, if not all of my database structures are using InnoDB and not the older MYISAM structures (although the mysql database itself appears to have both). I did make a mariadb backup of all the databases but without the ability to start the mariadb server I don't know how to make use of this backup file to reconstruct all the databases and their tables etc.
Thanks in advance for any and all advice on how to upgrade my mariadb server. Marc Chamberlin -- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.* ) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
--
*"The Truth is out there" - Spooky*
*_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed and the electronic signature is attached. If you know how, you can use my public key to prove this email indeed came from me and has not been modified in transit. My public key, which can be used for sending encrypted email to me also, can be found at - https://keys.openpgp.org/search?q=marc@marcchamberlin.com <https://keys.openpgp.org/search?q=marc@marcchamberlin.com> or just ask me for it and I will send it to you as an attachment. If you don't understand all this geek speak, no worries, just ignore this explanation and ignore the signature key attached to this email (it will look like gibberish if you open it) and/or ask me to explain it further if you like.*) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
-- *"The Truth is out there" - Spooky*
-- *_ _ . . . . . . _ _ . _ _ _ _ . . . . _ . . . . _ _ . _ _ _ . . . . _ _ . _ . . _ . _ _ _ _ . _ . _ . _ . _ . *
Computers: the final frontier. These are the voyages of the user Marc. His mission: to explore strange new hardware. To seek out new software and new applications. To boldly go where no Marc has gone before!
(*This email is digitally signed. My public key for sending encrypted email to me can be found at - https://keys.openpgp.org/search?q=marc@domesweetdome.us.com <https://keys.openpgp.org/search?q=marc@domesweetdome.us.com> or just ask me for it and I will send it to you as an attachment. If you don't understand, no worries, just ignore it and/or ask me to explain it further.* ) _______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
participants (5)
-
Daniel Black
-
Gordan Bobic
-
Karl Levik
-
Marc Chamberlin
-
Reinis Rozitis