cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raja Pullela (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8918) [Install] Db Error after install - Unknown column 'iso_id1' in 'field list'
Date Fri, 16 Oct 2015 07:22:06 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14960302#comment-14960302
] 

Raja Pullela commented on CLOUDSTACK-8918:
------------------------------------------

Remi, I still see an issue with the latest build - same exact failure.  The setup is Fresh
Install, Basiczone, XenServer setup.  

This is where it is failing - engine/schema/src/com/cloud/upgrade/dao/Upgrade410to420.java
private void migrateDatafromIsoIdInVolumesTable(Connection conn) { 
2376       try(PreparedStatement pstmt = conn.prepareStatement("SELECT iso_id1 From `cloud`.`volumes`");)

2377         { 

However the column gets renames in a schema file - setup/db/db/schema-307to410.sql
1587  ALTER TABLE `cloud`.`volumes` CHANGE COLUMN `iso_id` `iso_id1` bigint(20) unsigned COMMENT
'The id of the iso from which the volume was created';

Talking to Kishan, the schema file will not get run in a fresh install.  As a result, the
column is not getting renamed,  in turn it is failing in the try block.
Here is the table definition - there is no "iso_id1" in the table, there is a "iso_id".  
mysql> desc volumes;
+----------------------------+---------------------+------+-----+---------+----------------+
+----------------------------+---------------------+------+-----+---------+----------------+
+----------------------------+---------------------+------+-----+---------+----------------+
38 rows in set (0.00 sec)


Raja
-----Original Message-----
From: Remi Bergsma (JIRA) [mailto:jira@apache.org] 
Sent: Saturday, October 10, 2015 11:09 PM
To: Raja Pullela <raja.pullela@citrix.com>
Subject: [jira] [Commented] (CLOUDSTACK-8918) [Install] Db Error after install - Unknown column
'iso_id1' in 'field list'


    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14951947#comment-14951947
] 

Remi Bergsma commented on CLOUDSTACK-8918:
------------------------------------------

Can you add some more info about your environment and what you did? I don't see this error.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


> [Install] Db Error after install - Unknown column 'iso_id1' in 'field list'
> ---------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8918
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8918
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Install and Setup
>    Affects Versions: 4.6.0
>            Reporter: Raja Pullela
>            Priority: Critical
>             Fix For: 4.6.0
>
>
> Following error is seen in the MS logs 
> 2015-09-28 07:52:52,756 ERROR [c.c.u.d.Upgrade410to420] (main:null) migrateDatafromIsoIdInVolumesTable:Exception:Unknown
column 'iso_id1' in 'field list'
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'iso_id1' in
'field list'
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
> 	at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 	at com.mysql.jdbc.Util.getInstance(Util.java:386)
> 	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)
> 	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)
> 	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)
> 	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)
> 	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2625)
> 	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2119)
> 	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2283)
> 	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
> 	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
> 	at com.cloud.upgrade.dao.Upgrade410to420.migrateDatafromIsoIdInVolumesTable(Upgrade410to420.java:2378)
> 	at com.cloud.upgrade.dao.Upgrade410to420.performDataMigration(Upgrade410to420.java:110)
> 	at com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:345)
> 	at com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:468)
> 	at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.checkIntegrity(CloudStackExtendedLifeCycle.java:65)
> 	at org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:55)
> 	at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
> 	at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
> 	at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
> 	at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
> 	at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
> 	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:947)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
> 	at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
> 	at org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
> 	at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:70)
> 	at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:57)
> 	at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:61)
> 	at org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:52)
> 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> 	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
> 	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message