Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561940 - dev-db/mariadb-10.1.7_rc fails to start
Summary: dev-db/mariadb-10.1.7_rc fails to start
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 02:06 UTC by Craig Andrews
Modified: 2015-11-02 16:58 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2015-10-01 02:06:40 UTC
dev-db/mariadb-10.1.7_rc fails to start.

# systemctl start mysqld.service 
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

Excerpt from journalctl:
-- Unit mysqld.service has begun starting up.
Sep 30 22:04:38 irrational mysqld_safe[7028]: my_print_defaults: [ERROR] unknown option '--mysqld'
Sep 30 22:04:38 irrational mysqld_safe[7028]: 150930 22:04:38 mysqld_safe Logging to '/var/lib/mysql/irrational.err'.
Sep 30 22:04:38 irrational mysqld_safe[7028]: 150930 22:04:38 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Sep 30 22:04:38 irrational mysqld_safe[7028]: 150930 22:04:38 mysqld_safe mysqld from pid file /var/lib/mysql/irrational.pid ended
Sep 30 22:04:39 irrational systemd[1]: mysqld.service: Control process exited, code=exited status=1
Sep 30 22:04:39 irrational systemd[1]: Failed to start MySQL database server.
-- Subject: Unit mysqld.service has failed


Reproducible: Always




# emerge --info
Portage 2.2.22 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.2.0, glibc-2.21-r1, 4.1.3-gentoo x86_64)
=================================================================
System uname: Linux-4.1.3-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     3978584 total,   1048564 free
KiB Swap:    4030452 total,   4030452 free
Timestamp of repository gentoo: Tue, 29 Sep 2015 15:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.3 [disabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.3::gentoo
dev-util/cmake:           3.3.2::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.2.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

kodi-overlay
    location: /var/lib/layman/kodi-overlay
    sync-type: laymansync
    sync-uri: git://github.com/frace/kodi-overlay.git
    masters: gentoo
    priority: 50

mv
    location: /var/lib/layman/mv
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=4.5"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacs acl acpi aiglx alpn alsa amd64 amr amrnb amrwb animation apache2 apng artworkextra asf aspnet2 asyncns authdaemond avahi avi bash-completion bcmath berkdb bitmap-fonts bluetooth bluray bmp bonjour bzip2 cairo caps cdda cddb cdparanoia cdr celt chm clang cli cracklib crypt cryptsetup css curl cxx daap dbus device-mapper dga dhclient dirac divx4linux dlloader dovecot-sasl dpms dri dts dv dvb dvd dvdr dvdread egl enca encode exif faac fam fame fat fbcondecor fbsplash ffmpeg fftw firefox flac fontconfig foomaticdb fortran freetype ftp fuse gaim gd gdbm geoip gif gimpprint glamor gles glib glibc-omitfp glitz glut gphoto2 gsm gstreamer gstreamer10 gtk gtk2 gudev hardenedphp hbci howl howl-compat https hwdb iconv icu idn imagemagick imap imlib innodb ipv6 java java5 jbig joystick jpeg jpeg2k junit kdbus kdehiddenvisibility kvm lapack lcms libfame libkms libnotify librtmp libsamplerate libusb lirc live llvm lm_sensors lzma lzo mad maildir mdadm mdnsresponder-compat mjpeg mmap mms mmx mmxext mng modules motif mozilla mozsvg mp3 mpeg mpeg2 mplayer multilib musepack mysql mythtv ncurses nemesi network networkmanager nls nptl nptlonly ntfs offensive ofx ogg oggvorbis openal openexr opengl openmp openvg opus pam pango pcre pcre16 pcre32 pdf pdflib perl phonon pic pie plymouth png pnp policykit postgres ppd ppds pulseaudio python qt qt3 qt3support qt4 quicktime quvi rar readline resolvconf rtc rtmp samba schroedinger screensaver sctp sdl seccomp session sftp sharedmem shout smp sna sni snmp sox speex spell sqlite sse sse2 ssh ssl steamruntime suspend2 svg systemd theora threads tiff tls transcode truetype truetype-fonts type-fonts udev udisks unicode unzip upnp ups usb uxa v4l2 vaapi vcd vdpau videos vorbis vpx wayland webdav webp webservices wifi win32codecs wmf wv x264 x265 xanim xattr xcb xcomposite xinerama xml xml2 xpm xprint xrandr xv xvfb xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic authn_core authz_core cache_disk authn_alias authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dconf deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy proxy_ajp proxy_connect proxy_http proxy_fcgi reqtimeout cgi cgid unixd socache_shmcb" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Craig Andrews gentoo-dev 2015-10-01 02:07:24 UTC
I found a bug in the Suse tracker for this same issue: https://bugzilla.suse.com/show_bug.cgi?id=937767 It also includes a fix which may be applicable to Gentoo.
Comment 2 Craig Andrews gentoo-dev 2015-10-01 02:19:41 UTC
The previous version dev-db/mariadb-10.0.21-r1 does not have this problem.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2015-10-01 02:26:41 UTC
Please attach the /var/lib/mysql/irrational.err for at least one startup attempt.

The my_print_defaults message is most likely not the cause of the failure, but may be related to other changes.
Comment 4 Craig Andrews gentoo-dev 2015-10-01 02:31:49 UTC
(In reply to Brian Evans from comment #3)
> Please attach the /var/lib/mysql/irrational.err for at least one startup
> attempt.

/var/lib/mysql/irrational.err does not exist. I suppose it dies before creating that file.
Comment 5 Brian Evans (RETIRED) gentoo-dev 2015-10-01 02:33:51 UTC
(In reply to candrews from comment #4)
> /var/lib/mysql/irrational.err does not exist. I suppose it dies before
> creating that file.

Please try to execute `/usr/bin/mysqld_safe --basedir=/usr` as root then.  Perhaps you can get more info
Comment 6 timemars 2015-10-01 06:12:47 UTC
Maybe you could try rebuilding mariadb. Some days ago I encountered a similar problem, but luckily I found some information in the log file:

/usr/sbin/mysqld: error while loading shared libraries: libbfd-2.25.1.so: cannot open shared object file: No such file or directory

However, the file did exist:

# find / -name libbfd*
/usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libbfd.so
/usr/lib64/binutils/x86_64-pc-linux-gnu/2.25.1/libbfd-2.25.1.so

I noticed that although the last update for binutils was on Aug 28, there was an update for binutils-config on Sep 27. So I rebuilt mariadb and then it started without any problem.
Comment 7 Johannes Hirte 2015-10-02 22:37:08 UTC
(In reply to timemars from comment #6)
> Maybe you could try rebuilding mariadb. Some days ago I encountered a
> similar problem, but luckily I found some information in the log file:
> 
> /usr/sbin/mysqld: error while loading shared libraries: libbfd-2.25.1.so:
> cannot open shared object file: No such file or directory

This has changed with the split of binutils and binutils-libs. MariaDB needs a dep on binutils-lib for build and runtime.
Comment 8 Brian Evans (RETIRED) gentoo-dev 2015-10-29 20:03:35 UTC
Please retry with dev-db/mariadb-10.0.8 which includes its own service file from upstream.
Comment 9 Brian Evans (RETIRED) gentoo-dev 2015-10-29 20:03:47 UTC
sorry, 10.1.8