Plesk shows 502 Bad Gateway: symbol int2str, version libmysqlclient_18 not defined in file libmysqlclient.so.18

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 13:09:41 UTC

Modified:

2017-02-20 04:07:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows 502 Bad Gateway: symbol int2str, version libmysqlclient_18 not defined in file libmysqlclient.so.18

Symptoms

  1. 502 Bad Gateway is shown while accessing Plesk.

  2. From /var/log/sw-cp-server/error_log log:

    [error] 2194#0: *11 recv() failed (104: Connection  reset by peer) while reading response header from upstream, client:  1.2.3.4, server: , request: "GET /left.php3 HTTP/1.1", upstream:  "fastcgi://unix:/var/run/sw-engine.sock:", host: "panel.domain.tld:8443",  referrer: "https://panel.domain.tld:8443/
  3. mariadb-server 5.5.36 is used for Plesk database.

  4. From strace log, you may see the following error:

    "symbol int2str, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference", 107}

Cause

MariaDB bug: MDEV-5773 .

Resolution

Downgrade Mysql server to 5.5.35 version as it is said in MDEV-5773 .

Also libmariadbclient18 package should have the same version:

    # dpkg -l |grep libmariadbclient18
ii libmariadbclient18 5.5.35+maria-1~wheezy amd64 MariaDB database client library

Make sure that mentioned symbols in error exist in /usr/lib/libmysqlclient.so.18 :

    # strings /usr/lib/libmysqlclient.so.18 |grep libmysqlclient_18
libmysqlclient_18
Have more questions? Submit a request
Please sign in to leave a comment.