• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Upgrading failed with error while trying to execute SQL query

msmmsm

New Pleskian
Code:
 ===> Preparing Plesk database upgrade (revertable stage).
 ERROR 1146 (42S02) at line 1: Table 'psa.WordpressInstances' doesn't exist
 InnoDB


 ERROR while trying to execute SQL query, the query was: ALTER TABLE `WordpressInstances` ADD KEY `subscriptionId_idx` (subscriptionId)
 Check the error reason(see log file: /var/log/plesk/install/plesk_17.0.17_installation.log), fix and try again

 
 ***** problem report *****
 ERROR while trying to execute SQL query, the query was: ALTER TABLE `WordpressInstances` ADD KEY `subscriptionId_idx` (subscriptionId)
 Check the error reason(see log file: /var/log/plesk/install/plesk_17.0.17_installation.log), fix and try again
 

Attachments

  • parallels-installation-log.txt
    44 KB · Views: 1
Try to fix database before upgrade with

# plesk repair db
 
I have the same exact problem for a while:

MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.apsc.17.0.17-17.0.17.20170322-034244.dump.gz
===> Cumulative upgrade of APS controller database has been completed.
===> Cumulative Plesk database upgrade (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
ERROR 1146 (42S02) at line 1: Table 'psa.WordpressInstances' doesn't exist

I tried plesk repair db, which shows no error.

I don't even use Wordpress and don't have the Wordpress plugin installed.

How can I fix this problem? I cannot install plesk updates, which is a security risk.
 
Try to create this missing table with

CREATE TABLE `WordpressInstances` (`id` int(10) unsigned NOT NULL AUTO_INCREMENT,`subscriptionId` int(10) unsigned NOT NULL,`path` varchar(255) NOT NULL,`isIgnored` int(11) NOT NULL DEFAULT '0',`apsInstanceId` int(11) unsigned DEFAULT NULL,PRIMARY KEY (`id`),UNIQUE KEY `path` (`subscriptionId`,`path`),KEY `subscriptionId_idx` (`subscriptionId`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
Back
Top