[email protected] Bottle Service - Unsafe Host Shutdown Corrupts InnoDB? #5389
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 34 comments 35 replies
-
I have had similar corruption on that version of MariaDB. After getting a backup of all the databases I emptied out my whole installation to try to get it working again. I found that stopping the service with "brew services stop [email protected]" claimed it had stopped but the process was still running and at 100% CPU. This meant that MariaDB couldn't then be restarted. I also tried version 10.6 which had the same issue. I have now installed the latest version of MariaDB (11.3.2). This does seem to stop the process correctly when stopping the service. So it's maybe an issue with the current 10.X versions? Output of brew config:
|
Beta Was this translation helpful? Give feedback.
-
It looks like this is an upstream bug (MDEV-34129 and MDEV-34254) and has a possible pending fix for the 10.11.x series in MariaDB/server#3253 |
Beta Was this translation helpful? Give feedback.
-
I have this problem as well. With 10.11, mariadbd fails to stop with the message "Signal handler thread did not exit in a timely manner. Continuing to wait for it to stop..". The only way to recover i've found is to completely remove mariadb, reinstall and re-import the databases. I have tried using I'm using macOS 14.5 on Apple silicon. |
Beta Was this translation helpful? Give feedback.
-
in case that's relevant, the issue does not happen with mysql 5.7 on the same system with the same database. |
Beta Was this translation helpful? Give feedback.
-
I updated my machine yesterday, and i think i have the same problem. I uninstalled mariabd and installed it again. I disabled the auto start. But it still crashes. This is really annoying. As i am not that good with mariadb, is there a solution for the moment? Can i go back to a previous version of mariadb? |
Beta Was this translation helpful? Give feedback.
-
I have now installed an older version. That is working for now. I will describe what i did. But please keep in mind, that i have this running here on my mac for testing purposes. I'm not responsible when something breaks! This will erase all of your database files. So this is only working, if you have a backup!
Brew says that the mecab files are still there, so i did a:
After that i removed other files too:
Then i restarted the mac.
To install mariadb i choosed an older version.
After the install brew mentions that this version is not in the path, because it is an older version. But brew tells me, that when i need this in my path (to work with it in the console) i can do a:
Important! I use zsh. If you use another terminal like bash, i hope brew will give you the right copy and paste command! Restart the terminal so that you can use the command mysql
here you have to type in your account password, that you use for your mac user! If you typed in your password correct, you will enter this mysql command thingy... Here i did:
Important! Replace newrootpassword with your own password. You can choose a new pasword for the mysql root user. Then write exit to leave the mysql console
After that i imported back my databases with phpmyadmin. And did a whole restart of the system. And it works for me again! I hope this helps for now. 🖖 |
Beta Was this translation helpful? Give feedback.
-
I am having the same problem with MariaDB latest 11.4.2 on macOS 14.5 on M1. |
Beta Was this translation helpful? Give feedback.
-
Having this issue as well... going to downgrade to an older version, similar to above... But @mazzelman just a FYI -- 10.10 is deprecated and not considered LTS. See MariaDB Server Releases for more info. I've gone ahead and downgraded to 10.6 (LTS). |
Beta Was this translation helpful? Give feedback.
-
@mikeho |
Beta Was this translation helpful? Give feedback.
-
I have the same problems in MariaDB 11.4.2 and 11.2.4. After starting MariaDB with:
I see the following processes:
Then, when I stop MariaDB with the following:
I get a conformation that MariaDB is stopped:
But if I check the running processes I still see these:
I can kill that process with kill -9. If I then restart MariaDB there is no InnoDB corruption. So this way I have a usable workaround. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem on an M3 Apple with 11.4.2. |
Beta Was this translation helpful? Give feedback.
-
I upgraded to Sonoma (Apple M2) yesterday and that is where the problems started. FWIW, I have tried 11.4, 10.10 and 10.6 now and all seem to have the problem that I get a message about the showdown in the log:
but running
Even
And I think that is the root cause of the problem: the server process that is not stopping. Eventually, when the system is restarted, it will be force-stopped - which is bad for the data files. Or when trying to stop/restart the service (in particular with 11.4), it seems that the service script might not be checking properly if another deamon is already running which can then lead to a corrupted redo log. |
Beta Was this translation helpful? Give feedback.
-
I tried all LTS versions available in Homebrew, all are broken. My databases are big and always get corrupted on forced shutdown. Switched to Percona Server for now, but it is not available on ARM. Upd: I'm on Ventura. |
Beta Was this translation helpful? Give feedback.
-
Same here. I downgraded to 10.6. But process stays up when stopping as described above, kill -9 process pid works then. A soon fix would be very helpful. |
Beta Was this translation helpful? Give feedback.
-
https://jira.mariadb.org/browse/MDEV-34422 indicates:
Resolution: fixed
Fix Version/s: 10.11.9, 11.1.6, 11.2.5, 11.4.3, 11.5.2, 11.6.1
|
Beta Was this translation helpful? Give feedback.
-
Looks like I can't downgrade anymore either. Hope the fixed version is released soon.
|
Beta Was this translation helpful? Give feedback.
-
I concur. Uninstalling the current version and installing ***@***.*** worked for me. I have very large databases; happy that it worked.
… On Jul 31, 2024, at 11:43 AM, Rene Kreijveld ***@***.***> wrote:
You can downgrade to MariaDB 10.6.18.
—
Reply to this email directly, view it on GitHub <#5389 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABE3CHCUO3EQQXKZUEES3KTZPEV3RAVCNFSM6AAAAABIDWZ66GVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMRQGQ2DMNQ>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Is there a way to get a backup of my databases? Mariadb stopped working so i can't export sql files. I have a backup of my mysql folder but as soon as i put this folder back, Mariadb crashes again. |
Beta Was this translation helpful? Give feedback.
-
Just want to say thank you to everyone in this thread, I have wasted so much of my life on this issue over the past few weeks. Copilot is useless by the way at troubleshooting these kind of issues and I've learned my lesson. |
Beta Was this translation helpful? Give feedback.
-
MariaDB |
Beta Was this translation helpful? Give feedback.
-
Note that mariadb 10.6 does not yet support the UUID data type. Was a problem for me so I turned to the next version supported by homebrew that supports UUID, which was 10.11 as of today. Followed the instructions from mazzelman above. Thanks. update: 10.11 failed, had to rerun on the 10.6 (and opt for changing the uuid datatypes locally). update 2: so now i have the workaround which look like this: |
Beta Was this translation helpful? Give feedback.
-
are you saying that mariadb 11.1 does not have the data corruption on shutdown behavior?
… On Aug 13, 2024, at 10:30 PM, Marco ***@***.***> wrote:
Thanks for the tip. I updated brew and got the lastest version of mariadb, 11.4.2 and always breaks after shuting down and starting my macbook pro.
I followed your steps, but I installed, mariadb 11.1 with brew. Followed all the other steps (also used the command in terminal and it worked for me).
Now everything is working well. Hopefully I have backup of all my db.
*Remember to make backups guys!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
MariaDB released new versions on 2024-08-15 that correct the issue. Is it possible to have it with Homebrew Formulae ? |
Beta Was this translation helpful? Give feedback.
-
I installed using: brew install ***@***.***
the shutdown error is corrected in this version.
Beware that when first starting ***@***.***, it will fail if ***@***.*** was not shutdown properly and the database log file flushed. So, warning to dump all databases from ***@***.*** to a file before upgrading.
… On Aug 19, 2024, at 3:36 PM, Damien ***@***.***> wrote:
MariaDB released new versions on 2024-08-15 that correct the issue. Is it possible to have it with Homebrew Formulae ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Removed old installation, deleted mysql data folder. Imported one database, afterwards stop service and checked with ps: no more mariadb instances running.
So, the process is stopped but nevertheless something is wrong and the logfile gets corrupted. Still broken and still not usable. |
Beta Was this translation helpful? Give feedback.
-
very instructive - thank you.
so…wait until 11.4.3 becomes part of ‘brew update’, then things should be fixed?
I upgraded from mariadb10.6 to mariadb10.11 on one machine and all is well….I would rather get back to 11.4 when it’s functional.
… On Aug 20, 2024, at 1:50 PM, Richard Eckart de Castilho ***@***.***> wrote:
I would say if you just did a brew install mariadb, there is a good chance you got an old version still, namely 11.4.2 - and the fix
Screenshot.2024-08-20.at.21.47.12.png (view on web)
However, the fix is in 10.11.9, 11.1.6, 11.2.5, 11.4.3, 11.5.2, 11.6.1 according to https://jira.mariadb.org/browse/MDEV-34422
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
anyone try [email protected], which appears to have been released recently? |
Beta Was this translation helpful? Give feedback.
-
I have tested version 11.5.2 and that seems to run fine.
I then installed 11.5.2: |
Beta Was this translation helpful? Give feedback.
-
Is there any possibility to switch from version 10.6 to the latest version without erasing the folder with databases? |
Beta Was this translation helpful? Give feedback.
It looks like this is an upstream bug (MDEV-34129 and MDEV-34254) and has a possible pending fix for the 10.11.x series in MariaDB/server#3253