Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
:cry:
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 265

PostPosted: Fri Jun 22, 2018 9:41 am    Post subject: :cry: Reply with quote

[Moderator note: this post, and the first 3 responses to it, were originally attached to the abandoned topic Mariadb not starting, but this problem is related to that one only by the use of the same package, but not the same error (and not even necessarily the same version). -Hu

:cry:

Code:
boxi /usr/portage/dev-db/mariadb # emerge --config --ask mariadb


Ready to configure dev-db/mariadb-10.3.6_rc? [Yes/No] Yes

 * Trying to get password for mysql 'root' user from 'mysql' section ...
 * Trying to get password for mysql 'root' user from 'client' section ...
 * Please provide a password for the mysql 'root' user now
 * or through the /root/.my.cnf file.
 * Avoid ["'\_%] characters in the password
    >
 * Retype the password
    >
 * Creating the mysql database and setting proper permissions on it ...
 * 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=//
my_print_defaults: [ERROR] unknown option '--mysqld'
Installing MariaDB/MySQL system tables in '///var/lib/mysql' ...
2018-06-22 12:36:24 0 [ERROR] mysqld: Can't create/write to file '/ibFUvRLA' (Errcode: 13 "Permission denied")
2018-06-22 12:36:24 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2018-06-22 12:36:24 0 [ERROR] mysqld: Can't create/write to file '/ibYMDTcd' (Errcode: 13 "Permission denied")
2018-06-22 12:36:24 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13
2018-06-22 12:36:24 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2018-06-22 12:36:24 0 [ERROR] Plugin 'InnoDB' init function returned error.
2018-06-22 12:36:24 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-06-22 12:36:24 0 [ERROR] Unknown/unsupported storage engine: InnoDB
2018-06-22 12:36:24 0 [ERROR] Aborting


Installation of system tables failed!  Examine the logs in
///var/lib/mysql for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

    shell> /usr/share/mariadb/scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

    shell> /usr/sbin/mysqld --skip-grant-tables --general-log &

and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/bin/mysql -u root mysql
    mysql> show tables;

Try 'mysqld --help' if you have problems with paths.  Using
--general-log gives you a log in ///var/lib/mysql that may be helpful.

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
You can find the latest source at https://downloads.mariadb.org and
the maria-discuss email list at https://launchpad.net/~maria-discuss

Please check all of the above before submitting a bug report
at http://mariadb.org/jira

 * ERROR: dev-db/mariadb-10.3.6_rc::gentoo failed (config phase):
 *   Failed to initialize mysqld. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mariadb-10.3.6_rc/temp/mysql_install_db.log
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_config
 *   environment, line 5740:  Called die
 * The specific snippet of code:
 *           die "Failed to initialize mysqld. Please review ${EPREFIX}/var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log";
 *
 * If you need support, post the output of `emerge --info '=dev-db/mariadb-10.3.6_rc::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mariadb-10.3.6_rc::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =mariadb-10.3.6_rc
 * The complete build log is located at '/var/tmp/portage/dev-db/mariadb-10.3.6_rc/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mariadb-10.3.6_rc/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mariadb-10.3.6_rc/temp'
 * S: '/var/tmp/portage/dev-db/mariadb-10.3.6_rc/work/mariadb-10.3.6_rc'


[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Jun 22, 2018 11:13 am    Post subject: Reply with quote

Nreal wrote:
* 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=//

this doesn't look any sane to have a tmpdir pointing to /
and this does look quiet sane that mariadb running as mysql user permissions getting kick out while trying to fill / with some tmp files (/ibFUvRLA or /ibYMDTcd)
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 265

PostPosted: Fri Jun 22, 2018 11:45 am    Post subject: Reply with quote

Is the tmp dir location causing permission errors?
Back to top
View user's profile Send private message
Nreal
Apprentice
Apprentice


Joined: 06 Jan 2009
Posts: 265

PostPosted: Fri Jun 22, 2018 11:47 am    Post subject: Reply with quote

Thank You :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum