Plesk migration cannot be started: Failed to check Plesk API connection to the source server 'source' HTTP Error 404

Created:

2016-11-16 12:47:43 UTC

Modified:

2017-04-24 12:11:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk migration cannot be started: Failed to check Plesk API connection to the source server 'source' HTTP Error 404

Applicable to:

  • Plesk for Linux

Symptoms

  1. Migration cannot be started:

    Error: Looks like migration can not be started. The most common cause: wrong IP address, administrator login or password specified, so please check it first. Refer logs for details

  2. The following error is shown in info.log and debug.log:

    [ERROR] Failed to check Plesk API connection to the source server 'source' (server_name): HttpClientError(HTTP Error 404: Not Found, '<?xml version="1.0" encoding="iso-8859-1"?>\

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\ \ \ 404 - Not Found \ \ \

    404 - Not Found

    \ \ \').

  3. A sample API request from the destination server to source results as follows:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>404 - Not Found</title>
    </head>
    <body>
    <h1>404 - Not Found</h1>
    </body>
    </html>
  4. There is no agent.php file in /usr/local/psa/admin/htdocs/enterprise/control/ directory on the source server.

Cause

Destination server is unable to send any API requests to the source server as agent.php file is missing in the source server.

Resolution

Extract the from a plesk-core package.

# rpm2cpio plesk-core-12.5.30*.rpm |cpio -ivd ./usr/local/psa/admin/htdocs/enterprise/control/agent.php 
# mv ./usr/local/psa/admin/htdocs/enterprise/control/agent.php /usr/local/psa/admin/htdocs/enterprise/control/

If step above not helped, contact Plesk technical support .

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