WordPress websites show 502 Bad Gateway after CentOS 6 update: error:0 in libfreeblpriv3.so

Created:

2016-11-16 12:53:48 UTC

Modified:

2017-05-11 09:42:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

WordPress websites show 502 Bad Gateway after CentOS 6 update: error:0 in libfreeblpriv3.so

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

  • Wordpress pages, php pages fail to load with error:

    502 Bad Gateway / 500 Internal Server Error
  • Plesk shows the following when trying to manage Wordpress installation via Plesk:

    alttext

  • Executing curl fails:

    curl https://www.google.ru/
    Illegal instruction (core dumped)
  • The following error appears in /var/www/vhosts/system/example.com/logs/error_log file:

    (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
    Premature end of script headers: index.php
  • The following appears in /var/log/messages file:

    kernel: php-cgi[4337] trap invalid opcode ip:7fc391342d60 sp:7fff308a54a8 error:0 in libfreeblpriv3.so[7fc3912f0000+72000]

    or

    kernel: sw-engine[2258] trap invalid opcode ip:7ff492f18d60 sp:7ffd60157eb8 error:0 in libfreeblpriv3.so[7ff492ec6000+72000]
  • The following errors appear in /var/log/plesk/panel.log :

    DEBUG [util_exec] [62939198d980170660695095d07a7666][0] Starting: wpmng --user=plesk --php=/usr/bin/php -- --path=/var/www/vhosts/example.com/httpdocs core info --format=json --check-updates=true, stdin:
    ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/wpmng' '--user=plesk' '--php=/usr/bin/php' '--' '--path=/var/www/vhosts/example.com/httpdocs' 'core' 'info' '--format=json' '--check-updates=true'] with exit code [252]

Cause

Centos bug, for more information refer to this article .

Workaround

  1. Open /usr/local/psa/lib/modules/python/wpmng/wpmng.py with a text editor.

  2. Add the following record after os.environ['WP_CLI_CONFIG_PATH'] = "/usr/share/plesk-wp-cli/wp-cli.yml" line:

    os.environ['NSS_DISABLE_HW_GCM'] = "1"
  3. Synchronize issued Wordpress instance by clicking Synchronize button under Plesk > Domains > example.com > Applications > /httpdocs

Resolution

According to this article , it is required to downgrade curl with yum :

# yum downgrade curl

or

Downgrade nss and after that reboot the server:

# yum downgrade nss nss-util nss-tools nss-sysinit
Have more questions? Submit a request
Please sign in to leave a comment.