Prachi, do you have this working when running the EC2 app with maven ?

mvn -pl :cloud-awsapi jetty:run

-Sebastien

On Nov 26, 2012, at 8:02 PM, Prachi Damle <prachi.da...@citrix.com> wrote:

> Hi Likitha,
> 
> Check if the version set in the registration script matches the WSDL version 
> of the deployment (in ec2-service.properties)
> 
> -Prachi 
> 
> -----Original Message-----
> From: Likitha Shetty [mailto:likitha.she...@citrix.com] 
> Sent: Monday, November 26, 2012 12:18 AM
> To: cloudstack-dev@incubator.apache.org; srivatsav.prasa...@gmail.com
> Subject: RE: awsapi with new maven build
> 
> I got the same 401 error while trying to register a user against AWSAPI. Once 
> I added 'db.awsapi.name=cloudbridge' to utils/conf/db.properties this issue 
> was resolved.
> 
> 
> 
> But now I am facing a new issue. When I try to register a user I get the 
> following error, 'User registration failed with http error code: 531'.
> 
> In 'cloudbridge' DB the table 'usercredentials' contains the right values for 
> 'AccessKey' and 'SecretKey' (user keys are set correctly) but the 
> CertUniqueId value is NULL.
> 
> awapi.log is empty and Jetty logs doesn't show any error either.
> 
> 
> 
> Any suggestions on how to resolve this ?
> 
> 
> 
> Thank you,
> 
> Likitha
> 
> 
> 
> -----Original Message-----
> From: Sebastien Goasguen [mailto:run...@gmail.com]
> Sent: Wednesday, November 14, 2012 9:54 PM
> To: cloudstack-dev@incubator.apache.org; srivatsav.prasa...@gmail.com
> Subject: Re: awsapi with new maven build
> 
> 
> 
> 
> 
> On Nov 14, 2012, at 4:44 PM, Prasanna Santhanam 
> <srivatsav.prasa...@gmail.com<mailto:srivatsav.prasa...@gmail.com>> wrote:
> 
> 
> 
>> Is cloud-management process already running? Try stop that?
> 
>> 
> 
> 
> 
> I am only running:
> 
> mvn -pl :cloud-client-ui jetty:run
> 
> and
> 
> mvn -pl :cloud-awsapi jetty:run
> 
> 
> 
> 
> 
>> 
> 
>> ~P.
> 
>> 
> 
>> -----Original Message-----
> 
>> From: Sebastien Goasguen <run...@gmail.com>
> 
>> Date: Wed, 14 Nov 2012 16:31:36
> 
>> To: <cloudstack-dev@incubator.apache.org>
> 
>> Reply-To: cloudstack-dev@incubator.apache.org
> 
>> Subject: Re: awsapi with new maven build
> 
>> 
> 
>> 
> 
>> On Nov 14, 2012, at 4:09 PM, Charles Moulliard 
>> <ch0...@gmail.com<mailto:ch0...@gmail.com>> wrote:
> 
>> 
> 
>>> Hi Sebastien,
> 
>>> 
> 
>>> You should create a cloud schema + cloud user on your Mac's
> 
>>> MySQLServer
> 
>>> 
> 
>> 
> 
>> I do have that. a cloud mysql user with cloud as password.
> 
>> cloud, cloud_usage, cloudbridge databases have been created.
> 
>> 
> 
>> 
> 
>>> Regards,
> 
>>> 
> 
>>> Charles
> 
>>> 
> 
>>> 
> 
>>> On Wed, Nov 14, 2012 at 4:04 PM, Sebastien Goasguen 
>>> <run...@gmail.com<mailto:run...@gmail.com>>wrote:
> 
>>> 
> 
>>>> Hi,
> 
>>>> 
> 
>>>> I am testing the awsapi with the new maven build.
> 
>>>> Following:
> 
>>>> https://cwiki.apache.org/CLOUDSTACK/cloudstack-devcloud-environment-
> 
>>>> setup.html
> 
>>>> 
> 
>>>> I run:
> 
>>>> mvn -pl :cloud-client-ui jetty:run
> 
>>>> and
> 
>>>> mvn -pl :cloud-awsapi jetty:run
> 
>>>> 
> 
>>>> when I try to register a user it fails with a 401 error, and the
> 
>>>> jetty logs show:
> 
>>>> 
> 
>>>> Caused by:
> 
>>>> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException
> 
>>>> : Could not create connection to database server. Attempted reconnect 3 
>>>> times.
> 
>>>> Giving up.
> 
>>>>      at
> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> 
>>>> Method)
> 
>>>>      at
> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 
>>>>      at
> 
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 
>>>>      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 
>>>>      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:1014)
> 
>>>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
> 
>>>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
> 
>>>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2299)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2220)
> 
>>>>      at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
> 
>>>>      at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
> 
>>>>      at
> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> 
>>>> Method)
> 
>>>>      at
> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 
>>>>      at
> 
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 
>>>>      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 
>>>>      at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
> 
>>>>      at java.sql.DriverManager.getConnection(DriverManager.java:582)
> 
>>>>      at java.sql.DriverManager.getConnection(DriverManager.java:185)
> 
>>>>      at
> 
>>>> org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
> 
>>>>      at
> 
>>>> org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
> 
>>>>      at
> 
>>>> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
> 
>>>>      at
> 
>>>> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
> 
>>>>      at
> 
>>>> com.cloud.utils.db.Transaction.getConnection(Transaction.java:558)
> 
>>>>      at
> 
>>>> com.cloud.utils.db.Transaction.prepareStatement(Transaction.java:453)
> 
>>>>      at
> 
>>>> com.cloud.utils.db.Transaction.prepareAutoCloseStatement(Transaction.java:446)
> 
>>>>      at
> 
>>>> com.cloud.utils.db.GenericDaoBase.searchIncludingRemoved(GenericDaoBase.java:382)
> 
>>>>      ... 56 more
> 
>>>> Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
> 
>>>> Access denied for user 'cloud'@'localhost' to database 'null'
> 
>>>>      at
> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> 
>>>> Method)
> 
>>>>      at
> 
>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 
>>>>      at
> 
>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 
>>>>      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 
>>>>      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:1053)
> 
>>>>      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074)
> 
>>>>      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006)
> 
>>>>      at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1694)
> 
>>>>      at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1244)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2397)
> 
>>>>      at
> 
>>>> com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java
> 
>>>> :2238)
> 
>>>> 
> 
>>>> 
> 
>>>> Database was setup with:
> 
>>>> mvn -P developer -pl developer,tools/devcloud -Ddeploydb
> 
>>>> 
> 
>>>> Don't know if it's a bug or I am doing it wrong. Thoughts ?
> 
>>>> 
> 
>>>> -Sebastien
> 
>>>> 
> 
>>>> 
> 
>>> 
> 
>>> 
> 
>>> --
> 
>>> Charles Moulliard
> 
>>> Apache Committer / Sr. Enterprise Architect (RedHat) Twitter :
> 
>>> @cmoulliard | Blog : http://cmoulliard.blogspot.com
> 
>> 
> 
> 

Reply via email to