What's your python command on the command line? And the json file that
you passed in to run it. Put it up on apaste.info?
--
Prasanna.,
On Thu, Apr 25, 2013 at 06:04:14PM +0530, Dharmesh Kakadia wrote:
> Hi,
>
> I was able to only run management server. Now stuck at step-8. I tried
> running it both way (mvn and python).
>
> Traceback (most recent call last):
> File "../marvin/marvin/deployDataCenter.py", line 469, in <module>
> deploy.deploy()
> File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> self.loadCfg()
> File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> apiKey, securityKey = self.registerApiKey()
> File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
> listuserRes = self.testClient.getApiClient().listUsers(listuser)
> File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 436, in listUsers
> response = self.connection.marvin_request(command,
> response_type=response, method=method)
> File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> line 208, in marvin_request
> response = jsonHelper.getResultObj(response.json(), response_type)
> File "/Library/Python/2.7/site-packages/requests/models.py", line 638, in
> json
> return json.loads(self.text or self.content, **kwargs)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> line 326, in loads
> return _default_decoder.decode(s)
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 360, in decode
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 378, in raw_decode
> raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
>
>
> I am using python2.7 and have version 2.6 installed on system.
>
> Also, I need help in using the management UI with devcloud. I am newbie and
> guessed most of the values, but I am not able to add devcloud host
> (192.168.56.10). Any pointers ?
>
> Thanks,
> Dharmesh
>
>
> On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia <[email protected]>wrote:
>
> > Hi,
> >
> > Thanks. That was exactly what I was missing. Running now !!
> >
> > Thanks,
> > Dharmesh
> >
> >
> > On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam <[email protected]>wrote:
> >
> >> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
> >> > Hi,
> >> >
> >> > I am setting up dev environment following :
> >> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
> >>
> >> Dev environment specifics are here:
> >>
> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
> >>
> >> If you are using master branch for building:
> >>
> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
> >>
> >> You might want to give more memory as shown in the wiki:
> >> export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
> >> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
> >>
> >> The supported tomcat version is 6.0.33. So you might want to downgrade
> >> and setup your CATALINA_HOME to point to the correct tomcat install.
> >>
> >> --
> >> Prasanna.,
> >>
> >> >
> >> > I am stuck on step 7.3 while starting the management server.
> >> >
> >> > the output of
> >> >
> >> > mvn -pl :cloud-client-ui jetty:run
> >> >
> >> > gets stuck after
> >> >
> >> > INFO [utils.component.ComponentContext] (main:) Setup Spring
> >> Application
> >> > context
> >> >
> >> > I tried starting client-ui manually by copying the cloud-client-ui war
> >> file
> >> > into tomcat.
> >> >
> >> > Interestingly the log says
> >> >
> >> > SEVERE: Error listenerStart
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
> >> > SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
> >> > previous errors
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> >> > clearReferencesThreads
> >> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> >> > have started a thread named [Timer-0] but has failed to stop it. This is
> >> > very likely to create a memory leak.
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> >> > clearReferencesThreads
> >> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> >> > have started a thread named [ClusteredAgentManager Timer] but has
> >> failed to
> >> > stop it. This is very likely to create a memory leak.
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> >> > checkThreadLocalMapForLeaks
> >> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
> >> > ThreadLocal with key of type [java.lang.ThreadLocal] (value
> >> > [java.lang.ThreadLocal@3a7d1a7a]) and a value of type
> >> > [com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove it
> >> when
> >> > the web application was stopped. This is very likely to create a memory
> >> > leak.
> >> >
> >> > I am running this on Mac OS with tomcat apache-tomcat-6.0.36 and java
> >> > 1.6.0_45 and maven 3.0.3.
> >> >
> >> > Any help ?
> >> >
> >> > Thanks,
> >> > Dharmesh
> >>
> >>
> >> ------------------------
> >> Powered by BigRock.com
> >>
> >>
> >