Articles in this section

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

Plesk for Windows Plesk for Linux kb: technical ext: wptk ABT: Group B

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

  • Operations in WP Toolkit fail with the following error message:

    WP-CLI command has not finished working in 60 seconds, so it was terminated. Usually this means that there are problems with WordPress installation itself, for example it could be infected with malware. Check the wp-config.php file of the installation for potential malware code.

  • The following message is received via email:

    WP Toolkit was not able to finish running an operation on this site in 60 seconds, so the operation was terminated. This could mean that your WordPress installation might be infected with malware. Check the wp-config.php file of the installation for potential malware code or run an anti-virus scan. If you cannot find any traces of malware, try running the operation again later.

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 into Plesk

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

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.