Plesk is not accessible: 502 Bad Gateway

Created:

2017-05-25 19:01:58 UTC

Modified:

2017-08-08 13:14:44 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk is not accessible: 502 Bad Gateway

Symptoms

1. Cannot login to Plesk with the following error:

502 Bad Gateway

2. Percona-Server is used:

# rpm -qa | grep Percona

Percona-Server-server-56-5.6.36-rel82.0.el6.x86_64

3. mysql-connector version is 5.1.5:

# rpm -qa | grep mysql-connector
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64

4. Errors are logged to Plesk logs:

/var/log/sw-cp-server/sw-engine.log:

[25-May-2017 17:27:41] WARNING: [pool plesk] child 28541 exited with code 127 after 20.157195 seconds from start

/var/log/sw-cp-server/error_log:

2017/05/25 17:23:05 [error] 22590#0: *114 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 203.0.113.2, server: , request: "POST /login_up.php3 HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "203.0.113.3:8443", referrer: "https://203.0.113.3:8443/login_up.php3?success_redirect_url=https%3A%2F%2F185.65.43.170%3A8443%2F"

5. Using strace utility the following error can be found:

18:59:07 writev(2, [{"sw-engine-fpm: pool plesk", 25}, {": ", 2}, {"relocation error", 16}, {": ", 2}, {"/usr/lib64/libmyodbc5.so", 24}, {": ", 2}, {"symbol strmov, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference", 108}, {"", 0}, {"", 0}, {"\n", 1}], 10) = 180 <0.000055>
18:59:07 exit_group(127) = ?
18:59:07 +++ exited with 127 +++

Cause

Outdated mysql-connector package.

Resolution

Update mysql-connector package to the latest 5.1.x version:

# yum install mysql-connector

If the update is not found, download and install the required version from MySQL website.

Additional info

502 Bad Gateway in Application Vault and WordPress installation hangs on 100%: Unable to get Global settings for APS Applications

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