概念介绍
云端诊断日志功能用于查看设备与云端交互的通信交互日志,帮助用户快速诊断在调试过程中设备出现的异常错误,如订阅 topic 无权限、上行消息发布失败、规则引擎转发第三方服务失败等错误异常事件定位。
该文档用于在与云端消息通信错误时,根据错误内容定位原因,并寻求解决方案。
消息错误日志
设备上下线相关
content | result | errcode | 描述 |
Device connect | FAIL, system error | Dev_Conn_System_Err | 设备上线失败,系统错误。 |
发布、订阅 Topic 相关
content | result | errcode | 描述 |
Device subscribe topic: {} | FAIL, unauthorized operation | Subscribe_Topic_Unauthorized | 订阅失败,无 topic 订阅权限。 |
Device subscribe topic: {} | FAIL, system error | Subscribe_System_Err | 订阅失败,系统错误。 |
Device unsubscribe topic: {} | FAIL, system error | UnSubscribe_System_Err | 退订失败,系统错误。 |
设备消息相关
content | result | errcode | errcode 释义 |
Device publish message to topic:{}, QOS:{} | FAIL, unauthorized operation | Dev_Pub_Unauthorized | 发布失败,无 Topic 发布权限。 |
| FAIL, reach max limit with {} | Dev_Pub_Reach_Max_Limit | 发布失败,publish 超过频率限制。 |
| FAIL, payload too long({} > {}) | Dev_Pub_Payload_TooLong | 发布失败,payload 超过长度限制。 |
| FAIL, system error | Dev_Pub_System_Err | 发布失败,系统错误。 |
Publish message to device: topic: {}, QOS:{}{,业务错误说明} | FAIL,no subcriber | Pub_To_Dev_No_Subscriber | 发送失败,没有订阅者。 |
| FAIL, too many offline message | Pub_To_Dev_Offline_Msg_Exceed_Limit | 发送失败,离线消息存储满。 |
| FAIL, offline message payload exceed limit | Pub_To_Dev_Payload_Too_Large | 发送失败,payload 大小超过限制。 |
| FAIL, system error | Pub_To_Dev_System_Err | 发送失败,系统错误。 |
规则引擎相关
content | result | errcode | errcode释义 |
Send message to RuleEngine, topic:{} | FAIL, system error | Msg_Send_To_Rule_System_Err | 转发失败,系统错误。 |
MQ:forward CMQ, type:{}, CMQ{queue: {}, region: {}} | FAIL, queue name is not existed, or deleted | MQ_Queue_NotExist_Or_Deleted | 转发失败,队列不存在,或者队列已经被删除了。 |
| FAIL, exceed maximum message size | MQ_Exceed_Max_Msg_Size | 转发失败,存在至少一条消息达到了最大消息大小限制。 |
| FAIL, reach maximum retention number of message | MQ_Reach_Max_Retention_Num | 转发失败,达到队列的最大消息堆积数。 |
| FAIL, unexpected error: {} | MQ_Forward_CMQ_Unexpected_Err | 转发失败,腾讯云接口公共错误。 |
| FAIL, system error | MQ_Forward_CMQ_System_Err | 转发失败,系统错误。 |
MQ forward CKafka, type:{}, Ckafka{instance:{}, topic: {}, region: {}} | FAIL, unexpected error: {} | MQ_Fowward_Kafka_Unexpected_Err | 转发失败,Kafka 错误信息。 |
| FAIL, system error | MQ_Fowward_Kafka_System_Err | 转发失败,系统错误。 |
RuleEngine republish message, source topic:{}, destination topic: {} | FAIL, no such field({}) in payload | Payload_No_Field | 转发失败,payload 没有对应的字段。 |
| FAIL, system error | Rule_Repub_System_Err | 转发失败,系统错误。 |
RuleEngine forward third-party server,topic:{}, url:{} | FAIL, url server timeout | Forward_Third_Not_Responding | 转发失败,第三方服务器无响应。 |
| FAIL, system error | Forward_Third_System_Err | 转发失败,系统错误。 |
RuleEngine forward CKafka, topic:{}, Ckafka.instance:{}, topic: {}, region: {},retry times:{}" | FAIL,unexpected error: {} | Rule_Forward_Kafka_Unexpected_Err | 转发失败,Kafka 错误信息。 |
RuleEngine forward CMQ Topic, IOT topic:{}, CMQ.topic:{}, region:{} | FAIL,system error:{} | MQ_Queue_NotExist_Or_Deleted | 转发失败,队列不存在,或者已经被删除了。 |
| | MQ_Exceed_Max_Msg_Size | 转发失败,消息超过最大值限制。 |
| | MQ_Reach_Max_Retention_Num | 转发失败,达到最大保持数目。 |
| | Rule_Forward_CMQ_Topic_No_Subscription | 转发失败,本主题没有订阅者。 |
| | Rule_Forward_CMQ_Topic_Unexpected_Err | 转发失败,未知错误。 |
RuleEngine forward CMQ Queue, IOT topic:{}, CMQ.topic:{}, region:{} | FAIL,system error:{} | MQ_Queue_NotExist_Or_Deleted | 转发失败,队列不存在,或者已经被删除了。 |
| | MQ_Exceed_Max_Msg_Size | 转发失败,消息超过最大值限制。 |
| | MQ_Reach_Max_Retention_Num | 转发失败,达到最大保持数目。 |
| | Rule_Forward_CMQ_Topic_No_Subscription | 转发失败,本主题没有订阅者。 |
| | Rule_Forward_CMQ_Topic_Unexpected_Err | 转发失败,未知错误。 |
RuleEngine forward CTSDB. topic:{}, CTSDB.instanceid:{}, region:{}, metric:{} | FAIL,system error:{} | Rule_Forward_Ctsdb_System_Err | 转发失败,系统错误。 |
RuleEngine forward Mongo, topic:{}, Mongo.instanceid:{}, database:{}, collection:{} | FAIL,system error:{} | Rule_Forward_MongoDB_System_Err | 转发失败,系统错误。 |
RuleEngine forward TCB Func,get role error topic:{}, TCB.envID:{}, functionName:{} | FAIL,system error:{} | Rule_Forward_TCB_Func_System_err | 转发失败,系统错误。 |
RuleEngine forward Mysql.IOT topic:{}. info:{} | FAIL,system error:{} | Rule_Forward_Mysql_System_Err | 转发失败,系统错误。 |
RuleEngine forward TDMQ.IOT topic:{}. info:{} | FAIL,system error:{} | Rule_Forward_TDMQ_System_Err | 转发失败,系统错误。 |
Process sql: {} | FAIL,unexpected error:{} | Rule_Process_SQL_Err | 执行失败。 |
Payload is not JSON fmt | FAIL | Payload_Not_JSON | 消息负载不是 JSON 格式。 |