WP Toolkit Upgrade Delays Plesk upgrade to Plesk Onyx

Created:

2016-12-12 03:41:21 UTC

Modified:

2017-08-08 13:31:30 UTC

0

Was this article helpful?


Have more questions?

Submit a request

WP Toolkit Upgrade Delays Plesk upgrade to Plesk Onyx

Applicable to:

  • Plesk Onyx for Linux

Question

Upgrade process from 12.5 to Onyx is majorly "delayed" when having quite a lot of WordPress instances running. E.g. a system with 90 wordpress instances in WP Toolkit it took about 1 hour (longer) due to processes like:

dlmmng    7989  5.5  0.0 374120 47532 ?        S    23:59   0:00 /usr/bin/php -d safe_mode=off -d display_errors=off -d opcache.enable_cli=off -d open_basedir= -c /home/httpd/vhosts/system/example1.com/etc/php.ini /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php --path=/home/httpd/vhosts/example1.com/httpdocs core info --format=json --check-updates=true --quiet

11604 7922 1.3 0.0 369748 42996 ? S 23:57 0:00 /usr/bin/php -d safe_mode=off -d display_errors=off -d opcache.enable_cli=off -d open_basedir= -c /home/httpd/vhosts/system/example2.com/etc/php.ini /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php --path=/home/httpd/vhosts/example2.com/httpdocs core info --format=json --check-updates=true --quiet

Is that really required for the base upgrade? Can't it be done after the update or separately?

Answer

Operations with wp-cli , which is back-end for WP Toolkit is starting after Plesk bootstrapper procedure with option 'post-install', and this is a necessary part of the WP-Toolkit upgrade.

DEBUG [extension/wp-toolkit] Task is created successfully.
DEBUG [extension/wp-toolkit] WordPress data migrated from core to extension successfully., stderr:
INFO [panel] Execution /usr/local/psa/admin/plib/modules/wp-toolkit/scripts/migration-run.php done.
taskId=2016-07-20-04-59-45 step=upgrade result=0 message=
...
taskId=2016-09-21-15-49-41 step=upgrade result=0 message=
INFO [panel] Retrieving Extensions Catalog feed: https://ext.plesk.com/api/v3/packages?platform=unix
INFO [panel] Upgrading module wp-toolkit from 1.0 to 1.2.1.
DEBUG [extension/wp-toolkit] [58289a4ba9f27] Starting: /usr/local/psa/tmp/module8Uk9H9/plib/scripts/pre-install.php upgrade 1.0, stdin:
DEBUG [extension/wp-toolkit] [58289a4ba9f27] Finished in 0.15057s, Error code: 0, stdout: , stderr:
INFO [panel] Execution /usr/local/psa/tmp/module8Uk9H9/plib/scripts/pre-install.php done.
DEBUG [util_exec] [a30d0d3dda577bce9315811fe7109807-0] Starting: filemng root rm -rf /usr/local/psa/admin/htdocs/modules/wp-toolkit --allow-root, stdin:
DEBUG [util_exec] [a30d0d3dda577bce9315811fe7109807-0] Finished in 0.01753s, Error code: 0, stdout: , stderr:
INFO [panel] The path /usr/local/psa/admin/htdocs/modules/wp-toolkit was removed from module.
...
INFO [panel] Installing htdocs to /usr/local/psa/admin/htdocs/modules/wp-toolkit done.
INFO [panel] Installing plib to /usr/local/psa/admin/plib/modules/wp-toolkit done.
INFO [panel] Installing meta.xml to /usr/local/psa/admin/plib/modules/wp-toolkit done.
INFO [panel] Installing var to /usr/local/psa/var/modules/wp-toolkit done.
INFO [panel] Installing _meta to /usr/local/psa/admin/share/modules/wp-toolkit/_meta done.

Aforementioned command:

11604     7922  1.3  0.0 369748 42996 ?        S    23:57   0:00 /usr/bin/php -d safe_mode=off -d display_errors=off -d opcache.enable_cli=off -d open_basedir= -c /home/httpd/vhosts/system/example2.com/etc/php.ini /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php --path=/home/httpd/vhosts/example2.com/httpdocs core info --format=json --check-updates=true --quiet

is a command which called by Wp-toolkit during the upgrade in order to check for the updates for every Wordpress instance you have. This is default behavior.

It can be manually executed by clicking on Check for Updates in Plesk > Server Management > Wordpress before starting Plesk upgrade.

WP-toolkit operation is executing in scope of Plesk Upgrade task. All upgrade tasks are stored in Plesk Codebase therefore you cannot postpone one of them, including Wp-toolkit in upgrade procedure.

Have more questions? Submit a request
Please sign in to leave a comment.