Articles in this section

Migration to Plesk server fails: error 1006: Access to API is disabled

kb: bug Plesk for Windows Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

  • Migration to the Plesk server fails with one of the following errors:

    PLESK_ERROR: Failed to connect to target Plesk server by Plesk API: Plesk error [1006]: Access to API is disabled.


    PLESK_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.

Cause

API is disabled in Plesk configuration file panel.ini on the target Plesk server.

Plesk Migrator functionality will be reworked to avoid such issues in the scope of the #PMT-2702 request.

Resolution

As a workaround, enable API using the following steps:

  1. Log into Plesk UI.
  2. Install "panel.ini editor" extension using this guide.
  3. Open Plesk > Extensions > My extensions > panel.ini editor:
    1.png
     
  4. Using Panel.ini editor extension set option enabled = on under [api] section.
    If there any other lines under [api] section comment them out :

    [api]
    enabled = on
    ;allowedIPs <--- this line is commented
    ;ip filter  <--- this line is commented

  5. Cancel current migration and start a new migration from scratch.

Additional information

 

Was this article helpful?

Comments

2 comments
Date Votes

Please sign in to leave a comment.