• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be 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.

Resolved Plesk Migrator - Can't get it to work

Harm Jakob Tolsma

New Pleskian
Server operating system version
Ubuntu 20.04.4 LTS
Plesk version and microupdate number
Plesk Obsidian 18.0.44 Update #3
I'm trying to move a few sites using the Plesk Migrator, but can't get it to work.
The IP-addresses below are not real (obviously).

Server A (target):
- IP: 1.2.3.4
- Has '4.3.2.1' listed under 'IP Access Restriction Management' (Denied from networks that are not listed)
- 'enabled = on' is in panel.ini under '[api]'
- No 'ip filter' or 'allowedIPs' under [api]
- 'telnet 4.3.2.1 8443' connects without error

Server B (source):
- IP: 4.3.2.1
- Has '1.2.3.4' listed under 'IP Access Restriction Management' (Denied from networks that are not listed)
- 'enabled = on' is in panel.ini under '[api]'
- No 'ip filter' or 'allowedIPs' under [api]
- 'telnet 1.2.3.4 8443' connects without error

The Migrators debug.log:
Code:
+|2022-07-01_11:21:45,031|D|MT|core.utils.common.http_xml_client|||API request to https://1.2.3.4:8443/enterprise/control/agent.php
+|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||Request XML:
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||<?xml version="1.0" encoding="utf-8"?>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||<packet version="1.5.2.1">
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||  <server>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||    <get>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||      <stat/>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||    </get>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||  </server>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||</packet>
=|2022-07-01_11:21:45,034|D|MT|core.utils.common.http_xml_client|||
+|2022-07-01_11:21:45,034|D|MT|core.utils.http_client|||Connecting using TLSv1.2
+|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||Response:
=|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||<packet version="1.5.2.1">
=|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||        <system>
=|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||            <status>error</status>
=|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||            <errcode>1006</errcode>
=|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||            <errtext>Access to API is disabled for 1.2.3.4</errtext>
=|2022-07-01_11:21:45,132|D|MT|core.utils.common.http_xml_client|||        </system>    </packet>
+|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||Exception:
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||Traceback (most recent call last):
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/checker.py", line 53, in check_plesk_api
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    plesk_server.run_test_api_request()
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/plesk_server.py", line 63, in run_test_api_request
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    self._get_server_info()
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    value = func(*args, **kw)
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/plesk_server.py", line 67, in _get_server_info
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    return get_server_info_with_key(self)
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    value = func(*args, **kw)
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/plesk_utils.py", line 749, in get_server_info_with_key
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    plesk_api = panel_server.plesk_api()
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    value = func(*args, **kw)
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/connections/target_server.py", line 136, in plesk_api
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    return self.conn.plesk_api()
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/utils/common/__init__.py", line 253, in wrapper
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    value = func(*args, **kw)
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/connections/target_connections.py", line 129, in plesk_api
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    ServerOperator.Dataset.STAT,
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/utils/xml_rpc/plesk/client.py", line 36, in send
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    return self.send_many(operation, **request_settings)[0]
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/utils/xml_rpc/plesk/client.py", line 90, in send_many
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||    url=self.url, request_str=request_str, response_str=response_str
=|2022-07-01_11:21:45,133|D|MT|core.connections.checker|||PleskError: Plesk error [1006]: Access to API is disabled for 1.2.3.4
+|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||Exception:
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||Traceback (most recent call last):
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/workflow/runner/by_subscription.py", line 164, in run_multi_attempts
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    run()
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/workflow/runner/by_subscription.py", line 153, in run
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    action.run(self._context)
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/actions/base/legacy_action.py", line 68, in run
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    self.function(global_context)
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/workflow/shared_hosting_workflow.py", line 346, in <lambda>
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    function=lambda ctx: ctx.migrator._check_connections(ctx.options)
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/migrator.py", line 249, in _check_connections
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    self._check_target()
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/migrator.py", line 339, in _check_target
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    self.global_context.conn.target.check_connections()
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/connections/target_connections.py", line 150, in check_connections
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    connection_checker.check_plesk_api(self.plesk_server)
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||  File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/checker.py", line 72, in check_plesk_api
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||    server=plesk_server.description(), error=e
=|2022-07-01_11:21:45,135|D|MT|core.workflow.runner.by_subscription|||PleskConnectionCheckError: Failed to connect to target Plesk server by Plesk API: Plesk error [1006]: Access to API is disabled for 1.2.3.4

What can I do to get the Migrator working?
 
On your target server, also add the IP of the target server in the access restrictions list (so that the target server can connect to itself)
 
Back
Top