You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Chamila De Alwis <ch...@wso2.com> on 2014/09/01 15:45:31 UTC

Cartridge subscription not completed

Hi,

I installed stratos and deployed the necessary policies[1]. I've also
created a cartridge configuration for PHP.

When I subscribed to the defined cartridge I'm directed to "My Cartridge"
page but it shows that I'm not subscribed to any cartridges.

wso2carbon.log output consists of the following, but no particular errors.

TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
{org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
-  Validating partitions of policy via cloud controller: [id]
economyDeploymentPolicy
{org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
All partitions [p1] were validated successfully, against the Cartridge: php
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
{org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
External REPO URL is provided as [
https://github.com/drnic/php-helloworld.git]
{org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}


No new instance is spawned and no output is shown in the log after the
above. I also tried waiting for sometime for the IaaS to pick up the
requests, as the IaaS I’m using is a bit restricted on the resources, but
it doesn't show anything even after a while.

[1] - https://github.com/chamilad/stratos-policies

Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com

Re: Cartridge subscription not completed

Posted by Udara Liyanage <ud...@wso2.com>.
Could you please enable debug logs for manager and rest.api and attach the
logs



Touched, not typed. Erroneous words are a feature, not a typo.

Re: Cartridge subscription not completed

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Isuru,

I disabled the error handlers and repeated the scenario. And this is the
output from wso2carbon.log.

TID: [0] [STRATOS] [2014-09-02 03:55:38,043]  INFO
{org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
-  Validating partitions of policy via cloud controller: [id]
economyDeploymentPolicy
{org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
TID: [0] [STRATOS] [2014-09-02 03:55:38,203]  INFO
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
All partitions [p1] were validated successfully, against the Cartridge: php
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
TID: [0] [STRATOS] [2014-09-02 03:55:38,604]  INFO
{org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
-  Validating partitions of policy via cloud controller: [id]
economyDeploymentPolicy
{org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
TID: [0] [STRATOS] [2014-09-02 03:55:38,688]  INFO
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
All partitions [p1] were validated successfully, against the Cartridge: php
{org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
TID: [0] [STRATOS] [2014-09-02 03:56:45,019]  WARN
{org.apache.cxf.jaxrs.provider.AbstractJAXBProvider} -
javax.xml.bind.UnmarshalException
 - with linked exception:
[com.sun.istack.SAXParseException2; columnNumber: 0; unexpected element
(uri:"", local:"alias"). Expected elements are
<{}cartridgeInfoBean>,<{}persistenceBean>,<{}property>,<{}volumeBean>]
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:425)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:332)
    at
org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:234)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1288)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1239)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:790)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:749)
    at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:236)
    at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
    at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
    at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
    at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
    at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
    at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
    at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
    at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
    at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
    at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
    at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.istack.SAXParseException2; columnNumber: 0; unexpected
element (uri:"", local:"alias"). Expected elements are
<{}cartridgeInfoBean>,<{}persistenceBean>,<{}property>,<{}volumeBean>
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1049)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:242)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:176)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
    ... 42 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"alias"). Expected elements are
<{}cartridgeInfoBean>,<{}persistenceBean>,<{}property>,<{}volumeBean>
    ... 53 more
 {org.apache.cxf.jaxrs.provider.AbstractJAXBProvider}
TID: [0] [STRATOS] [2014-09-02 03:56:45,021]  WARN
{org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper} -
javax.ws.rs.BadRequestException: com.sun.istack.SAXParseException2;
columnNumber: 0; unexpected element (uri:"", local:"alias"). Expected
elements are
<{}cartridgeInfoBean>,<{}persistenceBean>,<{}property>,<{}volumeBean>
    at
org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.handleExceptionEnd(AbstractJAXBProvider.java:681)
    at
org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.handleJAXBException(AbstractJAXBProvider.java:693)
    at
org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:248)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBodyReader(JAXRSUtils.java:1288)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.readFromMessageBody(JAXRSUtils.java:1239)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameter(JAXRSUtils.java:790)
    at
org.apache.cxf.jaxrs.utils.JAXRSUtils.processParameters(JAXRSUtils.java:749)
    at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:236)
    at
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:101)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
    at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
    at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)
    at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
    at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203)
    at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)
    at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159)
    at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
    at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
    at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
    at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
    at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
    at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.sun.istack.SAXParseException2; columnNumber: 0; unexpected
element (uri:"", local:"alias"). Expected elements are
<{}cartridgeInfoBean>,<{}persistenceBean>,<{}property>,<{}volumeBean>
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1049)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:242)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:176)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
    at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:332)
    at
org.apache.cxf.jaxrs.provider.json.JSONProvider.readFrom(JSONProvider.java:234)
    ... 40 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"",
local:"alias"). Expected elements are
<{}cartridgeInfoBean>,<{}persistenceBean>,<{}property>,<{}volumeBean>
    ... 53 more
 {org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper}
