Plesk

Operations in WP Toolkit fail: WP-CLI command has not finished working in 60 seconds, so it was terminated

Symptoms

Cause

The default timeout of 60 seconds to skip suspicious or infected files of WordPress instances, is exceeded, which may happen by insufficient amount of CPU and RAM resources available or many files to be copied to the new instance.

Resolution

Increase WP Toolkit default timeout value:

  1. Log in to Plesk GUI

  2. Install the extension Panel.ini Editor

  3. Go to Extensions > My Extensions > Panel.ini Editor > Open > Editor

  4. Add the following lines to the end of the text field and click Save:

    [ext-wp-toolkit]
    wpCliTimeoutHeavy = 3600
    wpCliTimeoutMedium = 600
    wpCliTimeoutRegular = 600
    wpCliTimeoutMaintenanceTimeout = 360

In case the issue persists, scan and remove malware from the WordPress instance with an antivirus software.

Exit mobile version