Udara: I could not see any problems with PCA. Can you please verify message
broker IP, Port and whether you could telnet to that from the cartridge
instance?

On Wed, Feb 18, 2015 at 10:40 AM, Udara Liyanage <ud...@wso2.com> wrote:

> Hi Gayan,Chamila,
>
> It seems agent can not connect to broker.
>
> 2015-02-18 10:33:21,113:DEBUG:Reading property: param.file.path =
> /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params
> 2015-02-18 10:33:21,113:DEBUG:Reading property: extensions.dir =
> /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/extensions
> 2015-02-18 10:33:21,113:DEBUG:Starting instance notifier event message
> receiver thread
> 2015-02-18 10:33:21,113:DEBUG:Registered handler for event
> 'ArtifactUpdatedEvent'
> 2015-02-18 10:33:21,113:DEBUG:Registered handler for event
> 'InstanceCleanupMemberEvent'
> 2015-02-18 10:33:21,113:DEBUG:Registered handler for event
> 'InstanceCleanupClusterEvent'
> 2015-02-18 10:33:21,113:INFO:Instance notifier event message receiver
> thread started
> 2015-02-18 10:33:21,114:DEBUG:Connecting to the message broker with
> address '10.100.1.167':'1883'
> Exception in thread Thread-2:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
>     self.run()
>   File
> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py",
> line 48, in run
>     self.__mb_client.connect(self.__ip, self.__port, 60)
>   File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line
> 600, in connect
>     return self.reconnect()
>   File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line
> 722, in reconnect
>     self._sock = socket.create_connection((self._host, self._port),
> source_address=(self._bind_address, 0))
>   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
>     raise err
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to