Migration to Plesk 12.5 or Onyx fails: error 1006: Access to API is disabled

Created:

2016-11-16 12:50:51 UTC

Modified:

2017-08-08 13:17:31 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Migration to Plesk 12.5 or Onyx fails: error 1006: Access to API is disabled

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 12.5 for Windows

Symptoms

Migration from Plesk 9.5 to Plesk 12.5 fails. Plesk shows the following error:

Error: Looks like the migration could not be started. Please check that the specified IP address and the administrator login and password are correct and try again. Refer to logs for details: download info log, download debug log.

The following can be found in /usr/local/psa/var/modules/panel-migrator/sessions/<session_date>/info.log :

[INFO] START: Check connections
[ERROR] Failed to connect to target Plesk server by Plesk API: Plesk error [1006]: Access to API is disabled.

The following can be found in /usr/local/psa/var/modules/panel-migrator/sessions/<session_date>/debug.log :

+|2016-03-18_16:28:26,666|D|MT|core.utils.common.http_xml_client|||API request to https://10.10.10.10:8443/enterprise/control/agent.php:
.....
=|2016-03-18_16:28:26,725|D|MT|core.utils.common.http_xml_client|||<errtext>Access to API is disabled.</errtext>

Cause

API is disabled in panel.ini on the target server. This is Plesk Migrator internal issue with ID #PMT-2702 , which is planned to be fixed in future Plesk updates.

Resolution

Enable API using the following steps:

  1. Open /usr/local/psa/admin/conf/panel.ini in text editor:

    # vi /usr/local/psa/admin/conf/panel.ini
  2. Set enabled = on under [api] :

    [api]
    enabled = on
Have more questions? Submit a request
Please sign in to leave a comment.