• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Resolved Plesk Migrator: Failed to connect

Paul Hermans

Basic Pleskian
When trying to use the Plesk Migrator I get this error:

ERROR: "Failed to connect to target Plesk server by Plesk API: Plesk error [1006]: Access to API is disabled for 1.2.3.4"

Destination server:
Centos 8.1 + Plesk Obisidian Version 18.0.25 Update #2
Source servers tested: Centos 6.x + Plesk Onyx, Centos 7.x + Plesk Obisidian

Steps to reproduce:
1) Plesk > Tools & Settings > Migration & Transfer Manager
2) Start a New Migration
3) SSH + pw

What did I already check?

SSH access is confirmed using
# ssh 1.2.3.4

Plesk API is functioning normal, tested with other app

Panel.ini api settings are ok
I tested with allowedIPs=1.2.3.4
And without ip restrictions (allowedIPs commented out)

When watching /var/log/secure on the source server while connecting:
I see no log lines, so Plesk does not even try to connect to SSH.

It doesn't matter if I supply the correct or incorrect SSH password, same error message.

I am out of options.
Anybody any ideas?
 
Last edited:
OK, found it!

You need to put the IP-address of the destination server on the allowedIPs list of the API inside panel.ini on the destination sever itself.

(Apparently the Plesk migrator connects to itself using the Plesk API)
 
OK, found it!

You need to put the IP-address of the destination server on the allowedIPs list of the API inside panel.ini on the destination sever itself.

(Apparently the Plesk migrator connects to itself using the Plesk API)
Thanks for sharing this workaround. I was struggling with "Plesk error [1006]: Access to API is disabled" for a while and after reading your comment found a way to fix it.
 
Back
Top