本文介绍了Kaa Java SDK未与AWS上的KAA沙盒MongoDB同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在日志附加程序中使用默认值'localhost'和端口作为'27017'在AWS上安装了Kaa Sandbox.这是正确的吗?

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

现在为我的第一个kaa应用程序"运行Java SDK会在macOS上出现以下错误.

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

错误消息:INFO org.kaaproject.kaa.client.channel.impl.channels.DefaultOperationTcpChannel-无法同步.频道[default_operation_tcp_channel]正在等待CONNACK消息+ KAASYNC消息

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

这是日志附加程序中提到的IP地址/端口的问题,还是mongoDB的问题?默认情况下,mongoDB是与Kaa Sandbox一起安装在AWS上还是丢失了,需要单独安装?

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?

错误消息还包括:[main] INFO org.kaaproject.kaa.client.channel.impl.DefaultChannelManager-无法找到通道[default_operation_tcp_channel]的操作服务类型TransportProtocolId [id = 1456013202,版本= 1]

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.将管理面板">常规"设置中的ipaddress更改为端口为8080的我的ec2主机IP地址

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

使用SSH登录到ec2,将用户更改为user:kaa,密码:kaa,使用:sudo/usr/lib/kaa-sandbox/bin/change_kaa_host.sh host_ip下载了新的SDK并创建了一个新应用.数据已在mongoDB中接收.

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_ipDownloaded the new SDK and created a new app. Data was received in mongoDB.

这篇关于Kaa Java SDK未与AWS上的KAA沙盒MongoDB同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 08:11