Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690158 - Coniguring dev-db/mariadb-10.4.6 fails on 17.1 profile
Summary: Coniguring dev-db/mariadb-10.4.6 fails on 17.1 profile
Status: RESOLVED DUPLICATE of bug 689412
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-18 15:02 UTC by Vladimir
Modified: 2019-07-18 16:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.04 KB, text/plain)
2019-07-18 15:02 UTC, Vladimir
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2019-07-18 15:02:41 UTC
Created attachment 583398 [details]
emerge --info

Hi everyone. 
Having issue with emerge --config dev-db/mariadb right after installing dev-db/mariadb-10.4.6

 * Command: /usr/share/mariadb/scripts/mysql_install_db --basedir=/usr --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --datadir=//var/lib/mysql --tmpdir=//tmp/
 * ERROR: dev-db/mariadb-10.4.6::gentoo failed (config phase):
 *   Failed to initialize mysqld. Please review /var/log/mysql/mysqld.err AND /tmp/portage/dev-db/mariadb-10.4.6/temp/mysql_install_db.log
 * 

Content of /tmp/portage/dev-db/mariadb-10.4.6/temp/mysql_install_db.log is

chown: cannot access '/auth_pam_tool_dir': No such file or directory
Cannot change ownership of the '/auth_pam_tool_dir' directory
 to the 'mysql' user. Check that you have the necessary permissions and try again.

Some debugging bring to /usr/share/mariadb/scripts/mysql_install_db searches for plugins in wrong places: 
find_in_dirs --dir auth_pam.so '/usr/lib*/plugin' '/usr/lib*/mysql/plugin
while auth_pam_tool_dir resides in /usr/lib64/mariadb/plugin/. Creating symlink and manually with chowning to mysql:mysql (ln -sv /usr/lib64/mariadb /usr/lib/mysql && chown -R mysql:mysql /usr/lib/mysql/plugi) works around this issue. 
emerge --info attached.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2019-07-18 16:12:53 UTC

*** This bug has been marked as a duplicate of bug 689412 ***