以下是数据收集演示,其中Kaa日志的结构由所选择的CT模式定义。该应用程序将记录我需要的数据读数并将它们保存到MongoDB数据库。
但是由于上传存储桶错误,我认为它失败了......它继续记录。
[100%] Built target demo_client
Data collection demo started
Sampled SignalSTR:92 NodeId:Screws Battery:5.93 CEL:4.65 WT:3.60 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555304
Sampled SignalSTR:94 NodeId:Screws Battery:5.74 CEL:3.20 WT:1.77 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555309
Sampled SignalSTR:97 NodeId:Screws Battery:5.17 CEL:2.20 WT:4.40 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555309
Sampled SignalSTR:98 NodeId:Screws Battery:5.33 CEL:1.14 WT:4.47 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555309
Sampled SignalSTR:94 NodeId:Screws Battery:5.69 CEL:4.78 WT:2.94 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555314
Sampled SignalSTR:96 NodeId:Screws Battery:5.86 CEL:2.20 WT:4.62 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555319
Sampled SignalSTR:96 NodeId:Screws Battery:5.81 CEL:3.42 WT:4.55 FirmwareVersion:Linux Welham V3.4 Status:On Timestamp:1484555324
2017/01/16 8:28:49 [ERROR] [kaa_logging.c:803] (-6) - Failed to upload log bucket, id '1' (delivery error code '1')
这是Failed to upload log bucket, id '1' (delivery error code '1')
是什么?
答案 0 :(得分:0)
您的应用程序可能无法连接到MongoDB。 您可能没有安装MongoDB数据库或者您没有安装zookeeper,因此Kaa服务器找不到数据库。
答案 1 :(得分:0)
代码有问题吗?似乎kaa-node不存在问题,因为如果他要安装kaa-node,他可能会遇到其他错误和失败而不是日志传递错误。我认为你的代码