Migration from cPanel fails due to missing library: relocation error mysql.so symbol mysql_options4

Created:

2016-11-16 13:16:54 UTC

Modified:

2017-08-08 13:18:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Migration from cPanel fails due to missing library: relocation error mysql.so symbol mysql_options4

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux

Symptoms

Migration from cPanel fails with error:

[2016-10-02 17:06:53][ERROR] Failed to perform action: Fetch data from source cPanel
Cause: Error creating migration dump: Command execution failed on the source server 'cpanel' (192.168.55.81) with non-zero exit code.
command: cd /tmp/panel_migrator/pmm_agent; /usr/bin/perl cPanel9.pl --dump-all --configuration-only --server -v 5 > dump.log 2>&1
exit code: 127

Since operation fails on remote server you need to check migrator agent log:

# less /usr/local/psa/var/modules/panel-migrator/sessions/20161003154045/pmm-agent.2016.10.03.15.40.45/configuration-dump.log

The following error might be found there:

/usr/bin/perl: relocation error: /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so: symbol mysql_options4, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference

Cause

This error means that PERL library mysql.so cannot find corresponding function in libmysqlclient.so.18 library. cPanel uses their own MySQL server:

# rpm -qf /usr/lib64/libmysqlclient.so.18
MySQL55-shared-5.5.52-1.cp1156.x86_64

So it is needed to find PERL mysql.so library from cPanel as well.

Resolution

  1. Looking for a library:

    # locate mysql.so
    /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/auto/DBD/mysql/mysql.so
  2. Backup original library and replace it with mysql.so from cPanel:

    # cp /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so{,.orig}
    # mv /usr/local/cpanel/3rdparty/perl/522/lib64/perl5/cpanel_lib/x86_64-linux-64int/auto/DBD/mysql/mysql.so /usr/local/lib64/perl5/auto/DBD/mysql/mysql.so
  3. Restart migration.

Have more questions? Submit a request
Please sign in to leave a comment.