[MDEV-8917] [PATCH] mysql_install_db should check for missing shared library dependencies Created: 2015-10-08 Updated: 2022-02-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Packaging, Scripts & Clients |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Hartmut Holzgraefe | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.9-1, 10.1.9-2, 10.1.9-3 | ||||||||
| Description |
|
When missing a required shared library like libaio or libjemalloc mysqld won't start up. mysqld_install_db detects the failed startup but does not provide useful feedback, it suggests to check the mysql error log which mysqld can't even create in this case. The amount of following output also sort of hides the actual error message. Feature request: mysql_install_db should check whether all shared library dependencies are met, using ldd output, before trying to start up mysqld for the first time. If any dependencies are found to be unmet it should just report this instead of its rather long general purpose error output. |
| Comments |
| Comment by Hartmut Holzgraefe [ 2015-10-09 ] | |||||||||||||||||||||||||||||||
|
Proposed fix:
| |||||||||||||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2015-10-09 ] | |||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2015-10-29 ] | |||||||||||||||||||||||||||||||
|
Just for the record, text returned by mysql_install_db:
It's not that bad, but the text doesn't state reason for failure accurately indeed. | |||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2015-10-29 ] | |||||||||||||||||||||||||||||||
|
hholzgra, the patch needs to be improved. Will you do that or should I? | |||||||||||||||||||||||||||||||
| Comment by Sergey Vojtovich [ 2015-12-16 ] | |||||||||||||||||||||||||||||||
|
Lowering priority, unassigning from myself and removing fix version until new patch is implemented. | |||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-05-30 ] | |||||||||||||||||||||||||||||||
|
I don't think mysql_install_db should do that. In bintars we link everything (as much as possible) statically, in packages, the package manager should install all dependencies. In what use case this could be useful? | |||||||||||||||||||||||||||||||
| Comment by Hartmut Holzgraefe [ 2022-02-15 ] | |||||||||||||||||||||||||||||||
|
> In bintars we link everything (as much as possible) statically ... well, that's basically my point: mysql_install_db should check for those libraries being present for which it wasn't possible. I haven't used binary tarballs for a while, but as far as I remember they always needed libaio and libjemalloc packages to be installed as a prerequisite, so getting a better error message in cases where these are not present should be helpful ... |