常见日志报错及解决方法

1.关键字:ecpool_pool_sup

日志原文:

1

Supervisor: {<0.18803.107>,ecpool_pool_sup}. Context: start_error. Reason: { shutdown,{failed_to_start_child,{worker,1},{ {badmatch,{error,einval}},[{eredis_client,connect_with_tcp,2,[{ file,"eredis_client.erl"},{line,369}]},{eredis_client,init,1,[{ file,"eredis_client.erl"},{line,98}]},{gen_server,init_it,2,[{ file,"gen_server.erl"},{line,417}]},{gen_server,init_it,6,[{ file,"gen_server.erl"},{line,385}]},{proc_lib,init_p_do_apply,3,[{ file,"proc_lib.erl"},{line,226}]}]}}}. Offender: id=worker_sup,pid=undefined.

错误原因:eredis_client 里面的 badmatch,是个bug,redis驱动因为DNS解析失败等情况产生的问题

解决方案:已在4.4.3修复

2.关键字:Warning 1265

日志原文:

1

Warning 1265: Data truncated for column 'temp' at row 1, Warning 1265: Data truncated for column 'hum' at row 1, in insert into , temp_hum(up_timestamp, client_id, temp, hum)  VALUES  , (FROM_UNIXTIME(1647761018341/1000), 'diaocheguanli1''undefined''undefined')

错误原因:一般是 因为数据类型的不对应,或者字符串长度不够而造成的

解决方案:更改为正确的数据类型或者增加字符串长度

3.关键字: initial call: cowboy_clear

日志原文:

1

crasher:    initial call: cowboy_clear:connection_process/4    pid: <0.25409.710>    registered_name: []    exception error: no match of right hand side value {error,closed}      in function  cowboy_clear:connection_process/4 (cowboy_clear.erl, line 38)    ancestors: [<0.2302.0>,<0.2301.0>,ranch_sup,<0.2062.0>]    message_queue_len: 1    messages: [{handshake,'mqtt:ws:9083',ranch_tcp,#Port<0.9487546>,5000}]    links: [<0.2302.0>,#Port<0.9487546>]    dictionary: []    trap_exit: false    status: running    heap_size: 610    stack_size: 27    reductions: 263  neighbours:2022-03-13 13:27:35.816 [error] Ranch listener 'mqtt:ws:9083' had connection process started with cowboy_clear:start_link/4 at <0.25409.710> exit with reason: { {badmatch,{error,closed}},[{cowboy_clear,connection_process,4,[{file,"cowboy_clear.erl"},{line,38}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}

错误原因:ws的在握手的过程中被中断了

解决方案:检查下网络问题

4.关键字: Parse failed for frame_too_large

日志原文:

1

10.192.198.141:42568 [MQTT] , Parse failed for frame_too_large, [{emqx_frame,parse_remaining_len,5,[{ file,"emqx_frame.erl"},{line,159}]},{emqx_connection,parse_incoming,3,[{ file,"emqx_connection.erl"},{line,625}]},{emqx_connection,handle_msg,2,[{ file,"emqx_connection.erl"},{line,618}]},{emqx_connection,process_msg,2,[{ file,"emqx_connection.erl"},{line,364}]},{emqx_connection,handle_recv,3,[{ file,"emqx_connection.erl"},{line,328}]},{proc_lib,wake_up,3,[{ file,"proc_lib.erl"},{line,236}]}], Frame data:<<0,164,255,83,77,66,114,0,0,0,0,8,1,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,6,0,0,1,0,0,129,0,2,80,67,32,78,69,84,87,79,82,75,32,80,82,79,71,82,65,77,32,49,46,48,0,2,77,73,67,82,79,83,79,70,84,32,78,69,84,87,79,82,75,83,32,49,46,48,51,0,2,77,73,67,82,79,83,79,70,84,32,78,69,...>>

错误原因:数据报文太长了

解决方案:检查下发送的相关的报文

5.关键字: esockd_acceptor_sup

日志原文:

Supervisor: {<0.2393.0>,esockd_acceptor_sup}. Context: shutdown_error. Reason: noproc. Offender: id=acceptor,nb_children=2.

错误原因:进程挂掉了

解决方案:需要上下文详细定位

6.关键字: PoolWorker

日志原文:

[PoolWorker] supervisee <0.12604.2> is force killed

错误原因:ecpool 的功能,被底层库强制关闭了,这个是预期行为,如果子进程卡住是要强杀的

解决方案

7.关键字: resource

日志原文:

[Alarm Handler] Alarm resource/web_hook/resource:6777aed2/down is deactivated

错误原因:webhook资源down掉了

解决方案:检查webhook的url情况

8.关键字: More than one channel found

日志原文:

<<"zhtbhz_beidou_server_test">>@14.108.214.6:61987 [CM] More than one channel found: [<0.23782.682>,<0.23804.682>]

错误原因:同一个 ClientId 出现了多个会话

解决方案

9.关键字: Failed to discard

日志原文:

<<"android:7706416585007415566:7b6a3110779b89e3">>@112.97.83.197:37017 [CM] Failed to discard <59069.26551.1562>: {'EXIT',{
 {shutdown,tcp_closed},{gen_server,call,[<59069.26551.1562>,discard,infinity]}}}

错误原因:客户端网络断了,导致任务分发失败,有可能是网络导致的,强断也有可能

解决方案:检查网络问题

10.关键字: Warning 1292

日志原文:

Warning 1292: Truncated incorrect DOUBLE value: 'undefined', in INSERT INTO monitor_data_H621382_2022 (id, cod, nh3n, turb, ec, ph, dio, temp, vol, gps, monitor_dt, create_dt, state)  VALUES  ('H621382', ROUND(7.0591, 2), abs(ROUND(1.025, 2)), ROUND(10.93, 2), ROUND(0.71, 2), ROUND(8.22, 2), ROUND(4.2, 2), ROUND(13.67, 2),ROUND('undefined', 2), '0,0', FROM_UNIXTIME(1648004224), now(), '1')

错误原因:写的mysql查询语句中所提供的字段,与表中字段类型不匹配

解决方案:更改为对应的字段

11.关键字: failed_to_connect_all

日志原文:

failed_to_connect_all: [{
 {"127.0.0.1",9092},{
 {
 {kpro_req,#Ref<60403.1985112988.647757825.240140>,api_versions,0,false,[]},closed},[{kpro_lib,send_and_recv_raw,4,[{file,"kpro_lib.erl"},{line,70}]},{kpro_lib,send_and_recv,5,[{file,"kpro_lib.erl"},{line,81}]},{kpro_connection,query_api_versions,4,[{file,"kpro_connection.erl"},{line,251}]},{kpro_connection,init_connection,2,[{file,"kpro_connection.erl"},{line,238}]},{kpro_connection,init,4,[{file,"kpro_connection.erl"},{line,175}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}]

错误原因:kafka连不上

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值