Anand, CEP_HOME refers to the location in the file system where you have the CEP installed. If you are not using an external CEP, the Stratos can act as a CEP server as well. In this case, the jndi properties file is at apache-stratos-4.1.5/repository/conf/jndi.properties location.
On Sat, Apr 9, 2016 at 8:20 PM, Aanand <anand...@gmail.com> wrote: > Hi Pubudu / Imesh, > > This is the content in the file. In this MB URL is right > > <outputEventAdaptor name="JMSOutputAdaptor" statistics="disable" > trace="enable" type="jms" xmlns=" > http://wso2.org/carbon/eventadaptormanager"> > <!--property > name="java.naming.provider.url">CEP_HOME/repository/conf/jndi.properties</property--> > <property > name="java.naming.provider.url">tcp://localhost:61616</property> > <property > name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</property> > <property > name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</property> > <property name="transport.jms.DestinationType">topic</property> > </outputEventAdaptor> > > Where is jndi.properties file > > root@a898ec74aa6c:/apache-stratos-4.1.5/repository/deployment/server/outputeventadaptors# > CEP_HOME > bash: CEP_HOME: command not found > > is there is any problem due to this variable is not working! > > Regards, > Aanand > Phone: 8098816226 > Skype: anand7007 > > On Thu, Apr 7, 2016 at 10:41 PM, Pubudu Gunatilaka <pub...@apache.org> > wrote: > >> Hi Aanand, >> >> Please fix the following. >> >> 1. File - >> <Stratos>/repository/deployment/server/outputeventadaptors/JMSOutputAdaptor.xml >> >> Replace the following line with MB url and port. >> <property name="java.naming.provider.url">tcp://localhost:61616</property> >> >> Make sure you have set the MB urls in jndi.properties file as well. >> >> 2. As per your log, it looks like Stratos cannot find the Kubernetes >> cluster. Make sure K8 runs on IP addresses defined in the >> Kubernetes-cluster json. If not change json with correct IP address and >> port. >> >> If the k8 port is different set the port number according to the attached >> json file. >> >> Always follow the Stratos log. >> >> Thank you! >> >> On Thu, Apr 7, 2016 at 6:26 PM, Aanand <anand...@gmail.com> wrote: >> >>> Hi Pubudu, >>> >>> Here the log file attached with this. >>> >>> Regards, >>> Aanand >>> Phone: 8098816226 >>> Skype: anand7007 >>> >>> On Tue, Apr 5, 2016 at 11:18 PM, Pubudu Gunatilaka <pubu...@wso2.com> >>> wrote: >>> >>>> Hi Aanand, >>>> >>>> Could you please share the complete Stratos log? It would be easier for >>>> us to analyze the issue using the log. >>>> >>>> Thank you! >>>> >>>> On Tue, Apr 5, 2016 at 7:52 PM, Aanand <anand...@gmail.com> wrote: >>>> >>>>> Any updates for me> >>>>> >>>>> On Mon, Apr 4, 2016 at 6:05 PM, Aanand <anand...@gmail.com> wrote: >>>>> >>>>>> Hi Pubudu, >>>>>> I had used [1] to install kubernetes, so it is 1.0.6 as you >>>>>> mentioned. see the output below which shows the API versions >>>>>> { >>>>>> >>>>>> "paths": [ >>>>>> "/api", >>>>>> "/api/v1", >>>>>> "/api/v1beta3", >>>>>> "/healthz", >>>>>> "/healthz/ping", >>>>>> "/logs/", >>>>>> "/metrics", >>>>>> "/static/", >>>>>> "/swagger-ui/", >>>>>> "/swaggerapi/", >>>>>> "/ui/", >>>>>> "/version" >>>>>> ] >>>>>> } >>>>>> >>>>>> And also I tried stratos/php:4.1.5 as in[2] but now success, giving the >>>>>> same problem. >>>>>> >>>>>> [1] wget >>>>>> https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v1.0.6/kubernetes.tar.gz >>>>>> >>>>>> https://github.com/apache/stratos/blob/4.1.5/samples/cartridges/kubernetes/php.json >>>>>> >>>>>> Regards, >>>>>> Aanand >>>>>> Phone: 8098816226 >>>>>> Skype: anand7007 >>>>>> >>>>>> On Mon, Apr 4, 2016 at 2:14 PM, Pubudu Gunatilaka <pub...@apache.org> >>>>>> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> If you are using Stratos 4.1.5 and samples related to 4.1.5 [1] , >>>>>>> version of the php cartridge would be 4.1.5 and not 4.1.1. >>>>>>> >>>>>>> Please note that Stratos 4.1.5 is only tested in Kubernetes v1.0.6 >>>>>>> and below. There could be API changes in the latest Kubernetes releases. >>>>>>> >>>>>>> Check the Stratos log from the beginning. >>>>>>> >>>>>>> [1] - >>>>>>> https://github.com/apache/stratos/blob/4.1.5/samples/cartridges/kubernetes/php.json >>>>>>> >>>>>>> Thank you! >>>>>>> >>>>>>> On Mon, Apr 4, 2016 at 12:16 PM, Aanand <anand...@gmail.com> wrote: >>>>>>> >>>>>>>> Hi Pubudu, >>>>>>>> >>>>>>>> Thanks for your reply. >>>>>>>> There is no pods on kubernetes: >>>>>>>> root@kube-master:~# kubectl get pods >>>>>>>> NAME READY REASON RESTARTS AGE >>>>>>>> root@kube-master:~# >>>>>>>> >>>>>>>> But docker image for php is there: >>>>>>>> >>>>>>>> root@kube-master:~# docker images >>>>>>>> REPOSITORY TAG IMAGE ID >>>>>>>> CREATED SIZE >>>>>>>> stratos/php 4.1.1 >>>>>>>> c8a797678457 8 months ago 415.6 MB >>>>>>>> root@kube-master:~# >>>>>>>> >>>>>>>> this is the log, I did not get any clue from this. Please check and >>>>>>>> let know your findings. >>>>>>>> >>>>>>>> root@a898ec74aa6c:/# tail -f >>>>>>>> apache-stratos-4.1.5/repository/logs/wso2carbon.log >>>>>>>> at >>>>>>>> io.fabric8.kubernetes.api.ExceptionResponseMapper.fromResponse(ExceptionResponseMapper.java:31) >>>>>>>> at >>>>>>>> org.apache.cxf.jaxrs.client.ClientProxyImpl.checkResponse(ClientProxyImpl.java:302) >>>>>>>> at >>>>>>>> org.apache.cxf.jaxrs.client.ClientProxyImpl.handleResponse(ClientProxyImpl.java:725) >>>>>>>> at >>>>>>>> org.apache.cxf.jaxrs.client.ClientProxyImpl.doChainedInvocation(ClientProxyImpl.java:683) >>>>>>>> at >>>>>>>> org.apache.cxf.jaxrs.client.ClientProxyImpl.invoke(ClientProxyImpl.java:224) >>>>>>>> at com.sun.proxy.$Proxy84.createService(Unknown Source) >>>>>>>> at >>>>>>>> io.fabric8.kubernetes.api.KubernetesClient.createService(KubernetesClient.java:440) >>>>>>>> at >>>>>>>> io.fabric8.kubernetes.api.KubernetesClient.createService(KubernetesClient.java:430) >>>>>>>> at >>>>>>>> org.apache.stratos.kubernetes.client.KubernetesApiClient.createService(KubernetesApiClient.java:220) >>>>>>>> ... 8 more >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Regards, >>>>>>>> Aanand >>>>>>>> Phone: 8098816226 >>>>>>>> Skype: anand7007 >>>>>>>> >>>>>>>> On Mon, Apr 4, 2016 at 11:29 AM, Pubudu Gunatilaka < >>>>>>>> pub...@apache.org> wrote: >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> It looks like pods are not creating properly. Could you please >>>>>>>>> check the stratos log? You can find the log in >>>>>>>>> <Stratos_home>/repository/logs/wso2carbon.log. >>>>>>>>> >>>>>>>>> Make sure you have the docker image in the minion nodes which is >>>>>>>>> specified in the php cartridge definition. One of the other ways that >>>>>>>>> you >>>>>>>>> can troubleshoot this is using kubectl command. Use 'kubectl get pods' >>>>>>>>> command. It will show the status of the pods. >>>>>>>>> >>>>>>>>> Thank you! >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Apr 4, 2016 at 10:59 AM, Aanand <anand...@gmail.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Hi Pubudu, >>>>>>>>>> >>>>>>>>>> I have installed Stratos from the scratch on docker as per [1], >>>>>>>>>> and kubernetes with one minion as in [3] added the kubernetes >>>>>>>>>> cluster to >>>>>>>>>> Stratos as per [2]. when I deployed a single cartridge app as per >>>>>>>>>> [4]. See >>>>>>>>>> the screen shot the PHP application is deployed without any IP to >>>>>>>>>> access. >>>>>>>>>> How can I do this properly? Please assist me. >>>>>>>>>> >>>>>>>>>> [1] >>>>>>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Deploying+Stratos+on+a+Preferred+IaaS >>>>>>>>>> [2] >>>>>>>>>> https://cwiki.apache.org/confluence/display/STRATOS/4.1.x+Adding+a+Kubernetes-CoreOS+Cluster+via+the+UI >>>>>>>>>> [3] >>>>>>>>>> http://containertutorials.com/get_started_kubernetes/index.html >>>>>>>>>> [4] >>>>>>>>>> http://blog.lasindu.com/2015/08/getting-started-with-apache-stratos-410.html >>>>>>>>>> >>>>>>>>>> Regards, >>>>>>>>>> Aanand >>>>>>>>>> Phone: 8098816226 >>>>>>>>>> Skype: anand7007 >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>>> >>>> -- >>>> *Pubudu Gunatilaka* >>>> Committer and PMC Member - Apache Stratos >>>> Software Engineer >>>> WSO2, Inc.: http://wso2.com >>>> <http://t.sidekickopen49.com/e1t/c/5/f18dQhb0S7lC8dDMPbW2n0x6l2B9nMJW7t5XZs2Bpw0YW2zWTD82BgKpCW1q7mhC56dJdpf8WWdCj02?t=http%3A%2F%2Fwso2.com%2F&si=5256626682986496&pi=cca95a49-461b-4fe1-e867-10186e184a56> >>>> mobile : +94774079049 >>>> >>>> -- >>>> Thanks and Regards, >>>> >>>> Isuru H. >>>> +94 716 358 048* <http://wso2.com/>* >>>> >>>> >>>> * <http://wso2.com/>* >>>> >>>> >>>>