Symptoms
-
Plesk shows the following error in starting the migration, where 203.0.113.2 is the IP-Address of the target server:
PLESK_ERROR: Failed to connect to target Plesk server by Plesk API: Plesk error [1006]: Access to API is disabled for 203.0.113.2
-
It is possible to telnet to the destination server on 8443 port locally and remotely. For example:
# telnet 203.0.113.3 8443
Trying 203.0.113.3…
Connected to 203.0.113.3.
Escape character is ‘^]’. -
There are the following record in Migration debug log file:
-
Logfile location on Windows:
%plesk_dir%varmodulespanel-migratorsessions/<date_of_session>/debug.log
-
Logfile location on Linux:
/usr/local/psa/var/modules/panel-migrator/sessions/<date_of_session>/debug.log
-
-
+|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client|||API request to https://203.0.113.2:8443/enterprise/control/agent.php
+|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client|||Request XML:
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client|||<?xml version="1.0" encoding="utf-8"?>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client|||<packet version="1.5.2.1">
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client||| <server>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client||| <get>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client||| <stat/>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client||| </get>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client||| </server>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client|||</packet>
=|2018-05-22_13:07:19,862|D|MT|core.utils.common.http_xml_client|||
+|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client|||Response:
=|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client|||<packet version="1.5.2.1">
=|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client||| <system>
=|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client||| <status>error</status>
=|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client||| <errcode>1006</errcode>
=|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client||| <errtext>Access to API is disabled for 203.0.113.2</errtext>
=|2018-05-22_13:07:20,003|D|MT|core.utils.common.http_xml_client||| </system> </packet> -
Plesk IP access policy is configured at Plesk > Tools & Settings > Restrict Administrative Access on the target server.
Cause
The target server is not accessible by Plesk API locally.
Resolution
From Plesk:
-
Go to Tools & Settings > IP Access Restriction Management (under “Security”) > Settings > select > Add Network > add the IP address of the target server.
From SSH:
-
Connect to…