• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Migrating Sites Error

scottthepotter

Basic Pleskian
I have migrated about 40 sites in the past week and today when I go to the 'Migration and Transfer Manager' I get the following error:

Failed to check Plesk API connection to target Plesk server: HttpClientError(HTTP Error 502: Bad Gateway, '<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body bgcolor="white">\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n')

When I check the logs (/var/log/sw-cp-server/error.log) I see the following:
2017/03/01 10:19:21 [error] 30609#0: *66 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 74.208.43.105, server: , request: "POST /enterprise/control/agent.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "localhost"

I have changed the /etc/sw-cp-server/config file to have:
fastcgi_buffers 32 32k;
fastcgi_buffer_size 64k;

I have restarted httpd, nginx, sw-cp-server, sw-cp-engine to no avail

Incidentally when I try to navigate to 'Extensions>Webserver Configurations Troubleshooter' I get a '502 Bad Gateway' error from NGINX.
 
There may be many reasons of this 502 nginx error described in KB articles. I would suggest you use phrase:

failed (104: Connection reset by peer) while reading response header from upstream

for KB search and find there appropriate solution.
 
Back
Top