Plesk cannot communicate with billing systems (CBM or WHMCS ): 502 Bad Gateway, failed to perform the request to the panel by the URL

Created:

2016-11-16 13:03:55 UTC

Modified:

2017-02-23 05:50:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk cannot communicate with billing systems (CBM or WHMCS ): 502 Bad Gateway, failed to perform the request to the panel by the URL

Symptoms

  • Plan cannot be synchronized between CBM and Plesk. When Sync in Business Setup > Plans is selected the following error message appears:

    Error: Sync errors:
    Failed to repair the plan in panel 'Local Parallels Plesk Panel server (example.com)': Failed to perform the request to the panel by the URL 'https://localhost:8443': <html>
    <head><title>502 Bad Gateway</title></head>
    <body bgcolor="white">
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    <br/>Check the panel, network, and firewall settings and try again.
    Please resolve the problems manually and retry to sync this plan.
  • WHMCS cannot communicate with Plesk. If go to WHMCS > Setup > product and services > Servers , click on Edit option and click on "Test connection" if returns FAILED .

  • The following error is shown in Module log in WHMCS.

    <html>
    <head><title>502 Bad Gateway</title></head>
    <body bgcolor="white">
    <center><h1>502 Bad Gateway</h1></center>
    <hr><center>nginx</center>
    </body>
  • /var/log/syslog or /var/log/messages contains the following string:

    kernel: grsec: From 10.20.30.40: denied ptrace of /usr/sbin/sw-engine-fpm(sw-engine-fpm:8880) by /usr/sbin/sw-engine-fpm[sw-engine-fpm:8881] uid/euid:1000/1000 gid/egid:1000/1000, parent /usr/sbin/sw-engine-fpm[sw-engine-fpm:8880] uid/euid:1000/1000 gid/egid:1000/1000
  • Execution of the following command returns the same result:

    # sysctl kernel.grsecurity.harden_ptrace
    kernel.grsecurity.harden_ptrace = 1

Cause

Linux kernel security ptrace protection is enabled.

Resolution

Disable ptrace protection

# echo "kernel.grsecurity.harden_ptrace = 0" >> /etc/sysctl.conf

# sysctl -p
Have more questions? Submit a request
Please sign in to leave a comment.