WP Toolkit fails to install WordPress with error code 255
Installation of WordPress on using WP Toolkit fails with
. From the logfile I got the following:
WP Toolkit is installed from packages, version is 6.1.3-7108. Any idea or suggestion is appreciated. Thanks
WordPress was installed with errors: Task is not responding, error code '255'
. From the logfile I got the following:
[2023-04-08 21:40:36.546] DEBUG Enable heavy timeout for all WP-CLI operations running as part of an website installation operation
[2023-04-08 21:40:36.757] DEBUG Executing 'init-instance-object' step
[2023-04-08 21:40:37.259] DEBUG Stopping execution 'task_install' task
[2023-04-08 21:40:37.259] DEBUG [Task id: 4]
[2023-04-08 21:40:37.259] DEBUG [Task id: 4] Fatal error: Uncaught TypeError: Argument 1 passed to PleskExt\WpToolkit\Event\Instance\SiteInstallationFailedEvent::__construct() must be of the type int, null given, called in /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/BackgroundTasksImplementation/Install/InstallTask.php on line 295 and defined in /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/Event/Instance/SiteInstallationFailedEvent.php:18
[2023-04-08 21:40:37.259] DEBUG [Task id: 4] Stack trace:
[2023-04-08 21:40:37.259] DEBUG [Task id: 4] #0 /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/BackgroundTasksImplementation/Install/InstallTask.php(295): PleskExt\WpToolkit\Event\Instance\SiteInstallationFailedEvent->__construct(NULL, 'This WordPress ...')
[2023-04-08 21:40:37.259] DEBUG [Task id: 4] #1 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/plesk/background-tasks/src/Executor/SaasExecutor.php(197): PleskExt\WpToolkit\BackgroundTasksImplementation\Install\InstallTask->onError(Object(BackgroundTasks\DataStorage\SaasTaskDataStorage), Object(Exception))
[2023-04-08 21:40:37.259] DEBUG [Task id: 4] #2 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/plesk/background-tasks/src/Executor/SaasExecutor.php(90): BackgroundTasks\Exe in /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/Event/Instance/SiteInstallationFailedEvent.php on line 18
[2023-04-08 21:40:37.375] DEBUG Process for task '4' exited with code '255' and signal 'null'
WP Toolkit is installed from packages, version is 6.1.3-7108. Any idea or suggestion is appreciated. Thanks
-
Hey there! I spoke with the WordPress Toolkit team about this issue, and they created a case on their end to look into that stack trace output. However, they did let me know that portion of the error can be ignored and that the installation error is likely higher up in the log. If you can't find more details in the log, please create a ticket and we'll be happy to take a look! 0 -
Thank you for relaying the issue to the WordPress Toolkit team. I took the relevant part from the log file, these entries are logged with each installation attempt: [2023-04-10 19:40:44.271] DEBUG [URLleATXWxN03ULm] WPT API request GET /cpsess1992562678/3rdparty/wpt/index.php/v1/installer/installation-stub [2023-04-10 19:40:44.527] DEBUG Checking if CageFS is enabled for remote server #1 (localhost) [2023-04-10 19:40:44.528] DEBUG CageFS is disabled for remote server #1 (localhost) [2023-04-10 19:40:44.997] DEBUG Retrieve cache with ID "versions" [2023-04-10 19:40:44.997] DEBUG Acquire lock 'cache_versions' [2023-04-10 19:40:44.998] DEBUG Lock 'cache_versions' acquired successfully [2023-04-10 19:40:44.998] DEBUG Release lock 'cache_versions' [2023-04-10 19:40:44.998] DEBUG Cache with ID "versions" retrieved successfully [2023-04-10 19:40:45.007] DEBUG Retrieve cache with ID "languages_6.2" [2023-04-10 19:40:45.007] DEBUG Acquire lock 'cache_languages_6.2' [2023-04-10 19:40:45.007] DEBUG Lock 'cache_languages_6.2' acquired successfully [2023-04-10 19:40:45.007] DEBUG Release lock 'cache_languages_6.2' [2023-04-10 19:40:45.007] DEBUG Cache with ID "languages_6.2" retrieved successfully [2023-04-10 19:40:45.491] DEBUG Contents of directory '/home/kreativnidijaman/public_html/': [.htaccess, .well-known, .user.ini, .wp-toolkit-ignore] [2023-04-10 19:40:46.051] DEBUG [URLleATXWxN03ULm] WPT API response code: 200 [2023-04-10 19:40:46.757] DEBUG [kwKQpGMGU2QVzNuy] WPT API request POST /cpsess1992562678/3rdparty/wpt/index.php/v1/installer/path-validator [2023-04-10 19:40:46.997] DEBUG Checking if CageFS is enabled for remote server #1 (localhost) [2023-04-10 19:40:46.997] DEBUG CageFS is disabled for remote server #1 (localhost) [2023-04-10 19:40:47.220] DEBUG Contents of directory '/home/kreativnidijaman/public_html/': [.htaccess, .well-known, .user.ini, .wp-toolkit-ignore] [2023-04-10 19:40:48.537] DEBUG [kwKQpGMGU2QVzNuy] WPT API response code: 204 [2023-04-10 19:41:00.705] DEBUG [FpSHhmkf3zdlEsNE] WPT API request POST /cpsess1992562678/3rdparty/wpt/index.php/v1/installations [2023-04-10 19:41:01.013] DEBUG Checking if CageFS is enabled for remote server #1 (localhost) [2023-04-10 19:41:01.013] DEBUG CageFS is disabled for remote server #1 (localhost) [2023-04-10 19:41:01.558] DEBUG Contents of directory '/home/kreativnidijaman/public_html/': [.htaccess, .well-known, .user.ini, .wp-toolkit-ignore] [2023-04-10 19:41:01.573] DEBUG Retrieve cache with ID "versions" [2023-04-10 19:41:01.573] DEBUG Acquire lock 'cache_versions' [2023-04-10 19:41:01.574] DEBUG Lock 'cache_versions' acquired successfully [2023-04-10 19:41:01.574] DEBUG Release lock 'cache_versions' [2023-04-10 19:41:01.574] DEBUG Cache with ID "versions" retrieved successfully [2023-04-10 19:41:01.574] DEBUG Retrieve cache with ID "versions" [2023-04-10 19:41:01.574] DEBUG Acquire lock 'cache_versions' [2023-04-10 19:41:01.574] DEBUG Lock 'cache_versions' acquired successfully [2023-04-10 19:41:01.574] DEBUG Release lock 'cache_versions' [2023-04-10 19:41:01.574] DEBUG Cache with ID "versions" retrieved successfully [2023-04-10 19:41:01.574] DEBUG Retrieve cache with ID "versions" [2023-04-10 19:41:01.574] DEBUG Acquire lock 'cache_versions' [2023-04-10 19:41:01.574] DEBUG Lock 'cache_versions' acquired successfully [2023-04-10 19:41:01.574] DEBUG Release lock 'cache_versions' [2023-04-10 19:41:01.574] DEBUG Cache with ID "versions" retrieved successfully [2023-04-10 19:41:01.585] DEBUG Retrieve cache with ID "languages_6.2" [2023-04-10 19:41:01.585] DEBUG Acquire lock 'cache_languages_6.2' [2023-04-10 19:41:01.585] DEBUG Lock 'cache_languages_6.2' acquired successfully [2023-04-10 19:41:01.585] DEBUG Release lock 'cache_languages_6.2' [2023-04-10 19:41:01.585] DEBUG Cache with ID "languages_6.2" retrieved successfully [2023-04-10 19:41:02.062] DEBUG Contents of directory '/home/kreativnidijaman/public_html/': [.htaccess, .well-known, .user.ini, .wp-toolkit-ignore] [2023-04-10 19:41:03.734] DEBUG Acquire lock 'installationsViaDrawerCount' [2023-04-10 19:41:03.734] DEBUG Lock 'installationsViaDrawerCount' acquired successfully [2023-04-10 19:41:03.894] DEBUG Release lock 'installationsViaDrawerCount' [2023-04-10 19:41:03.894] DEBUG Retrieve cache with ID "versions" [2023-04-10 19:41:03.894] DEBUG Acquire lock 'cache_versions' [2023-04-10 19:41:03.894] DEBUG Lock 'cache_versions' acquired successfully [2023-04-10 19:41:03.894] DEBUG Release lock 'cache_versions' [2023-04-10 19:41:03.894] DEBUG Cache with ID "versions" retrieved successfully [2023-04-10 19:41:03.894] DEBUG Acquire lock 'installationsOfLastVersionViaDrawerCount' [2023-04-10 19:41:03.895] DEBUG Lock 'installationsOfLastVersionViaDrawerCount' acquired successfully [2023-04-10 19:41:04.052] DEBUG Release lock 'installationsOfLastVersionViaDrawerCount' [2023-04-10 19:41:04.696] DEBUG [FpSHhmkf3zdlEsNE] WPT API response code: 201 [2023-04-10 19:41:04.860] DEBUG [JwcRKGmD5U0fjcMe] WPT API request GET /cpsess1992562678/3rdparty/wpt/index.php/v1/background-tasks/task_install/61 [2023-04-10 19:41:05.139] DEBUG Starting process for task '61' [2023-04-10 19:41:05.646] DEBUG Going to start background task '61' under user 'kreativnidijaman' [2023-04-10 19:41:05.941] DEBUG [JwcRKGmD5U0fjcMe] WPT API response code: 200 [2023-04-10 19:41:06.043] DEBUG Starting execution 'task_install' task with parameters: array ( 'urlMapping' => array ( 'domain' => 'kreativnidijamanti.rs', 'installationPrefix' => '', 'protocol' => 'https', ), 'adminAccess' => array ( 'login' => 'admin_vu5dzdh3', 'password' => '$aes-256-gcm$wArmd2DZNJ0xojcl$S7gxMV6tv6UtpY+n2wXB+w==$YOyYLZJ2Z+1c/0GgYbDJ+Q==', ), 'version' => '6.2', 'adminEmail' => 'admin@kreativnidijamanti.rs', 'title' => 'Kreativni dijamanti', 'language' => 'en_US', 'dbServer' => NULL, 'dbName' => 'kreativnidijaman_wp_ohmrq', 'dbUser' => 'kreativnidijaman_wp_hal2f', 'dbUserPassword' => '$aes-256-gcm$ZJaxO9jjB1SwGMjG$OKTxK0EnnyB0Roqedvwf0Q==$r7UajitlV2M79XMKR7r0bQ==', 'setId' => 2, 'prefix' => 'WLoHwiG_', 'forceUpdates' => 'true', 'pluginsForceUpdates' => false, 'themesForceUpdates' => false, 'newlyInstalledPluginsAutoUpdates' => false, 'newlyInstalledThemesAutoUpdates' => false, 'pluginVulnerabilityPolicy' => 'nothing', 'themeVulnerabilityPolicy' => 'nothing', 'applicationExecutionMode' => 'regular', ) [2023-04-10 19:41:06.379] DEBUG Enable heavy timeout for all WP-CLI operations running as part of an website installation operation [2023-04-10 19:41:06.919] DEBUG Executing 'init-instance-object' step [2023-04-10 19:41:07.759] DEBUG Stopping execution 'task_install' task [2023-04-10 19:41:07.771] DEBUG [Task id: 61] [2023-04-10 19:41:07.771] DEBUG [Task id: 61] Fatal error: Uncaught TypeError: Argument 1 passed to PleskExt\WpToolkit\Event\Instance\SiteInstallationFailedEvent::__construct() must be of the type int, null given, called in /usr/local/c panel/3rdparty/wp-toolkit/plib/library/BackgroundTasksImplementation/Install/InstallTask.php on line 295 and defined in /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/Event/Instance/SiteInstallationFailedEvent.php:18 [2023-04-10 19:41:07.771] DEBUG [Task id: 61] Stack trace: [2023-04-10 19:41:07.771] DEBUG [Task id: 61] #0 /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/BackgroundTasksImplementation/Install/InstallTask.php(295): PleskExt\WpToolkit\Event\Instance\SiteInstallationFailedEvent->__construct(N ULL, 'This WordPress ...') [2023-04-10 19:41:07.771] DEBUG [Task id: 61] #1 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/plesk/background-tasks/src/Executor/SaasExecutor.php(197): PleskExt\WpToolkit\BackgroundTasksImplementation\Install\InstallTask->onError( Object(BackgroundTasks\DataStorage\SaasTaskDataStorage), Object(Exception)) [2023-04-10 19:41:07.771] DEBUG [Task id: 61] #2 /usr/local/cpanel/3rdparty/wp-toolkit/plib/vendor/plesk/background-tasks/src/Executor/SaasExecutor.php(90): BackgroundTasks\Exe in /usr/local/cpanel/3rdparty/wp-toolkit/plib/library/Event /Instance/SiteInstallationFailedEvent.php on line 18 [2023-04-10 19:41:07.872] DEBUG Process for task '61' exited with code '255' and signal 'null'
0 -
Thanks - I've passed this along as well. 0 -
While they're at it... I recently used the toolkit to setup 3 /dev installs. All using subdomains, all located/pointed to a sub-folder, and all ended up failing to build. Worst part being that it might have mucked up the 1 site that had a WP install in the root folder (the other sites didn't have WP installs). My apologies for not going into more detail. I just stumbled onto this post. Fortunately, it seems fairly easy to recreate. 0
Please sign in to leave a comment.
Comments
4 comments