By looking at carbon logs I only see Instance Spwaned Event. Do I mess
something here?

TID: [0] [STRATOS] [2014-08-25 21:07:50,953]  INFO
{org.apache.stratos.cloud.controller.topology.TopologyEventPublisher} -
  Publishing instance spawned event: [service] centos-multi [cluster]
centos-multicentos-multi.domai [network-partition]
  ec2-region1 [partition] zone-1 [member]
centos-multicentos-multi.domai636d5404-3be1-44c8-b07e-eef385af9128
[lb-cluster-id] null
  {org.apache.stratos.cloud.controller.topology.TopologyEventPublisher}
TID: [0] [STRATOS] [2014-08-25 21:07:50,958]  INFO
{org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor}
-
  Member created:[service] centos-multi [cluster]
centos-multicentos-multi.domai [member]
centos-multicentos-multi.domai636d5404-3be1-44c8-b07e-eef385af9128

{org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor}
TID: [0] [STRATOS] [2014-08-25 21:07:50,960]  INFO
{org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver}
-
  [InstanceSpawnedEventListener] Received: class
org.apache.stratos.messaging.event.topology.InstanceSpawnedEvent

{org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver}
TID: [0] [STRATOS] [2014-08-25 21:07:50,961]  WARN
{org.apache.stratos.messaging
.message.processor.topology.InstanceSpawnedMessageProcessor} -  Member
already exists: [service] centos-multi [cluster]
 centos-multicentos-multi.domai [member]
centos-multicentos-multi.domai636d5404-3be1-44c8-b07e-eef385af9128
 
{org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor}



On Tue, Aug 26, 2014 at 7:01 AM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi,
>
> If you look at the cartridge agent logs you can see the below error logs.
> Log says that cartridge agent could not connect to CEP in order to send
> statistics. Could you please investigate whether CEP is running on the
> given IP and port 172.31.25.28:7711. If yes, please check whether CEP is
> accesible from the cartridge instance by telnet
>
> *telnet 172.31.25.28 7711*
>
> 2014-08-25 21:28:58,653 [-] [pool-1-thread-1] ERROR AsyncDataPublisher
> Error while connection to event receiver
> org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot
> borrow client for TCP,172.31.25.28:7611,TCP,172.31.25.28:7711
>  at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:58)
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.start(DataPublisher.java:273)
>  at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.<init>(DataPublisher.java:161)
> at
> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$ReceiverConnectionWorker.run(AsyncDataPublisher.java:787)
>  at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>  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.apache.thrift.transport.TTransportException: Could not
> connect to 172.31.25.28 on port 7711
> at
> org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:212)
>  at
> org.apache.thrift.transport.TSSLTransportFactory.getClientSocket(TSSLTransportFactory.java:166)
> at
> org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:90)
>  at
> org.wso2.carbon.databridge.agent.thrift.internal.pool.client.secure.SecureClientPoolFactory.makeObject(SecureClientPoolFactory.java:48)
> at
> org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1153)
>  at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.authenticator.AgentAuthenticator.connect(AgentAuthenticator.java:50)
> ... 8 more
> Caused by: java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at
> java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>  at
> java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
> at
> java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
> at java.net.Socket.connect(Socket.java:579)
>  at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
> at sun.security.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:407)
>  at
> sun.security.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:88)
> at
> org.apache.thrift.transport.TSSLTransportFactory.createClient(TSSLTransportFactory.java:208)
>  ... 13 more
> 2014-08-25 21:29:12,051 [-] [pool-2-thread-1] ERROR AsyncDataPublisher
> Reconnection failed for for tcp://172.31.25.28:7611
> 2014-08-25 21:29:27,043 [-] [pool-2-thread-1] ERROR AsyncDataPublisher
> Reconnection failed for for tcp://172.31.25.28:7611
>
>
> On Tue, Aug 26, 2014 at 6:11 AM, Ignacio Ayuste <
> ignacio.ayu...@bairesdev.com> wrote:
>
>> Hi guys, i created multitenant cartrige and also configure successfully
>> the cartrige Agent with the puppet agent, the apache stratos
>> log(wscarbon.log) tell me that the instance is active but i still dont see
>> the Active Instances when in the apache stratos console, that why when i
>> try to subscribe with a tenant give me the error that telling me that i
>> need to active instances.
>>
>> i attached the log files of cartrige agent and also Stratos wscarbon.log
>> that indicates when the instance change the status to active.
>>
>> Is importat to say that i did the same process for a single tenant
>> cartrige and works perfectly.
>>
>> I need to do anything else to subscribe a multitenant cartrige.
>>
>> Thanks
>> Ignacio
>>
>>
>
>
> --
>
> Udara Liyanage
> Software Engineer
>  WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Reply via email to