TID: [0] [STRATOS] [2014-09-02 03:56:45,024] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: J
(/console/util/utility.jag#326) (/console/controllers/router.jag#119)
{org.jaggeryjs.jaggery.core.manager.WebAppManager}
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: J
(/console/util/utility.jag#326) (/console/controllers/router.jag#119)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
    at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447)
    at
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
    at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
    at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
    at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
    at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
    at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
    at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
    at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: J
(/console/util/utility.jag#326) (/console/controllers/router.jag#119)
    at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
    at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
    at
org.jaggeryjs.rhino.console.controllers.c1._c_anonymous_1(/console/controllers/router.jag:119)
    at
org.jaggeryjs.rhino.console.controllers.c1.call(/console/controllers/router.jag)
    at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
    at
org.jaggeryjs.rhino.console.controllers.c1._c_script_0(/console/controllers/router.jag:23)
    at
org.jaggeryjs.rhino.console.controllers.c1.call(/console/controllers/router.jag)
    at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    at
org.jaggeryjs.rhino.console.controllers.c1.call(/console/controllers/router.jag)
    at
org.jaggeryjs.rhino.console.controllers.c1.exec(/console/controllers/router.jag)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
    ... 35 more
Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token: J
(/console/util/utility.jag#326)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
    at
org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:273)
    at
org.jaggeryjs.jaggery.core.manager.WebAppManager.include(WebAppManager.java:127)
    at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
    ... 47 more
Caused by: org.mozilla.javascript.EcmaError: SyntaxError: Unexpected token:
J (/console/util/utility.jag#326)
    at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
    at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
    at org.mozilla.javascript.NativeJSON.parse(NativeJSON.java:112)
    at org.mozilla.javascript.NativeJSON.parse(NativeJSON.java:119)
    at
org.jaggeryjs.scriptengine.util.HostObjectUtil.parseJSON(HostObjectUtil.java:70)
    at
org.jaggeryjs.scriptengine.engine.RhinoTopLevel.parse(RhinoTopLevel.java:51)
    at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
    at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
    at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
    at
org.jaggeryjs.rhino.console.util.c1._c_anonymous_45(/console/util/utility.jag:326)
    at org.jaggeryjs.rhino.console.util.c1.call(/console/util/utility.jag)
    at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
    at
org.jaggeryjs.rhino.console.util.c1._c_anonymous_21(/console/util/utility.jag:162)
    at org.jaggeryjs.rhino.console.util.c1.call(/console/util/utility.jag)
    at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
    at
org.jaggeryjs.rhino.console.controllers.c4._c_anonymous_1(/console/controllers/cartridgeSubscribeSubmit.jag:131)
    at
org.jaggeryjs.rhino.console.controllers.c4.call(/console/controllers/cartridgeSubscribeSubmit.jag)
    at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)
    at
org.jaggeryjs.rhino.console.controllers.c4._c_script_0(/console/controllers/cartridgeSubscribeSubmit.jag:23)
    at
org.jaggeryjs.rhino.console.controllers.c4.call(/console/controllers/cartridgeSubscribeSubmit.jag)
    at
org.jaggeryjs.rhino.console.controllers.c4.exec(/console/controllers/cartridgeSubscribeSubmit.jag)
    at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)
    ... 54 more


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com




On Mon, Sep 1, 2014 at 9:51 PM, Isuru Haththotuwa <is...@apache.org> wrote:

> Hi,
>
> Would you be able to try out with the following modification and see if
> you can see an error in the log file:
>
> 1. Locate the
> org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
> file
> 2. Under the jaxrs:providers tag, there will be several exception handlers
> [1]. Comment them out and build the webapp again
> 3. Re-deploy this webapp in Stratos Manager (Delete the stratos.war and
> stratos directory in the repository/deployment/server/webapps directory
> 4. Re-try your scenario
>
> [1].  <ref bean="throwableExceptionHandler"/>
>        <ref bean="genericExceptionHandler"/>
>        <ref bean="badRequestExceptionHandler"/>
>        <ref bean="exceptionHandler"/>
>
>
>
>
> On Mon, Sep 1, 2014 at 9:37 PM, Chamila De Alwis <ch...@wso2.com>
> wrote:
>
>> Hi Nirmal,
>>
>> I've attached the complete wso2carbon.log. Policies were deployed
>> successfully at line 716.
>>
>> Akila,
>> Those two properties are added by Stratos itself. The one's I've attached
>> were copied from the web console. I will update the link with the actual
>> json I deployed.
>>
>> Raj,
>>
>> Yes, I'm using the master branch with some modifications to the code
>> base. The change is at BasicPayloadData.java[1]. I added three additional
>> fields to the payload string. A flag to chose if puppet or chef is used,
>> and chef server ip and hostname. This shouldn't be a problem as far as I
>> know.
>>
>> [1] -  https://github.com/chamilad/stratos/compare/apache:master...master
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>>
>> On Mon, Sep 1, 2014 at 9:26 PM, Rajkumar Rajaratnam <ra...@wso2.com>
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> Are you using master branch?
>>>
>>>
>>>
>>> On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <ni...@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <
>>>> ravihansa@wso2.com> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> Why is that partition min count is 0 in your partition definition at
>>>>> [1] ?
>>>>>
>>>>
>>>> That shouldn't be a problem since the real min-max reside in the
>>>> deployment policy. In fact, you can get rid of those min, max properties
>>>> from partition definition.
>>>>
>>>>>
>>>>> I recall this behavior earlier because of some validation issue. As
>>>>> others suggested, your complete debug logs will help us identify the
>>>>> problem.
>>>>>
>>>>> [1]
>>>>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>>>>
>>>>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <
>>>>> nirmal070125@gmail.com> wrote:
>>>>> > Hi Chamila,
>>>>> >
>>>>> > Could you please attach the complete wso2carbon.log file?
>>>>> >
>>>>> >
>>>>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
>>>>> wrote:
>>>>> >>
>>>>> >> Hi,
>>>>> >>
>>>>> >> I installed stratos and deployed the necessary policies[1]. I've
>>>>> also
>>>>> >> created a cartridge configuration for PHP.
>>>>> >>
>>>>> >> When I subscribed to the defined cartridge I'm directed to "My
>>>>> Cartridge"
>>>>> >> page but it shows that I'm not subscribed to any cartridges.
>>>>> >>
>>>>> >> wso2carbon.log output consists of the following, but no particular
>>>>> errors.
>>>>> >>
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>>>>> >>
>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>> >> -  Validating partitions of policy via cloud controller: [id]
>>>>> >> economyDeploymentPolicy
>>>>> >>
>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>>>>> >>
>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -  All
>>>>> >> partitions [p1] were validated successfully, against the Cartridge:
>>>>> php
>>>>> >>
>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>>>>> >>
>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>>>>> >> External REPO URL is provided as
>>>>> >> [https://github.com/drnic/php-helloworld.git]
>>>>> >>
>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>>>> >>
>>>>> >>
>>>>> >> No new instance is spawned and no output is shown in the log after
>>>>> the
>>>>> >> above. I also tried waiting for sometime for the IaaS to pick up the
>>>>> >> requests, as the IaaS I’m using is a bit restricted on the
>>>>> resources, but it
>>>>> >> doesn't show anything even after a while.
>>>>> >>
>>>>> >> [1] - https://github.com/chamilad/stratos-policies
>>>>> >>
>>>>> >> Regards,
>>>>> >> Chamila de Alwis
>>>>> >> Software Engineer | WSO2 | +94772207163
>>>>> >> Blog: code.chamiladealwis.com
>>>>> >>
>>>>> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Best Regards,
>>>>> > Nirmal
>>>>> >
>>>>> > Nirmal Fernando.
>>>>> > PPMC Member & Committer of Apache Stratos,
>>>>> > Senior Software Engineer, WSO2 Inc.
>>>>> >
>>>>> > Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Akila Ravihansa Perera
>>>>> Software Engineer, WSO2
>>>>> Committer & PMC Member, Apache Stratos
>>>>>
>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Nirmal
>>>>
>>>> Nirmal Fernando.
>>>> PPMC Member & Committer of Apache Stratos,
>>>> Senior Software Engineer, WSO2 Inc.
>>>>
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Software Engineer | WSO2, Inc.
>>>  Mobile +94777568639 | +94783498120
>>>
>>> --
>>> <%2B94783498120>
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> <%2B94783498120>
>>> +94 716 358 048 <%2B94783498120>* <http://wso2.com/>*
>>>
>>>
>>> * <http://wso2.com/>*
>>>
>>>
>>>

Re: Cartridge subscription not completed

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Raj,

I'm in the process of installing stratos from the upstream. However I
seriously doubt that the changes I've made could break this functionality.
I will however post the results.


Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com




On Mon, Sep 1, 2014 at 10:27 PM, Rajkumar Rajaratnam <ra...@wso2.com>
wrote:

> Chamila,
>
> Could you please verify whether stratos master branch is working fine
> (without your modification)? It is working fine for me.
>
> Thanks.
>
>
> On Mon, Sep 1, 2014 at 9:51 PM, Isuru Haththotuwa <is...@apache.org>
> wrote:
>
>> Hi,
>>
>> Would you be able to try out with the following modification and see if
>> you can see an error in the log file:
>>
>> 1. Locate the
>> org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
>> file
>> 2. Under the jaxrs:providers tag, there will be several exception
>> handlers [1]. Comment them out and build the webapp again
>> 3. Re-deploy this webapp in Stratos Manager (Delete the stratos.war and
>> stratos directory in the repository/deployment/server/webapps directory
>> 4. Re-try your scenario
>>
>> [1].  <ref bean="throwableExceptionHandler"/>
>>        <ref bean="genericExceptionHandler"/>
>>        <ref bean="badRequestExceptionHandler"/>
>>        <ref bean="exceptionHandler"/>
>>
>>
>>
>>
>> On Mon, Sep 1, 2014 at 9:37 PM, Chamila De Alwis <ch...@wso2.com>
>> wrote:
>>
>>> Hi Nirmal,
>>>
>>> I've attached the complete wso2carbon.log. Policies were deployed
>>> successfully at line 716.
>>>
>>> Akila,
>>> Those two properties are added by Stratos itself. The one's I've
>>> attached were copied from the web console. I will update the link with the
>>> actual json I deployed.
>>>
>>> Raj,
>>>
>>> Yes, I'm using the master branch with some modifications to the code
>>> base. The change is at BasicPayloadData.java[1]. I added three additional
>>> fields to the payload string. A flag to chose if puppet or chef is used,
>>> and chef server ip and hostname. This shouldn't be a problem as far as I
>>> know.
>>>
>>> [1] -
>>> https://github.com/chamilad/stratos/compare/apache:master...master
>>>
>>>
>>>
>>> Regards,
>>> Chamila de Alwis
>>> Software Engineer | WSO2 | +94772207163
>>> Blog: code.chamiladealwis.com
>>>
>>>
>>>
>>>
>>> On Mon, Sep 1, 2014 at 9:26 PM, Rajkumar Rajaratnam <ra...@wso2.com>
>>> wrote:
>>>
>>>> Hi Chamila,
>>>>
>>>> Are you using master branch?
>>>>
>>>>
>>>>
>>>> On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <nirmal070125@gmail.com
>>>> > wrote:
>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <
>>>>> ravihansa@wso2.com> wrote:
>>>>>
>>>>>> Hi Chamila,
>>>>>>
>>>>>> Why is that partition min count is 0 in your partition definition at
>>>>>> [1] ?
>>>>>>
>>>>>
>>>>> That shouldn't be a problem since the real min-max reside in the
>>>>> deployment policy. In fact, you can get rid of those min, max properties
>>>>> from partition definition.
>>>>>
>>>>>>
>>>>>> I recall this behavior earlier because of some validation issue. As
>>>>>> others suggested, your complete debug logs will help us identify the
>>>>>> problem.
>>>>>>
>>>>>> [1]
>>>>>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>>>>>
>>>>>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <
>>>>>> nirmal070125@gmail.com> wrote:
>>>>>> > Hi Chamila,
>>>>>> >
>>>>>> > Could you please attach the complete wso2carbon.log file?
>>>>>> >
>>>>>> >
>>>>>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
>>>>>> wrote:
>>>>>> >>
>>>>>> >> Hi,
>>>>>> >>
>>>>>> >> I installed stratos and deployed the necessary policies[1]. I've
>>>>>> also
>>>>>> >> created a cartridge configuration for PHP.
>>>>>> >>
>>>>>> >> When I subscribed to the defined cartridge I'm directed to "My
>>>>>> Cartridge"
>>>>>> >> page but it shows that I'm not subscribed to any cartridges.
>>>>>> >>
>>>>>> >> wso2carbon.log output consists of the following, but no particular
>>>>>> errors.
>>>>>> >>
>>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>>>>>> >>
>>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>>> >> -  Validating partitions of policy via cloud controller: [id]
>>>>>> >> economyDeploymentPolicy
>>>>>> >>
>>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>>>>>> >>
>>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -  All
>>>>>> >> partitions [p1] were validated successfully, against the
>>>>>> Cartridge: php
>>>>>> >>
>>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>>>>>> >>
>>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>>>>>> >> External REPO URL is provided as
>>>>>> >> [https://github.com/drnic/php-helloworld.git]
>>>>>> >>
>>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>>>>> >>
>>>>>> >>
>>>>>> >> No new instance is spawned and no output is shown in the log after
>>>>>> the
>>>>>> >> above. I also tried waiting for sometime for the IaaS to pick up
>>>>>> the
>>>>>> >> requests, as the IaaS I’m using is a bit restricted on the
>>>>>> resources, but it
>>>>>> >> doesn't show anything even after a while.
>>>>>> >>
>>>>>> >> [1] - https://github.com/chamilad/stratos-policies
>>>>>> >>
>>>>>> >> Regards,
>>>>>> >> Chamila de Alwis
>>>>>> >> Software Engineer | WSO2 | +94772207163
>>>>>> >> Blog: code.chamiladealwis.com
>>>>>> >>
>>>>>> >>
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> > Best Regards,
>>>>>> > Nirmal
>>>>>> >
>>>>>> > Nirmal Fernando.
>>>>>> > PPMC Member & Committer of Apache Stratos,
>>>>>> > Senior Software Engineer, WSO2 Inc.
>>>>>> >
>>>>>> > Blog: http://nirmalfdo.blogspot.com/
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Akila Ravihansa Perera
>>>>>> Software Engineer, WSO2
>>>>>> Committer & PMC Member, Apache Stratos
>>>>>>
>>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>> Nirmal
>>>>>
>>>>> Nirmal Fernando.
>>>>> PPMC Member & Committer of Apache Stratos,
>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Rajkumar Rajaratnam
>>>> Software Engineer | WSO2, Inc.
>>>>  Mobile +94777568639 | +94783498120
>>>>
>>>> --
>>>> <%2B94783498120>
>>>> Thanks and Regards,
>>>>
>>>> Isuru H.
>>>> <%2B94783498120>
>>>> +94 716 358 048 <%2B94783498120>* <http://wso2.com/>*
>>>>
>>>>
>>>> * <http://wso2.com/>*
>>>>
>>>>
>>>>
>
>
> --
> Rajkumar Rajaratnam
> Software Engineer | WSO2, Inc.
>  Mobile +94777568639 | +94783498120
>

Re: Cartridge subscription not completed

Posted by Rajkumar Rajaratnam <ra...@wso2.com>.
Chamila,

Could you please verify whether stratos master branch is working fine
(without your modification)? It is working fine for me.

Thanks.


On Mon, Sep 1, 2014 at 9:51 PM, Isuru Haththotuwa <is...@apache.org> wrote:

> Hi,
>
> Would you be able to try out with the following modification and see if
> you can see an error in the log file:
>
> 1. Locate the
> org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
> file
> 2. Under the jaxrs:providers tag, there will be several exception handlers
> [1]. Comment them out and build the webapp again
> 3. Re-deploy this webapp in Stratos Manager (Delete the stratos.war and
> stratos directory in the repository/deployment/server/webapps directory
> 4. Re-try your scenario
>
> [1].  <ref bean="throwableExceptionHandler"/>
>        <ref bean="genericExceptionHandler"/>
>        <ref bean="badRequestExceptionHandler"/>
>        <ref bean="exceptionHandler"/>
>
>
>
>
> On Mon, Sep 1, 2014 at 9:37 PM, Chamila De Alwis <ch...@wso2.com>
> wrote:
>
>> Hi Nirmal,
>>
>> I've attached the complete wso2carbon.log. Policies were deployed
>> successfully at line 716.
>>
>> Akila,
>> Those two properties are added by Stratos itself. The one's I've attached
>> were copied from the web console. I will update the link with the actual
>> json I deployed.
>>
>> Raj,
>>
>> Yes, I'm using the master branch with some modifications to the code
>> base. The change is at BasicPayloadData.java[1]. I added three additional
>> fields to the payload string. A flag to chose if puppet or chef is used,
>> and chef server ip and hostname. This shouldn't be a problem as far as I
>> know.
>>
>> [1] -  https://github.com/chamilad/stratos/compare/apache:master...master
>>
>>
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>>
>>
>> On Mon, Sep 1, 2014 at 9:26 PM, Rajkumar Rajaratnam <ra...@wso2.com>
>> wrote:
>>
>>> Hi Chamila,
>>>
>>> Are you using master branch?
>>>
>>>
>>>
>>> On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <ni...@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <
>>>> ravihansa@wso2.com> wrote:
>>>>
>>>>> Hi Chamila,
>>>>>
>>>>> Why is that partition min count is 0 in your partition definition at
>>>>> [1] ?
>>>>>
>>>>
>>>> That shouldn't be a problem since the real min-max reside in the
>>>> deployment policy. In fact, you can get rid of those min, max properties
>>>> from partition definition.
>>>>
>>>>>
>>>>> I recall this behavior earlier because of some validation issue. As
>>>>> others suggested, your complete debug logs will help us identify the
>>>>> problem.
>>>>>
>>>>> [1]
>>>>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>>>>
>>>>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <
>>>>> nirmal070125@gmail.com> wrote:
>>>>> > Hi Chamila,
>>>>> >
>>>>> > Could you please attach the complete wso2carbon.log file?
>>>>> >
>>>>> >
>>>>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
>>>>> wrote:
>>>>> >>
>>>>> >> Hi,
>>>>> >>
>>>>> >> I installed stratos and deployed the necessary policies[1]. I've
>>>>> also
>>>>> >> created a cartridge configuration for PHP.
>>>>> >>
>>>>> >> When I subscribed to the defined cartridge I'm directed to "My
>>>>> Cartridge"
>>>>> >> page but it shows that I'm not subscribed to any cartridges.
>>>>> >>
>>>>> >> wso2carbon.log output consists of the following, but no particular
>>>>> errors.
>>>>> >>
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>>>>> >>
>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>> >> -  Validating partitions of policy via cloud controller: [id]
>>>>> >> economyDeploymentPolicy
>>>>> >>
>>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>>>>> >>
>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -  All
>>>>> >> partitions [p1] were validated successfully, against the Cartridge:
>>>>> php
>>>>> >>
>>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>>>>> >>
>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>>>>> >> External REPO URL is provided as
>>>>> >> [https://github.com/drnic/php-helloworld.git]
>>>>> >>
>>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>>>> >>
>>>>> >>
>>>>> >> No new instance is spawned and no output is shown in the log after
>>>>> the
>>>>> >> above. I also tried waiting for sometime for the IaaS to pick up the
>>>>> >> requests, as the IaaS I’m using is a bit restricted on the
>>>>> resources, but it
>>>>> >> doesn't show anything even after a while.
>>>>> >>
>>>>> >> [1] - https://github.com/chamilad/stratos-policies
>>>>> >>
>>>>> >> Regards,
>>>>> >> Chamila de Alwis
>>>>> >> Software Engineer | WSO2 | +94772207163
>>>>> >> Blog: code.chamiladealwis.com
>>>>> >>
>>>>> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Best Regards,
>>>>> > Nirmal
>>>>> >
>>>>> > Nirmal Fernando.
>>>>> > PPMC Member & Committer of Apache Stratos,
>>>>> > Senior Software Engineer, WSO2 Inc.
>>>>> >
>>>>> > Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Akila Ravihansa Perera
>>>>> Software Engineer, WSO2
>>>>> Committer & PMC Member, Apache Stratos
>>>>>
>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Nirmal
>>>>
>>>> Nirmal Fernando.
>>>> PPMC Member & Committer of Apache Stratos,
>>>> Senior Software Engineer, WSO2 Inc.
>>>>
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Software Engineer | WSO2, Inc.
>>>  Mobile +94777568639 | +94783498120
>>>
>>> --
>>> <%2B94783498120>
>>> Thanks and Regards,
>>>
>>> Isuru H.
>>> <%2B94783498120>
>>> +94 716 358 048 <%2B94783498120>* <http://wso2.com/>*
>>>
>>>
>>> * <http://wso2.com/>*
>>>
>>>
>>>


-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120

Re: Cartridge subscription not completed

Posted by Isuru Haththotuwa <is...@apache.org>.
Hi,

Would you be able to try out with the following modification and see if you
can see an error in the log file:

1. Locate the
org.apache.stratos.rest.endpoint/src/main/webapp/stratos/WEB-INF/cxf-servlet.xml
file
2. Under the jaxrs:providers tag, there will be several exception handlers
[1]. Comment them out and build the webapp again
3. Re-deploy this webapp in Stratos Manager (Delete the stratos.war and
stratos directory in the repository/deployment/server/webapps directory
4. Re-try your scenario

[1].  <ref bean="throwableExceptionHandler"/>
       <ref bean="genericExceptionHandler"/>
       <ref bean="badRequestExceptionHandler"/>
       <ref bean="exceptionHandler"/>




On Mon, Sep 1, 2014 at 9:37 PM, Chamila De Alwis <ch...@wso2.com> wrote:

> Hi Nirmal,
>
> I've attached the complete wso2carbon.log. Policies were deployed
> successfully at line 716.
>
> Akila,
> Those two properties are added by Stratos itself. The one's I've attached
> were copied from the web console. I will update the link with the actual
> json I deployed.
>
> Raj,
>
> Yes, I'm using the master branch with some modifications to the code base.
> The change is at BasicPayloadData.java[1]. I added three additional fields
> to the payload string. A flag to chose if puppet or chef is used, and chef
> server ip and hostname. This shouldn't be a problem as far as I know.
>
> [1] -  https://github.com/chamilad/stratos/compare/apache:master...master
>
>
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
>
> On Mon, Sep 1, 2014 at 9:26 PM, Rajkumar Rajaratnam <ra...@wso2.com>
> wrote:
>
>> Hi Chamila,
>>
>> Are you using master branch?
>>
>>
>>
>> On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <ni...@gmail.com>
>> wrote:
>>
>>>
>>>
>>>
>>> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <
>>> ravihansa@wso2.com> wrote:
>>>
>>>> Hi Chamila,
>>>>
>>>> Why is that partition min count is 0 in your partition definition at
>>>> [1] ?
>>>>
>>>
>>> That shouldn't be a problem since the real min-max reside in the
>>> deployment policy. In fact, you can get rid of those min, max properties
>>> from partition definition.
>>>
>>>>
>>>> I recall this behavior earlier because of some validation issue. As
>>>> others suggested, your complete debug logs will help us identify the
>>>> problem.
>>>>
>>>> [1]
>>>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>>>
>>>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <ni...@gmail.com>
>>>> wrote:
>>>> > Hi Chamila,
>>>> >
>>>> > Could you please attach the complete wso2carbon.log file?
>>>> >
>>>> >
>>>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
>>>> wrote:
>>>> >>
>>>> >> Hi,
>>>> >>
>>>> >> I installed stratos and deployed the necessary policies[1]. I've also
>>>> >> created a cartridge configuration for PHP.
>>>> >>
>>>> >> When I subscribed to the defined cartridge I'm directed to "My
>>>> Cartridge"
>>>> >> page but it shows that I'm not subscribed to any cartridges.
>>>> >>
>>>> >> wso2carbon.log output consists of the following, but no particular
>>>> errors.
>>>> >>
>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>>>> >>
>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>> >> -  Validating partitions of policy via cloud controller: [id]
>>>> >> economyDeploymentPolicy
>>>> >>
>>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>>>> >>
>>>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -  All
>>>> >> partitions [p1] were validated successfully, against the Cartridge:
>>>> php
>>>> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>>>> >>
>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>>>> >> External REPO URL is provided as
>>>> >> [https://github.com/drnic/php-helloworld.git]
>>>> >>
>>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>>> >>
>>>> >>
>>>> >> No new instance is spawned and no output is shown in the log after
>>>> the
>>>> >> above. I also tried waiting for sometime for the IaaS to pick up the
>>>> >> requests, as the IaaS I’m using is a bit restricted on the
>>>> resources, but it
>>>> >> doesn't show anything even after a while.
>>>> >>
>>>> >> [1] - https://github.com/chamilad/stratos-policies
>>>> >>
>>>> >> Regards,
>>>> >> Chamila de Alwis
>>>> >> Software Engineer | WSO2 | +94772207163
>>>> >> Blog: code.chamiladealwis.com
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Best Regards,
>>>> > Nirmal
>>>> >
>>>> > Nirmal Fernando.
>>>> > PPMC Member & Committer of Apache Stratos,
>>>> > Senior Software Engineer, WSO2 Inc.
>>>> >
>>>> > Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>>
>>>>
>>>> --
>>>> Akila Ravihansa Perera
>>>> Software Engineer, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>> Blog: http://ravihansa3000.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Software Engineer | WSO2, Inc.
>>  Mobile +94777568639 | +94783498120
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* <http://wso2.com/>*
>>
>>
>> * <http://wso2.com/>*
>>
>>
>>

Re: Cartridge subscription not completed

Posted by Chamila De Alwis <ch...@wso2.com>.
Hi Nirmal,

I've attached the complete wso2carbon.log. Policies were deployed
successfully at line 716.

Akila,
Those two properties are added by Stratos itself. The one's I've attached
were copied from the web console. I will update the link with the actual
json I deployed.

Raj,

Yes, I'm using the master branch with some modifications to the code base.
The change is at BasicPayloadData.java[1]. I added three additional fields
to the payload string. A flag to chose if puppet or chef is used, and chef
server ip and hostname. This shouldn't be a problem as far as I know.

[1] -  https://github.com/chamilad/stratos/compare/apache:master...master



Regards,
Chamila de Alwis
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com




On Mon, Sep 1, 2014 at 9:26 PM, Rajkumar Rajaratnam <ra...@wso2.com>
wrote:

> Hi Chamila,
>
> Are you using master branch?
>
>
>
> On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <ni...@gmail.com>
> wrote:
>
>>
>>
>>
>> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <
>> ravihansa@wso2.com> wrote:
>>
>>> Hi Chamila,
>>>
>>> Why is that partition min count is 0 in your partition definition at [1]
>>> ?
>>>
>>
>> That shouldn't be a problem since the real min-max reside in the
>> deployment policy. In fact, you can get rid of those min, max properties
>> from partition definition.
>>
>>>
>>> I recall this behavior earlier because of some validation issue. As
>>> others suggested, your complete debug logs will help us identify the
>>> problem.
>>>
>>> [1]
>>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>>
>>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <ni...@gmail.com>
>>> wrote:
>>> > Hi Chamila,
>>> >
>>> > Could you please attach the complete wso2carbon.log file?
>>> >
>>> >
>>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
>>> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> I installed stratos and deployed the necessary policies[1]. I've also
>>> >> created a cartridge configuration for PHP.
>>> >>
>>> >> When I subscribed to the defined cartridge I'm directed to "My
>>> Cartridge"
>>> >> page but it shows that I'm not subscribed to any cartridges.
>>> >>
>>> >> wso2carbon.log output consists of the following, but no particular
>>> errors.
>>> >>
>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>>> >>
>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>> >> -  Validating partitions of policy via cloud controller: [id]
>>> >> economyDeploymentPolicy
>>> >>
>>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>>> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>> -  All
>>> >> partitions [p1] were validated successfully, against the Cartridge:
>>> php
>>> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>>> >>
>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>>> >> External REPO URL is provided as
>>> >> [https://github.com/drnic/php-helloworld.git]
>>> >>
>>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>> >>
>>> >>
>>> >> No new instance is spawned and no output is shown in the log after the
>>> >> above. I also tried waiting for sometime for the IaaS to pick up the
>>> >> requests, as the IaaS I’m using is a bit restricted on the resources,
>>> but it
>>> >> doesn't show anything even after a while.
>>> >>
>>> >> [1] - https://github.com/chamilad/stratos-policies
>>> >>
>>> >> Regards,
>>> >> Chamila de Alwis
>>> >> Software Engineer | WSO2 | +94772207163
>>> >> Blog: code.chamiladealwis.com
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Best Regards,
>>> > Nirmal
>>> >
>>> > Nirmal Fernando.
>>> > PPMC Member & Committer of Apache Stratos,
>>> > Senior Software Engineer, WSO2 Inc.
>>> >
>>> > Blog: http://nirmalfdo.blogspot.com/
>>>
>>>
>>>
>>> --
>>> Akila Ravihansa Perera
>>> Software Engineer, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> Rajkumar Rajaratnam
> Software Engineer | WSO2, Inc.
>  Mobile +94777568639 | +94783498120
>

Re: Cartridge subscription not completed

Posted by Rajkumar Rajaratnam <ra...@wso2.com>.
Hi Chamila,

Are you using master branch?



On Mon, Sep 1, 2014 at 8:30 PM, Nirmal Fernando <ni...@gmail.com>
wrote:

>
>
>
> On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <ravihansa@wso2.com
> > wrote:
>
>> Hi Chamila,
>>
>> Why is that partition min count is 0 in your partition definition at [1] ?
>>
>
> That shouldn't be a problem since the real min-max reside in the
> deployment policy. In fact, you can get rid of those min, max properties
> from partition definition.
>
>>
>> I recall this behavior earlier because of some validation issue. As
>> others suggested, your complete debug logs will help us identify the
>> problem.
>>
>> [1]
>> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>>
>> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <ni...@gmail.com>
>> wrote:
>> > Hi Chamila,
>> >
>> > Could you please attach the complete wso2carbon.log file?
>> >
>> >
>> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
>> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I installed stratos and deployed the necessary policies[1]. I've also
>> >> created a cartridge configuration for PHP.
>> >>
>> >> When I subscribed to the defined cartridge I'm directed to "My
>> Cartridge"
>> >> page but it shows that I'm not subscribed to any cartridges.
>> >>
>> >> wso2carbon.log output consists of the following, but no particular
>> errors.
>> >>
>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>> >>
>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>> >> -  Validating partitions of policy via cloud controller: [id]
>> >> economyDeploymentPolicy
>> >>
>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> -  All
>> >> partitions [p1] were validated successfully, against the Cartridge: php
>> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>> >>
>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>> >> External REPO URL is provided as
>> >> [https://github.com/drnic/php-helloworld.git]
>> >>
>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>> >>
>> >>
>> >> No new instance is spawned and no output is shown in the log after the
>> >> above. I also tried waiting for sometime for the IaaS to pick up the
>> >> requests, as the IaaS I’m using is a bit restricted on the resources,
>> but it
>> >> doesn't show anything even after a while.
>> >>
>> >> [1] - https://github.com/chamilad/stratos-policies
>> >>
>> >> Regards,
>> >> Chamila de Alwis
>> >> Software Engineer | WSO2 | +94772207163
>> >> Blog: code.chamiladealwis.com
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> > Nirmal
>> >
>> > Nirmal Fernando.
>> > PPMC Member & Committer of Apache Stratos,
>> > Senior Software Engineer, WSO2 Inc.
>> >
>> > Blog: http://nirmalfdo.blogspot.com/
>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> Software Engineer, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120

Re: Cartridge subscription not completed

Posted by Nirmal Fernando <ni...@gmail.com>.
On Mon, Sep 1, 2014 at 8:19 PM, Akila Ravihansa Perera <ra...@wso2.com>
wrote:

> Hi Chamila,
>
> Why is that partition min count is 0 in your partition definition at [1] ?
>

That shouldn't be a problem since the real min-max reside in the deployment
policy. In fact, you can get rid of those min, max properties from
partition definition.

>
> I recall this behavior earlier because of some validation issue. As
> others suggested, your complete debug logs will help us identify the
> problem.
>
> [1]
> https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json
>
> On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <ni...@gmail.com>
> wrote:
> > Hi Chamila,
> >
> > Could you please attach the complete wso2carbon.log file?
> >
> >
> > On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com>
> wrote:
> >>
> >> Hi,
> >>
> >> I installed stratos and deployed the necessary policies[1]. I've also
> >> created a cartridge configuration for PHP.
> >>
> >> When I subscribed to the defined cartridge I'm directed to "My
> Cartridge"
> >> page but it shows that I'm not subscribed to any cartridges.
> >>
> >> wso2carbon.log output consists of the following, but no particular
> errors.
> >>
> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
> >>
> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
> >> -  Validating partitions of policy via cloud controller: [id]
> >> economyDeploymentPolicy
> >>
> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
> >> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
> -  All
> >> partitions [p1] were validated successfully, against the Cartridge: php
> >> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
> >> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
> >>
> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
> >> External REPO URL is provided as
> >> [https://github.com/drnic/php-helloworld.git]
> >> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
> >>
> >>
> >> No new instance is spawned and no output is shown in the log after the
> >> above. I also tried waiting for sometime for the IaaS to pick up the
> >> requests, as the IaaS I’m using is a bit restricted on the resources,
> but it
> >> doesn't show anything even after a while.
> >>
> >> [1] - https://github.com/chamilad/stratos-policies
> >>
> >> Regards,
> >> Chamila de Alwis
> >> Software Engineer | WSO2 | +94772207163
> >> Blog: code.chamiladealwis.com
> >>
> >>
> >
> >
> >
> > --
> > Best Regards,
> > Nirmal
> >
> > Nirmal Fernando.
> > PPMC Member & Committer of Apache Stratos,
> > Senior Software Engineer, WSO2 Inc.
> >
> > Blog: http://nirmalfdo.blogspot.com/
>
>
>
> --
> Akila Ravihansa Perera
> Software Engineer, WSO2
> Committer & PMC Member, Apache Stratos
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Re: Cartridge subscription not completed

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Hi Chamila,

Why is that partition min count is 0 in your partition definition at [1] ?

I recall this behavior earlier because of some validation issue. As
others suggested, your complete debug logs will help us identify the
problem.

[1] https://github.com/chamilad/stratos-policies/blob/master/partition-deployment.json

On Mon, Sep 1, 2014 at 7:31 PM, Nirmal Fernando <ni...@gmail.com> wrote:
> Hi Chamila,
>
> Could you please attach the complete wso2carbon.log file?
>
>
> On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com> wrote:
>>
>> Hi,
>>
>> I installed stratos and deployed the necessary policies[1]. I've also
>> created a cartridge configuration for PHP.
>>
>> When I subscribed to the defined cartridge I'm directed to "My Cartridge"
>> page but it shows that I'm not subscribed to any cartridges.
>>
>> wso2carbon.log output consists of the following, but no particular errors.
>>
>> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>> -  Validating partitions of policy via cloud controller: [id]
>> economyDeploymentPolicy
>> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
>> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -  All
>> partitions [p1] were validated successfully, against the Cartridge: php
>> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
>> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
>> External REPO URL is provided as
>> [https://github.com/drnic/php-helloworld.git]
>> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>>
>>
>> No new instance is spawned and no output is shown in the log after the
>> above. I also tried waiting for sometime for the IaaS to pick up the
>> requests, as the IaaS I’m using is a bit restricted on the resources, but it
>> doesn't show anything even after a while.
>>
>> [1] - https://github.com/chamilad/stratos-policies
>>
>> Regards,
>> Chamila de Alwis
>> Software Engineer | WSO2 | +94772207163
>> Blog: code.chamiladealwis.com
>>
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/



-- 
Akila Ravihansa Perera
Software Engineer, WSO2
Committer & PMC Member, Apache Stratos

Blog: http://ravihansa3000.blogspot.com

Re: Cartridge subscription not completed

Posted by Nirmal Fernando <ni...@gmail.com>.
Hi Chamila,

Could you please attach the complete wso2carbon.log file?


On Mon, Sep 1, 2014 at 7:15 PM, Chamila De Alwis <ch...@wso2.com> wrote:

> Hi,
>
> I installed stratos and deployed the necessary policies[1]. I've also
> created a cartridge configuration for PHP.
>
> When I subscribed to the defined cartridge I'm directed to "My Cartridge"
> page but it shows that I'm not subscribed to any cartridges.
>
> wso2carbon.log output consists of the following, but no particular errors.
>
> TID: [0] [STRATOS] [2014-09-01 12:46:27,507]  INFO
> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
> -  Validating partitions of policy via cloud controller: [id]
> economyDeploymentPolicy
> {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}
> TID: [0] [STRATOS] [2014-09-01 12:46:27,699]  INFO
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl} -
> All partitions [p1] were validated successfully, against the Cartridge: php
> {org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl}
> TID: [0] [STRATOS] [2014-09-01 12:46:33,987]  INFO
> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription} -
> External REPO URL is provided as [
> https://github.com/drnic/php-helloworld.git]
> {org.apache.stratos.manager.subscription.FrameworkCartridgeSubscription}
>
>
> No new instance is spawned and no output is shown in the log after the
> above. I also tried waiting for sometime for the IaaS to pick up the
> requests, as the IaaS I’m using is a bit restricted on the resources, but
> it doesn't show anything even after a while.
>
> [1] - https://github.com/chamilad/stratos-policies
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/