Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --config mariadb fails
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
muelbuesch
n00b
n00b


Joined: 17 May 2011
Posts: 14
Location: Essen, Germany

PostPosted: Fri Dec 07, 2018 12:45 pm    Post subject: emerge --config mariadb fails Reply with quote

I'm trying to emerge mariadb following the https://wiki.gentoo.org/wiki/MariaDB-entry. However, "emerge --config fails".

Code:

emerge --config =dev-db/mariadb-10.1.37


Configuring pkg...

 * 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=//
 * ERROR: dev-db/mariadb-10.1.37::gentoo failed (config phase):
 *   Failed to initialize mysqld. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mariadb-10.1.37/temp/mysql_install_db.log
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called pkg_config
 *   environment, line 5362:  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.1.37::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-db/mariadb-10.1.37::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =mariadb-10.1.37
 * The complete build log is located at '/var/tmp/portage/dev-db/mariadb-10.1.37/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mariadb-10.1.37/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-db/mariadb-10.1.37/temp'
 * S: '/var/tmp/portage/dev-db/mariadb-10.1.37/work/mariadb-10.1.37'


Note the strange paths when calling "mysql_install_db": --tmpdir is set to "//" and true enough it cannot create temporary tables:

/var/log/mysql/mysqld.err shows:
Code:

2018-12-07 13:28:49 139838966638400 [ERROR] mysqld: Can't create/write to file '/ibuyZKcQ' (Errcode: 13 "Permission denied")
2018-12-07 13:28:49 7f2ecbeea740  InnoDB: Error: unable to create temporary file; errno: 13


However in /etc/mysql/my.cnf tmpdir is set correctly to:
Code:

tmpdir                                          = /tmp/


What went wrong and how can I fix it?
Back to top
View user's profile Send private message
muelbuesch
n00b
n00b


Joined: 17 May 2011
Posts: 14
Location: Essen, Germany

PostPosted: Fri Dec 07, 2018 12:49 pm    Post subject: Reply with quote

# cat /var/tmp/portage/dev-db/mariadb-10.1.37/temp/mysql_install_db.log
Code:

Installing MariaDB/MySQL system tables in '///var/lib/mysql' ...
2018-12-07 13:45:23 139924042692416 [Note] /usr/sbin/mysqld (mysqld 10.1.37-MariaDB) starting as process 17618 ...

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


cat /var/log/mysql/mysqld.err
Code:

2018-12-07 13:45:23 139924042692416 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.

2018-12-07 13:45:23 139924042692416 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2018-12-07 13:45:23 139924042692416 [Note] InnoDB: The InnoDB memory heap is disabled
2018-12-07 13:45:23 139924042692416 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-12-07 13:45:23 139924042692416 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-12-07 13:45:23 139924042692416 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-12-07 13:45:23 139924042692416 [Note] InnoDB: Using Linux native AIO
2018-12-07 13:45:23 139924042692416 [Note] InnoDB: Using SSE crc32 instructions
2018-12-07 13:45:23 139924042692416 [ERROR] mysqld: Can't create/write to file '/ibNLJAG5' (Errcode: 13 "Permission denied")
2018-12-07 13:45:23 7f429adc3740  InnoDB: Error: unable to create temporary file; errno: 13
2018-12-07 13:45:23 139924042692416 [ERROR] Plugin 'InnoDB' init function returned error.
2018-12-07 13:45:23 139924042692416 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2018-12-07 13:45:23 139924042692416 [ERROR] Unknown/unsupported storage engine: InnoDB
2018-12-07 13:45:23 139924042692416 [ERROR] Aborting


# emerge --info '=dev-db/mariadb-10.1.37::gentoo'
Code:

Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-6.4.0, glibc-2.27-r6, 3.10.40-vs2.3.6.8 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.40-vs2.3.6.8-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.6
KiB Mem:    41200620 total,  17757592 free
KiB Swap:    1951892 total,   1807348 free
Timestamp of repository gentoo: Fri, 07 Dec 2018 10:00:01 +0000
Head commit of repository gentoo: e3dc6f2d5e6ee691c703d06487b39f829f1ef38e
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://hmirror.as-infodienste.de/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

Installed sets: @baseset, @toolset
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=corei7 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-march=corei7 -O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/             http://ftp.halifax.rwth-aachen.de/gentoo/               http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/               http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/             http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/               http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j25"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="http://mirror.as-infodienste.de:8080/binpkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acpi agent amd64 apm bash-completion berkdb bzip2 caps cracklib crypt cxx gdbm ncurses nls nptl pam pcre perl php posix python readline session slang sockets ssl threads udev unicode xml zlib" ABI_X86="64" APACHE2_MODULES="alias auth_basic authn_core authn_file authz_core authz_host authz_user dir headers info log_config mime socache_shmcb status unixd" APACHE2_MPMS="prefork" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" KERNEL="linux" PHP_TARGETS="php7-2" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" USERLAND="GNU"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-db/mariadb-10.1.37::gentoo was built with the following:
USE="cracklib pam perl server xml -backup -bindist (-client-libs) -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -libressl (-mroonga) -numa -odbc -oqgraph -profiling (-selinux) -sphinx -sst-mariabackup -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap -tcmalloc -test -tokudb -yassl" ABI_X86="(64) -32 (-x32)"
CFLAGS="-march=corei7 -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=corei7 -O2 -pipe -felide-constructors -fno-strict-aliasing"


# emerge -pqv '=dev-db/mariadb-10.1.37::gentoo'
Code:

[binary   R   ] dev-db/mariadb-10.1.37  USE="cracklib pam perl server xml -backup -bindist (-client-libs) -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -libressl (-mroonga) -numa -odbc -oqgraph -profiling (-selinux) -sphinx -sst-mariabackup -sst-rsync -sst-xtrabackup -static -static-libs -systemd -systemtap -tcmalloc -test -tokudb -yassl" ABI_X86="(64) -32 (-x32)"
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