Plesk is showing 502 Bad Gateway error after login: sw-engine-fpm: segfault in libmysqlclient_r.so.16.0.0

Created:

2016-11-16 13:12:44 UTC

Modified:

2017-04-24 11:23:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk is showing 502 Bad Gateway error after login: sw-engine-fpm: segfault in libmysqlclient_r.so.16.0.0

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.0 for Linux

Symptoms

Plesk Home page shows 502 Bad Gateway.

In /var/log/sw-cp-server/error_log following error can be found:

2015/12/28 05:53:26 [error] 10436#0: *672 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: , request: "GET /admin/home/admin HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "xxx.xxx.xxx.xxx:8443", referrer: "https://xxx.xxx.xxx.xxx:8443/"

In /var/log/syslog following error can be found:

Dec 28 05:53:26 94 kernel: [27894542.369643] sw-engine-fpm[27112]: segfault at 407 ip 00007fa5929fe133 sp 00007fffa8081720 error 6 in libmysqlclient_r.so.16.0.0[7fa5929c8000+13e000]

Library libmysqlclient16 is installed from Percona repository:

# dpkg -l | grep libmysqlclient16
ii libmysqlclient16
5.1.73-rel14.12-624.squeeze Percona Server database client library

MySQL server is used:

# dpkg -l | grep mysql-server
ii mysql-server-5.1 5.1.73-1 amd64 MySQL database server binaries and system database setup
ii mysql-server-core-5.1 5.1.73-1 amd64 MySQL database server binaries

Cause

Percona Server database client library is installed with MySQL database server.

Resolution

  1. Move all 3rd party repositories to another directory:

    # mv /etc/apt/sources.list.d/* /root/sourceslist
  2. Remove libmysqlclient16 and install it from Debian repository:

    # dpkg -r --force-depends libmysqlclient16
    # apt-get install libmysqlclient16
Have more questions? Submit a request
Please sign in to leave a comment.