Kaa Java SDK not syncing with KAA Sandbox MongoDB on AWS

天涯浪子 提交于 2019-12-07 14:37:39

问题


I have Kaa Sandbox installed on AWS using default values 'localhost' and port as '27017' in log appender. Is this correct?

Now running the Java SDK for "My first kaa app" is giving the following error on macOS.

error message: INFO org.kaaproject.kaa.client.channel.impl.channels.DefaultOperationTcpChannel - Can't sync. Channel [default_operation_tcp_channel] is waiting for CONNACK message + KAASYNC message

Is this a problem with the IP address/port mentioned in log appender or is this a problem with mongoDB? Is mongoDB installed by default with Kaa Sandbox on AWS or is it missing and needs to be installed separately?

Error msg also includes: [main] INFO org.kaaproject.kaa.client.channel.impl.DefaultChannelManager - Failed to find operations service for channel [default_operation_tcp_channel] type TransportProtocolId [id=1456013202, version=1]


回答1:


Solved it by using following steps: 1. Changed the ipaddress in the admin panel> general settings to my ec2 host IP address with port as 8080

Using SSH, logged into ec2, changed the user to user:kaa, password:kaa, used: sudo /usr/lib/kaa-sandbox/bin/change_kaa_host.sh host_ip Downloaded the new SDK and created a new app. Data was received in mongoDB.



来源:https://stackoverflow.com/questions/41136343/kaa-java-sdk-not-syncing-with-kaa-sandbox-mongodb-on-aws

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!