[MDEV-17911] Galera Generic Binary tar ball does not work on CentOS 7 Created: 2018-12-05  Updated: 2023-06-06  Resolved: 2023-06-06

Status: Closed
Project: MariaDB Server
Component/s: Compiling, Galera, Packaging
Affects Version/s: 10.3.11
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Oli Sennhauser Assignee: Teemu Ollakka
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

CentOS 7



 Description   

We downloaded from your website:
mariadb-10.3.11-linux-glibc_214-x86_64.tar.gz

ldd /opt/mariadb/lib/galera/libgalera_smm.so
        linux-vdso.so.1 =>  (0x00007ffe46592000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f64fef75000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f64fed6d000)
        libssl.so.1.0.0 => not found
        libcrypto.so.1.0.0 => not found
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f64fea66000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f64fe764000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f64fe54e000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f64fe181000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f64ff5eb000)

cd /usr/lib64
lrwxrwxrwx. 1 root root      19  5. Dez 16:13 libcrypto.so.10 -> libcrypto.so.1.0.2k
-rwxr-xr-x. 1 root root 2513000 30. Okt 23:42 libcrypto.so.1.0.2k
-rwxr-xr-x. 1 root root  340976 26. Sep 20:37 libssl3.so
lrwxrwxrwx. 1 root root      16  5. Dez 16:13 libssl.so.10 -> libssl.so.1.0.2k
-rwxr-xr-x. 1 root root  470360 30. Okt 23:42 libssl.so.1.0.2k

The old trick:

[root@localhost lib64]# ln -s libssl.so.10 libssl.so.1.0.0
[root@localhost lib64]# ln -s libcrypto.so.1.0.2k libcrypto.so.1.0.0

does not work...

/opt/mariadb/bin/mysqld --defaults-file=/etc/my.cnf.d/generic.cnf  --basedir=/opt/mariadb/ --user=mysql
2018-12-05 17:06:16 0 [Note] /opt/mariadb/bin/mysqld (mysqld 10.3.11-MariaDB-log) starting as process 3591 ...
2018-12-05 17:06:16 0 [Note] WSREP: Read nil XID from storage engines, skipping position init
2018-12-05 17:06:16 0 [Note] WSREP: wsrep_load(): loading provider library '/opt/mariadb/lib/galera/libgalera_smm.so'
2018-12-05 17:06:16 0 [ERROR] WSREP: wsrep_load(): dlopen(): /lib64/libcrypto.so.1.0.0: version `OPENSSL_1.0.0' not found (required by /opt/mariadb/lib/galera/libgalera_smm.so)
2018-12-05 17:06:16 0 [ERROR] WSREP: wsrep_load(/opt/mariadb/lib/galera/libgalera_smm.so) failed: Invalid argument (22). Reverting to no provider.
2018-12-05 17:06:16 0 [Note] WSREP: Read nil XID from storage engines, skipping position init
2018-12-05 17:06:16 0 [Note] WSREP: wsrep_load(): loading provider library 'none'

When we replace the libgalera_smm.so with the one from the CentOS 7 RPM packge it works.

Can you link those 2 libraries statically???



 Comments   
Comment by Oli Sennhauser [ 2018-12-05 ]

I am pretty sure you built this generic binary tar balls on a debian/ubunutu system. We had similar problems in the past with generic binaries built on CentOS to deploy on the other platforms...

Comment by Elena Stepanova [ 2018-12-07 ]

I suppose just as it is with the server "generic tarballs", the galera ones aren't expected to be universally suitable for any system.
But as for linking these particular libraries statically, I'll leave it to jplindst to respond.

Comment by Jan Lindström (Inactive) [ 2018-12-17 ]

Unfortunately, we cannot change currently used dynamic linking to static one at least on GA-releases. But you could open a ticket to Galeracluster for consideration as wsrep is their product.

Comment by Jan Lindström [ 2023-06-06 ]

10.3 is EOL soon.

Generated at Thu Feb 08 08:40:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.