cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayashree Ramamoorthy (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CLOUDSTACK-6386) DB Exceptions while starting the Management server first time
Date Thu, 13 Nov 2014 05:49:35 GMT

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

Jayashree Ramamoorthy edited comment on CLOUDSTACK-6386 at 11/13/14 5:49 AM:
-----------------------------------------------------------------------------

I am seeing the following similar exception with the latest build.  Also, please find the
complete management server logs attached

2014-11-13 10:38:44,810 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Done set KVM snapshot
flag.
2014-11-13 10:38:44,810 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Dropping index i_alert__last_sent
if it exists
2014-11-13 10:38:44,835 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop key last_sent on table alert exception: Can't DROP 'last_sent'; check
that column/key exists
2014-11-13 10:38:44,836 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop key i_alert__last_sent on table alert exception: Can't DROP 'i_alert__last_sent';
check that column/key exists
2014-11-13 10:38:44,877 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Added index i_alert__last_sent
for table alert
2014-11-13 10:38:44,899 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_nsp_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:44,931 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_host_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:44,950 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_pod_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:44,968 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_physical_network_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:45,000 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_nsp_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,017 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_host_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,037 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_pod_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,058 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_physical_network_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,079 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_pxe_devices_nsp_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,097 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_pxe_devices_host_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,116 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_pxe_devices_physical_network_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)


was (Author: jayashreer):
I am seeing the following similar exception with the latest build.

2014-11-13 10:38:44,810 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Done set KVM snapshot
flag.
2014-11-13 10:38:44,810 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Dropping index i_alert__last_sent
if it exists
2014-11-13 10:38:44,835 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop key last_sent on table alert exception: Can't DROP 'last_sent'; check
that column/key exists
2014-11-13 10:38:44,836 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop key i_alert__last_sent on table alert exception: Can't DROP 'i_alert__last_sent';
check that column/key exists
2014-11-13 10:38:44,877 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Added index i_alert__last_sent
for table alert
2014-11-13 10:38:44,899 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_nsp_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:44,931 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_host_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:44,950 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_pod_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:44,968 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_physical_network_id on table baremetal_dhcp_devices
exception: Error on rename of './cloud/baremetal_dhcp_devices' to './cloud/#sql2-3aec-15'
(errno: 152)
2014-11-13 10:38:45,000 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_nsp_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,017 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_host_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,037 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_pod_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,058 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_dhcp_devices_physical_network_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,079 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_pxe_devices_nsp_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,097 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_pxe_devices_host_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)
2014-11-13 10:38:45,116 DEBUG [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL Exception
when trying to drop foreign key fk_external_pxe_devices_physical_network_id on table baremetal_pxe_devices
exception: Error on rename of './cloud/baremetal_pxe_devices' to './cloud/#sql2-3aec-15' (errno:
152)

> DB Exceptions while starting the Management server first time 
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6386
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6386
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Install and Setup
>    Affects Versions: 4.4.0
>            Reporter: Sailaja Mada
>            Assignee: Damodar Reddy T
>             Fix For: 4.4.0
>
>         Attachments: management-server.log, management-server.log
>
>
> Steps:
> 1. Using Latest 4.4 and started Management server using cloudstack-setup-management script

> Observation: 
> Notice below DB exceptions.  This is not causing for any failure to start the server.

> 2014-04-11 16:21:24,430 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Verify and set the
KVM snapshot flag if snapshot was used.
> 2014-04-11 16:21:24,431 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Done set KVM snapshot
flag.
> 2014-04-11 16:21:24,431 DEBUG [c.c.u.d.Upgrade410to420] (main:null) Dropping index i_alert__last_sent
if it exists
> 2014-04-11 16:21:24,450 WARN  [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL
Exception when trying to drop key last_sent on table alert
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Can't DROP 'last_sent'; check
that column/key exists
>         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:526)
>         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.executeUpdate(PreparedStatement.java:2415)
>         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2333)
>         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2318)
>         at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
>         at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
>         at com.cloud.upgrade.dao.DatabaseAccessObject.dropKey(DatabaseAccessObject.java:37)
>         at com.cloud.upgrade.dao.DbUpgradeUtils.dropKeysIfExist(DbUpgradeUtils.java:28)
>         at com.cloud.upgrade.dao.Upgrade410to420.addIndexForAlert(Upgrade410to420.java:543)
>         at com.cloud.upgrade.dao.Upgrade410to420.performDataMigration(Upgrade410to420.java:98)
>         at com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:310)
>         at com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:432)
>         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:945)
>         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:606)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> 2014-04-11 16:21:24,456 WARN  [c.c.u.d.DatabaseAccessObject] (main:null) Ignored SQL
Exception when trying to drop key i_alert__last_sent on table alert
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Can't DROP 'i_alert__last_sent';
check that column/key exists
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)



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

Mime
View raw message