Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-5680

Wrong libssl version with galera package on Debian Squeeze

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.33a-galera, 5.5.34-galera, 5.5.35-galera
    • 5.5.36-galera
    • None
    • Debian Squeeze (6.0.8) amd64 virtual machine on kvm

    Description

      After upgrading mariadb galera package from 23.2.7 to 25.3.2, mysql fail to start.

      Setting up mariadb-galera-server-5.5 (5.5.35+maria-1~squeeze) ...
      Stopping MariaDB database server: mysqld.
      Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
      invoke-rc.d: initscript mysql, action "start" failed.
      dpkg: error processing mariadb-galera-server-5.5 (--configure):
       subprocess installed post-installation script returned error exit status 1
      dpkg: dependency problems prevent configuration of mariadb-galera-server:
       mariadb-galera-server depends on mariadb-galera-server-5.5 (= 5.5.35+maria-1~squeeze); however:
        Package mariadb-galera-server-5.5 is not configured yet.
      dpkg: error processing mariadb-galera-server (--configure):
       dependency problems - leaving unconfigured
      configured to not write apport reports
                                            configured to not write apport reports
                                                                                  Errors were encountered while processing:
       mariadb-galera-server-5.5
       mariadb-galera-server
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      A package failed to install.  Trying to recover:
      Setting up mariadb-galera-server-5.5 (5.5.35+maria-1~squeeze) ...
      Stopping MariaDB database server: mysqld.
      Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
      invoke-rc.d: initscript mysql, action "start" failed.
      dpkg: error processing mariadb-galera-server-5.5 (--configure):
       subprocess installed post-installation script returned error exit status 1
      dpkg: dependency problems prevent configuration of mariadb-galera-server:
       mariadb-galera-server depends on mariadb-galera-server-5.5 (= 5.5.35+maria-1~squeeze); however:
        Package mariadb-galera-server-5.5 is not configured yet.
      dpkg: error processing mariadb-galera-server (--configure):
       dependency problems - leaving unconfigured
      Errors were encountered while processing:
       mariadb-galera-server-5.5
       mariadb-galera-server

      In mysql log file :

      140214 15:57:06 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
      140214 15:57:06 mysqld_safe WSREP: Running position recovery with --log_error='/var/lib/mysql/wsrep_recovery.eKo0Yq' --pid-file='/var/lib/mysql/galera-node-recover.pid'
      140214 15:57:08 mysqld_safe WSREP: Recovered position 44e3084d-c4ba-11e2-0800-bb01a7d6545e:2683
      140214 15:57:08 [Note] WSREP: wsrep_start_position var submitted: '44e3084d-c4ba-11e2-0800-bb01a7d6545e:2683'
      140214 15:57:08 [Note] WSREP: Read nil XID from storage engines, skipping position init
      140214 15:57:08 [Note] WSREP: wsrep_load(): loading provider library '/usr/lib/galera/libgalera_smm.so'
      140214 15:57:08 [ERROR] WSREP: wsrep_load(): dlopen(): libssl.so.1.0.0: cannot open shared object file: No such file or directory
      140214 15:57:08 [ERROR] WSREP: wsrep_load(/usr/lib/galera/libgalera_smm.so) failed: Invalid argument (22). Reverting to no provider.
      140214 15:57:08 [Note] WSREP: Read nil XID from storage engines, skipping position init
      140214 15:57:08 [Note] WSREP: wsrep_load(): loading provider library 'none'
      140214 15:57:08 [ERROR] Aborting
       
      140214 15:57:08 [Note] WSREP: Service disconnected.
      140214 15:57:09 [Note] WSREP: Some threads may fail to exit.
      140214 15:57:09 [Note] /usr/sbin/mysqld: Shutdown complete
       
      140214 15:57:09 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

      libgalera_smm.so is linked with wrong libssl version (1.0.0 instead of 0.9.8). Moreover there is also a problem with libstdc++

      # ldd /usr/lib/galera/libgalera_smm.so
      /usr/lib/galera/libgalera_smm.so: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/galera/libgalera_smm.so)
      	linux-vdso.so.1 =>  (0x00007fff851ff000)
      	libpthread.so.0 => /lib/libpthread.so.0 (0x00007ffe7436d000)
      	librt.so.1 => /lib/librt.so.1 (0x00007ffe74165000)
      	libssl.so.1.0.0 => not found
      	libcrypto.so.1.0.0 => not found
      	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ffe73e50000)
      	libm.so.6 => /lib/libm.so.6 (0x00007ffe73bcd000)
      	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ffe739b7000)
      	libc.so.6 => /lib/libc.so.6 (0x00007ffe73655000)
      	/lib64/ld-linux-x86-64.so.2 (0x00007ffe749d9000)

      # strings /usr/lib/libstdc++.so.6|grep GLIBCXX_3.4
      GLIBCXX_3.4
      GLIBCXX_3.4.1
      GLIBCXX_3.4.2
      GLIBCXX_3.4.3
      GLIBCXX_3.4.4
      GLIBCXX_3.4.5
      GLIBCXX_3.4.6
      GLIBCXX_3.4.7
      GLIBCXX_3.4.8
      GLIBCXX_3.4.9
      GLIBCXX_3.4.10
      GLIBCXX_3.4.11
      GLIBCXX_3.4.12
      GLIBCXX_3.4.13

      But dependencies on galera package shows libssl0.9.8 :

      # aptitude show galera
      Package: galera                          
      New: yes
      State: installed
      Automatically installed: yes
      Version: 25.3.2
      Priority: extra
      Section: optional
      Maintainer: Codership Oy
      Uncompressed Size: 0 
      Depends: libc6 (>= 2.4), libstdc++6 (>= 4.1.1), libgcc1 (>= 4.1.1), libssl0.9.8
      Replaces: galera
      Provides: wsrep
      Description: Galera Replication Framework
       Copyright: 2007-2013 by Codership Oy, All Rights Reserved Replication framework for transactional applications. Implements wsrep interface.

      # dpkg -l|egrep -e "(galera|mariadb)"
      ii  galera                              25.3.2                       Galera Replication Framework
      ii  libmariadbclient18                  5.5.35+maria-1~squeeze       MariaDB database client library
      ii  mariadb-client-5.5                  5.5.35+maria-1~squeeze       MariaDB database client binaries
      ii  mariadb-client-core-5.5             5.5.35+maria-1~squeeze       MariaDB database core client binaries
      ii  mariadb-common                      5.5.35+maria-1~squeeze       MariaDB database common files (e.g. /etc/mysql/conf.d/mariadb.cnf)
      iU  mariadb-galera-server               5.5.35+maria-1~squeeze       MariaDB database server with Galera cluster (metapackage depending on the latest version)
      iF  mariadb-galera-server-5.5           5.5.35+maria-1~squeeze       MariaDB database server with Galera cluster binaries

      Attachments

        Activity

          People

            dbart Daniel Bartholomew
            dsavineau Dimitri Savineau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.