Hi, I am using master branch. I subscribed to mysql cartridge. I can ssh into my mysql instance.
But agent was not started. When I start it manually, I got the following error. Starting cartridge agent... [2014-08-21 10:52:23,263] INFO - [CartridgeAgentConfiguration] INTERNAL payload parameter is not found [2014-08-21 10:52:23,265] ERROR - [Main] java.lang.NullPointerException [2014-08-21 10:52:23,276] WARN - [EventPublisherPool] Event publisher instance not found in pool: [topic] instance-status Then I have added INTERNAL property to the launch-params file. But it gives same error. What would be the cause? Thanks. On Thu, Aug 21, 2014 at 12:57 PM, Nirmal Fernando <nirmal070...@gmail.com> wrote: > Thanks for the detailed explanation Ignacio. > > I think we need to solve the root cause (agent etc. not getting installed > auto-matically) here, rather than fixing current situation. > > Can you please explain what process you followed to create the base image > ami-2ef39a1e? > > > On Thu, Aug 21, 2014 at 12:40 PM, Ignacio Ayuste < > ignacio.ayu...@bairesdev.com> wrote: > >> Ok this is my step first for my clear the whole process im trying to >> configure a multitenant Cartbirge for that i run a docker in a Centos that >> is hosted in EC2, then in the docker image i install stratos 4.0.0 the >> whole configuration of the install is in the docker file. Then in the >> stratos console i run the json describe in the file *Step Configure >> Stratos Multitenant.js* , when i run step 6 create multitenant service >> stratos create a new instance, then i log to that instance (CentOS >> instance) and using the following script *configurePuppeyAgentCentOS.sh >> (same script that is in the tutorial only i changed to download init,sh >> from centos)* i configured puppet agent. >> >> this whole process install me the puppet agent but not the Cartbrige >> Agent, that why i copy from that url and try to run manually. >> >> For all the process i always use the version 4.0.0 >> >> Thanks >> Ignacio >> >> >> >> >> 2014-08-21 3:58 GMT-03:00 Nirmal Fernando <nirmal070...@gmail.com>: >> >> Hi, >>> >>> Is the agent purely from the link you provided? or is it also configured >>> by puppet master? Reason for asking this is, according to the logs you sent >>> earlier, I feel there's some inconsistency in your agent pack. >>> >>> If this is pure agent released in 4.0 this configuration should work. >>> >>> >>> On Thu, Aug 21, 2014 at 12:19 PM, Ignacio Ayuste < >>> ignacio.ayu...@bairesdev.com> wrote: >>> >>>> Sure here it is: >>>> >>>> >>>> >>>> thanks >>>> >>>> >>>> 2014-08-21 3:42 GMT-03:00 Nirmal Fernando <nirmal070...@gmail.com>: >>>> >>>> I see.. so you are not using the master branch. Earlier, we had used a >>>>> jndi.properties template file. Can you please send the >>>>> conf/templates/jndi.properties.template file of your agent? >>>>> >>>>> >>>>> On Thu, Aug 21, 2014 at 12:08 PM, Ignacio Ayuste < >>>>> ignacio.ayu...@bairesdev.com> wrote: >>>>> >>>>>> i donwload the agent from this url, i build with maven and copy the >>>>>> zip to my new instance that have installed the puppet agent. >>>>>> >>>>>> http://apache.dattatec.com/stratos/4.0.0/apache-stratos-4.0.0.zip >>>>>> >>>>>> that is correct or i need to copy the agent from the stratos instance? >>>>>> >>>>>> i review the code and and is try to find in the server >>>>>> >>>>>> public void init(String topicName) throws Exception { >>>>>> InitialContext ctx; >>>>>> Properties environment = Util.getProperties(jndiPropFileDir + >>>>>> File.separator + "jndi.properties"); >>>>>> environment.put(Constants.REQUEST_BASE_CONTEXT, "true"); // >>>>>> always returns the base context. >>>>>> ctx = new InitialContext(environment); >>>>>> // Lookup connection factory >>>>>> String connectionFactoryName = >>>>>> environment.get("connectionfactoryName").toString(); >>>>>> TopicConnectionFactory connFactory = (TopicConnectionFactory) >>>>>> ctx.lookup(connectionFactoryName); >>>>>> // Lookup the topic >>>>>> try { >>>>>> setTopic((Topic) ctx.lookup(topicName)); >>>>>> } catch (NamingException e) { >>>>>> } >>>>>> topicConnection = connFactory.createTopicConnection(); >>>>>> topicConnection.start(); >>>>>> } >>>>>> >>>>>> Thanks >>>>>> Ignacio >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2014-08-21 3:28 GMT-03:00 Nirmal Fernando <nirmal070...@gmail.com>: >>>>>> >>>>>> Sorry, I should have asked to set correct MB_URL in jndi.properties >>>>>>> file. And AFAIS you have already done that. I'm assuming you are using >>>>>>> Agent from master branch? >>>>>>> >>>>>>> >>>>>>> On Thu, Aug 21, 2014 at 11:44 AM, Nirmal Fernando < >>>>>>> nirmal070...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> You need to add the correct mb_url in Agent's stratos.sh file's >>>>>>>> system properties section. >>>>>>>> >>>>>>>> >>>>>>>> On Thu, Aug 21, 2014 at 11:26 AM, Ignacio Ayuste < >>>>>>>> ignacio.ayu...@bairesdev.com> wrote: >>>>>>>> >>>>>>>>> Hi guys, im using EC2 with one instance with docker and stratos, i >>>>>>>>> created and instance with centos and then install the puppet agent, >>>>>>>>> then i >>>>>>>>> copy the cartbrige agent and try to start and give me this error: >>>>>>>>> >>>>>>>>> log4j:WARN No appenders could be found for logger >>>>>>>>> (org.apache.stratos.cartridge. >>>>>>>>> agent.Main). >>>>>>>>> log4j:WARN Please initialize the log4j system properly. >>>>>>>>> [2014-08-21 05:47:01,290] ERROR - [CartridgeAgentConfiguration] >>>>>>>>> Commits enabled >>>>>>>>> payload parameter is not found >>>>>>>>> [2014-08-21 05:47:01,293] INFO - [CartridgeAgentConfiguration] >>>>>>>>> Cartridge agent >>>>>>>>> configuration initialized >>>>>>>>> [2014-08-21 05:47:01,360] INFO - [CartridgeAgent] Cartridge agent >>>>>>>>> started >>>>>>>>> [2014-08-21 05:47:01,497] INFO - [CartridgeAgent] Instance >>>>>>>>> notifier event messa >>>>>>>>> ge receiver thread started >>>>>>>>> [2014-08-21 05:47:01,538] INFO - >>>>>>>>> [InstanceNotifierEventMessageDelegator] Instan >>>>>>>>> ce notifier event message delegator started >>>>>>>>> SLF4J: Class path contains multiple SLF4J bindings. >>>>>>>>> SLF4J: Found binding in >>>>>>>>> [jar:file:/root/apache-stratos-cartridge-agent-4.0.0-SNA >>>>>>>>> >>>>>>>>> PSHOT/lib/slf4j-1.5.10.wso2v1.jar!/org/slf4j/impl/StaticLoggerBinder.class] >>>>>>>>> SLF4J: Found binding in >>>>>>>>> [jar:file:/root/apache-stratos-cartridge-agent-4.0.0-SNA >>>>>>>>> >>>>>>>>> PSHOT/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] >>>>>>>>> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for >>>>>>>>> an explanation. >>>>>>>>> [2014-08-21 05:47:01,819] INFO - [CartridgeAgent] Tenant event >>>>>>>>> message receiver >>>>>>>>> thread started >>>>>>>>> [2014-08-21 05:47:01,824] INFO - [TenantEventMessageDelegator] >>>>>>>>> Tenant event mes >>>>>>>>> sage delegator started >>>>>>>>> [2014-08-21 05:47:07,637] WARN - [FailoverTransport] Failed to >>>>>>>>> connect to [tcp: >>>>>>>>> //localhost:61616] after: 10 attempt(s) continuing to retry. >>>>>>>>> [2014-08-21 05:47:07,638] WARN - [FailoverTransport] Failed to >>>>>>>>> connect to [tcp: >>>>>>>>> //localhost:61616] after: 10 attempt(s) continuing to retry. >>>>>>>>> >>>>>>>>> the problem is the localhost, i change the jndi.properties file >>>>>>>>> and also the script but always throw me localhost. i attached the >>>>>>>>> script >>>>>>>>> and property file as an evidence. >>>>>>>>> >>>>>>>>> any idea why is happening this? >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> Ignacio >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Best Regards, >>>>>>>> Nirmal >>>>>>>> >>>>>>>> Nirmal Fernando. >>>>>>>> PPMC Member & Committer of Apache Stratos, >>>>>>>> Senior Software Engineer, WSO2 Inc. >>>>>>>> >>>>>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best Regards, >>>>>>> Nirmal >>>>>>> >>>>>>> Nirmal Fernando. >>>>>>> PPMC Member & Committer of Apache Stratos, >>>>>>> Senior Software Engineer, WSO2 Inc. >>>>>>> >>>>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best Regards, >>>>> Nirmal >>>>> >>>>> Nirmal Fernando. >>>>> PPMC Member & Committer of Apache Stratos, >>>>> Senior Software Engineer, WSO2 Inc. >>>>> >>>>> Blog: http://nirmalfdo.blogspot.com/ >>>>> >>>> >>>> >>> >>> >>> -- >>> Best Regards, >>> Nirmal >>> >>> Nirmal Fernando. >>> PPMC Member & Committer of Apache Stratos, >>> Senior Software Engineer, WSO2 Inc. >>> >>> Blog: http://nirmalfdo.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