cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wido den Hollander <w...@widodh.nl>
Subject Re: Cloudstack dev Noob start :-)
Date Thu, 06 Jul 2017 09:22:52 GMT

> Op 6 juli 2017 om 9:02 schreef Olivier Lamy <olamy@apache.org>:
> 
> 
> Hi,
> Long time I didn't participate here.
> I'd like to do some hacking.
> I'm not clear on the process for noob :-)
> I ran sql scripts:
> * create-database.sql
> * create-schema.sql
> 
> Then I start with mvn -pl :cloud-client-ui jetty:run
> But I got the this error (see stacktrace below)
> I use osx, mysql 5.7.18_1 installed with brew
> 
> Thanks a lot for your help
> 
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
> upgrade the database
> 
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:438)
> 
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.check(DatabaseUpgradeChecker.java:509)
> 
> 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:173)
> 
> ... 70 more
> 
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Unable to
> execute upgrade script:
> /Users/olamy/dev/sources/open-sources/cloudstack/cloudstack/client/target/utilities/scripts/db/db/schema-410to420.sql
> 
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:331)
> 
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.upgrade(DatabaseUpgradeChecker.java:425)
> 
> ... 74 more
> 
> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: ALTER
> command denied to user 'cloud'@'localhost' for table 'account'
> 

I see a access denied. Could you check the access credentials of the user in MySQL?

Wido

> at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:185)
> 
> at com.cloud.utils.db.ScriptRunner.runScript(ScriptRunner.java:87)
> 
> at
> com.cloud.upgrade.DatabaseUpgradeChecker.runScript(DatabaseUpgradeChecker.java:322)
> Cheers
> -- 
> Olivier Lamy
> http://twitter.com/olamy | http://linkedin.com/in/olamy

Mime
View raw message