On Tue, Aug 23, 2016 at 7:32 PM, Supun Malinga <sup...@wso2.com> wrote:
> Hi, > > I already configured MessageFlowConfigurationPublisher.xml and > MessageFlowStatisticsPublisher.xml files. > <property name="receiverURL">tcp://esb-analytics:7612</property> > > This is the http port I believe. But the error saying it cannot connect to > the ssl port 7712 which is not in the configuration.. > > analytics server runs on a different docker container. > http : tcp://esb-analytics:7612 > https: tcp://esb-analytics:7712 > @Supun, this is a Thrift communication which uses TCP underneath.. By default thrift port is 7611 and corresponding ssl thrift port is 7711 (7611+100), check the data-bridge-config.xml file which is in analytics server config directory . Since we are shipping analytics products in offset 1 then thrift port is 7612 and ssl port is 7712.. Here, ssl port (7712) is used for initial authentication purposes of data publisher afterwards it uses the thrift port (7612) for event publishing.. Thanks, Mohan > > > > On Tue, Aug 23, 2016 at 7:28 PM, Chanaka Fernando <chana...@wso2.com> > wrote: > >> Hi Supun, >> >> Where did you configure the hostname for the analytics server node? >> Publisher configurations files are in the >> ESB_HOME/repository/deployment/server/eventpublishers/ >> directory. According to the error log, ESB is trying to connect to >> localhost:7712 port. Are you starting the analytics server on the same node? >> >> On Tue, Aug 23, 2016 at 7:11 PM, Supun Malinga <sup...@wso2.com> wrote: >> >>> Hi, >>> >>> I configured a ESB cluster with analytics in docker. Followed the guide >>> [1] and updated the hostname/port in event publisher artifacts. But still >>> ESB gives and error when I try to anable statistics in a proxy service. >>> >>> Looks like some configuration is missing. However I searched in configs >>> and find any place to change the hostname to the analytics server >>> connection. Can someone point me to the correct config pls ?. >>> >>> esb_worker1 | [2016-08-23 11:58:51,041] WARN - DataEndpointGroup >>> No receiver is reachable at reconnection, will try to reconnect every 30 sec >>> esb_worker1 | [2016-08-23 11:58:51,044] ERROR - >>> DataEndpointConnectionWorker Error while trying to connect to >>> ssl://localhost:7712 >>> esb_worker1 | org.wso2.carbon.databridge.age >>> nt.exception.DataEndpointSecurityException: Error while trying to >>> connect to ssl://localhost:7712 >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien >>> t(ThriftSecureClientPoolFactory.java:61) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.client.AbstractClientPoolFactory.makeObject(AbstractClien >>> tPoolFactory.java:39) >>> esb_worker1 | at org.apache.commons.pool.impl.G >>> enericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.DataEndpointConnectionWorker.connect(DataEndpoin >>> tConnectionWorker.java:91) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.DataEndpointConnectionWorker.run(DataEndpointCon >>> nectionWorker.java:42) >>> esb_worker1 | at java.util.concurrent.Executors >>> $RunnableAdapter.call(Executors.java:471) >>> esb_worker1 | at java.util.concurrent.FutureTas >>> k.run(FutureTask.java:262) >>> esb_worker1 | at java.util.concurrent.ThreadPoo >>> lExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> esb_worker1 | at java.util.concurrent.ThreadPoo >>> lExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> esb_worker1 | at java.lang.Thread.run(Thread.java:745) >>> esb_worker1 | Caused by: >>> org.apache.thrift.transport.TTransportException: >>> Could not connect to localhost on port 7712 >>> esb_worker1 | at org.apache.thrift.transport.TS >>> SLTransportFactory.createClient(TSSLTransportFactory.java:237) >>> esb_worker1 | at org.apache.thrift.transport.TS >>> SLTransportFactory.getClientSocket(TSSLTransportFactory.java:169) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien >>> t(ThriftSecureClientPoolFactory.java:56) >>> esb_worker1 | ... 9 more >>> esb_worker1 | Caused by: java.net.ConnectException: Connection >>> refused >>> esb_worker1 | at java.net.PlainSocketImpl.socketConnect(Native >>> Method) >>> esb_worker1 | at java.net.AbstractPlainSocketIm >>> pl.doConnect(AbstractPlainSocketImpl.java:339) >>> esb_worker1 | at java.net.AbstractPlainSocketIm >>> pl.connectToAddress(AbstractPlainSocketImpl.java:200) >>> esb_worker1 | at java.net.AbstractPlainSocketIm >>> pl.connect(AbstractPlainSocketImpl.java:182) >>> esb_worker1 | at java.net.SocksSocketImpl.conne >>> ct(SocksSocketImpl.java:392) >>> esb_worker1 | at java.net.Socket.connect(Socket.java:579) >>> esb_worker1 | at sun.security.ssl.SSLSocketImpl >>> .connect(SSLSocketImpl.java:625) >>> esb_worker1 | at sun.security.ssl.SSLSocketImpl >>> .<init>(SSLSocketImpl.java:413) >>> esb_worker1 | at sun.security.ssl.SSLSocketFact >>> oryImpl.createSocket(SSLSocketFactoryImpl.java:88) >>> esb_worker1 | at org.apache.thrift.transport.TS >>> SLTransportFactory.createClient(TSSLTransportFactory.java:233) >>> esb_worker1 | ... 11 more >>> esb_worker1 | [2016-08-23 11:58:51,046] ERROR - >>> DataEndpointConnectionWorker Error while trying to connect to the endpoint. >>> Cannot borrow client for ssl://localhost:7712 >>> esb_worker1 | org.wso2.carbon.databridge.age >>> nt.exception.DataEndpointAuthenticationException: Cannot borrow client >>> for ssl://localhost:7712 >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.DataEndpointConnectionWorker.connect(DataEndpoin >>> tConnectionWorker.java:99) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.DataEndpointConnectionWorker.run(DataEndpointCon >>> nectionWorker.java:42) >>> esb_worker1 | at java.util.concurrent.Executors >>> $RunnableAdapter.call(Executors.java:471) >>> esb_worker1 | at java.util.concurrent.FutureTas >>> k.run(FutureTask.java:262) >>> esb_worker1 | at java.util.concurrent.ThreadPoo >>> lExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> esb_worker1 | at java.util.concurrent.ThreadPoo >>> lExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> esb_worker1 | at java.lang.Thread.run(Thread.java:745) >>> esb_worker1 | Caused by: org.wso2.carbon.databridge.age >>> nt.exception.DataEndpointSecurityException: Error while trying to >>> connect to ssl://localhost:7712 >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien >>> t(ThriftSecureClientPoolFactory.java:61) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.client.AbstractClientPoolFactory.makeObject(AbstractClien >>> tPoolFactory.java:39) >>> esb_worker1 | at org.apache.commons.pool.impl.G >>> enericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.DataEndpointConnectionWorker.connect(DataEndpoin >>> tConnectionWorker.java:91) >>> esb_worker1 | ... 6 more >>> esb_worker1 | Caused by: >>> org.apache.thrift.transport.TTransportException: >>> Could not connect to localhost on port 7712 >>> esb_worker1 | at org.apache.thrift.transport.TS >>> SLTransportFactory.createClient(TSSLTransportFactory.java:237) >>> esb_worker1 | at org.apache.thrift.transport.TS >>> SLTransportFactory.getClientSocket(TSSLTransportFactory.java:169) >>> esb_worker1 | at org.wso2.carbon.databridge.age >>> nt.endpoint.thrift.ThriftSecureClientPoolFactory.createClien >>> t(ThriftSecureClientPoolFactory.java:56) >>> esb_worker1 | ... 9 more >>> esb_worker1 | Caused by: java.net.ConnectException: Connection >>> refused >>> esb_worker1 | at java.net.PlainSocketImpl.socketConnect(Native >>> Method) >>> esb_worker1 | at java.net.AbstractPlainSocketIm >>> pl.doConnect(AbstractPlainSocketImpl.java:339) >>> esb_worker1 | at java.net.AbstractPlainSocketIm >>> pl.connectToAddress(AbstractPlainSocketImpl.java:200) >>> esb_worker1 | at java.net.AbstractPlainSocketIm >>> pl.connect(AbstractPlainSocketImpl.java:182) >>> esb_worker1 | at java.net.SocksSocketImpl.conne >>> ct(SocksSocketImpl.java:392) >>> esb_worker1 | at java.net.Socket.connect(Socket.java:579) >>> esb_worker1 | at sun.security.ssl.SSLSocketImpl >>> .connect(SSLSocketImpl.java:625) >>> esb_worker1 | at sun.security.ssl.SSLSocketImpl >>> .<init>(SSLSocketImpl.java:413) >>> esb_worker1 | at sun.security.ssl.SSLSocketFact >>> oryImpl.createSocket(SSLSocketFactoryImpl.java:88) >>> esb_worker1 | at org.apache.thrift.transport.TS >>> SLTransportFactory.createClient(TSSLTransportFactory.java:233) >>> esb_worker1 | ... 11 more >>> >>> >>> [1] https://docs.wso2.com/display/ESB500/Prerequisites+to+Pu >>> blish+Statistics >>> >>> thanks, >>> -- >>> Supun Malinga >>> >> >> >> >> -- >> Thank you and Best Regards, >> Chanaka Fernando >> Senior Technical Lead >> m: +94 773337238 >> https://wso2.com <https://wso2.com/signature> >> >> >> >> >> >> >> > > > -- > Supun Malinga > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *V. Mohanadarshan* *Associate Tech Lead,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com <http://wso2.com> * *lean.enterprise.middleware.* email: mo...@wso2.com phone:(+94) 771117673
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev