[ https://issues.apache.org/jira/browse/CLOUDSTACK-8212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14615046#comment-14615046 ]
Jeff Moody edited comment on CLOUDSTACK-8212 at 7/6/15 2:02 PM: ---------------------------------------------------------------- I have consistently reproduced this as an issue with /usr/share/cloudstack-management/setup/db/schema-421to430.sql on Centos 6 using MariaDB-server-10.0.20-1.el6.x86_64 and cloudstack-management-4.4.4-shapeblue0.el6.x86_64 or cloudstack-management-4.5.1-shapeblue0.el6.x86_64 This is resolved by commenting out: UPDATE `cloud`.`configuration` SET value = CONCAT("*.",(SELECT `temptable`.`value` FROM (SELECT * FROM `cloud`.`configuration` WHERE `name`="consoleproxy.url.domain") AS `temptable` WHERE `temptable`.`name`="consoleproxy.url.domain")) WHERE `name`="consoleproxy.url.domain"; UPDATE `cloud`.`configuration` SET `value` = CONCAT("*.",(SELECT `temptable`.`value` FROM (SELECT * FROM `cloud`.`configuration` WHERE `name`="secstorage.ssl.cert.domain") AS `temptable` WHERE `temptable`.`name`="secstorage.ssl.cert.domain")) WHERE `name`="secstorage.ssl.cert.domain"; was (Author: fifthecho): I have consistently reproduced this as an issue with /usr/share/cloudstack-management/setup/db/schema-421to430.sql on Centos 6 using MariaDB-server-10.0.20-1.el6.x86_64 This is resolved by commenting out: UPDATE `cloud`.`configuration` SET value = CONCAT("*.",(SELECT `temptable`.`value` FROM (SELECT * FROM `cloud`.`configuration` WHERE `name`="consoleproxy.url.domain") AS `temptable` WHERE `temptable`.`name`="consoleproxy.url.domain")) WHERE `name`="consoleproxy.url.domain"; UPDATE `cloud`.`configuration` SET `value` = CONCAT("*.",(SELECT `temptable`.`value` FROM (SELECT * FROM `cloud`.`configuration` WHERE `name`="secstorage.ssl.cert.domain") AS `temptable` WHERE `temptable`.`name`="secstorage.ssl.cert.domain")) WHERE `name`="secstorage.ssl.cert.domain"; > database upgrade failed for fresh install of 4.5.0-SNAPSHOT > ----------------------------------------------------------- > > Key: CLOUDSTACK-8212 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8212 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.5.0 > Environment: RedHat 7, external MariaDB on custom port. > Reporter: Andreas Stenius > Attachments: cloudstack-4.5.0-SNAPSHOT-logs.tar.gz > > > During installation of a new system, when first starting the MS, it logs that > the db needs upgrading from 4.0.0, but fails to do so (see attached logs). > The culprit would seem to be due to these error messages (my guess from > screening the logs...): > ERROR [c.c.u.d.ScriptRunner] (localhost-startStop-1:null) Error executing: > UPDATE `cloud`.`configuration` SET value = CONCAT("*.",(SELECT > `temptable`.`value` FROM (SELECT * FROM `cloud`.`configuration` WHERE > `name`="consoleproxy.url.domain") AS `temptable` WHERE > `temptable`.`name`="consoleproxy.url.domain")) WHERE > `name`="consoleproxy.url.domain" > ERROR [c.c.u.d.ScriptRunner] (localhost-startStop-1:null) > java.sql.SQLException: You can't specify target table 'configuration' for > update in FROM clause > ERROR [c.c.u.DatabaseUpgradeChecker] (localhost-startStop-1:null) Unable to > execute upgrade script: > /usr/share/cloudstack-management/setup/db/schema-421to430.sql -- This message was sent by Atlassian JIRA (v6.3.4#6332)