Plesk

Migration can not be started: Failed to connect to target Plesk server by Plesk API Plesk error 1006 Access to API is disabled

Symptoms

Cause

Plesk API is unable to access the target server locally because the server's own IP address was not added to the list of allowed IP addresses.

Resolution

  1. Log in to the target server

  2. Navigate to Tools & Settings > IP Access Restriction Management

  3. Allow the target server's address: click Add Network and enter the IP.

Command-line solution

  1. Connect to the target server via SSH;

  2. Create a dump of the Plesk database:

  3. Access the Plesk database:

    # plesk db

  4. Add the target server's IP address to the list of allowed IP addresses:

    insert into cp_access (type, netaddr, netmask) values…

Exit mobile version