[MDEV-18106] Upgrade from mariadb 10.2.19 to 10.2.20 hangs (debian) Created: 2018-12-29 Updated: 2019-01-27 Resolved: 2019-01-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging |
| Affects Version/s: | 10.2.20 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | yoch | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Debian 9.6 |
||
| Description |
|
While upgrading mariadb using `apt upgrade`, apt hangs on this line with 200% CPU usage:
Investigating with ps show that install script is blocked on bootstrap step:
At this state, strace simply shows:
After one hour, I need to stop the install and start mysqld manually.Now it works, but my dpkg state is corrupted. I tried to reinstall, but the script hang again. |
| Comments |
| Comment by Elena Stepanova [ 2018-12-29 ] | |||||||||
|
Did you run bootstrap manually as well, and it worked, or did you just start mysqld? (bootstrap isn't really needed on upgrade, so it can well be omitted, but it would be helpful for us to know if the problem is on the install scripts side or the server). If it's reproducible, would you be able to get a stack trace from a hanging process? You might have to install dbgsym packages to make it meaningful. | |||||||||
| Comment by yoch [ 2018-12-29 ] | |||||||||
|
I also tried to run bootstrap by myself, and it hangs as well. Here some backtrace (I don't know if I installed dbgsym correctly, because apt isn't working):
| |||||||||
| Comment by Elena Stepanova [ 2018-12-30 ] | |||||||||
|
I don't know if you're aware, so just to make sure: when the server runs in bootstrap, it expects some input to be fed to it. If nothing is given, it keeps waiting, which does look like hanging. The installation script passes over (or at least is supposed to pass over) to it the contents of several files through a pipe, so you don't see i in the processlist, but when you run it manually, you need to do it yourself. So, now I'm wondering if the feeding doesn't happen on your installation on some reason. I tried upgrade on one of our lab machines, it seems to work okay for me. You can try something simple first, like
If it works, then we'll need to try with real SQL scripts. It can probably be done by running sudo mysql_install_db. |