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

Created:

2016-11-16 13:20:57 UTC

Modified:

2017-08-16 18:34:44 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

  • Accessing Tools & Settings > Application Vault ends with the error:

    502 Bad Gateway
  • While trying to perform server backup, the following error is shown:

    Warning:  server "server"
    Unable to get Global settings for APS Applications (ErrorCode: 127, STDOUT:).
  • Attempt to get APS global settings manually results in another error:

    # /usr/local/psa/bin/aps --get-packages-global-settings
    /usr/bin/sw-engine: relocation error: /usr/lib64/libmyodbc5.so: symbol strmov, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference
  • Wordpress installation hangs at 100 %

  • MySQL 5.5 or higher is being used.

Cause

Outdated mysql-connector package.

Resolution

  1. Check the version of mysql-connector and mysql packages:

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

    # rpm -qa | grep mysql-
    mysql-community-server-5.6.31-2.el6.x86_64
  2. Update mysql-connector package to required version using the following ways:

    # yum install mysql-connector

    if update was not found, download and install the required version from MySQL website

  3. Set the correct path to libraries in /etc/odbcinst.ini if required:

    [MySQL]
    Description = MySQL driver for Plesk
    Driver = /usr/lib64/libmyodbc5w.so
    Setup =
    FileUsage = 1
    Driver64 = /usr/lib64/libmyodbc5w.so
    Setup64 =
    UsageCount = 1
  4. Create the symbolic link to mysql.sock file if required:

    # ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Have more questions? Submit a request
Please sign in to leave a comment.