Guam causes imapd error



  • 2 times a month you have to restart the server. Cease to receive letters in the box, after a reboot, the letters immediately appear. When analyzing the logs I came across this:

    2019-02-06 08:00:51 =ERROR REPORT====
    ** Generic server <0.6846.36> terminating
    ** Last message in was {'$gen_cast',accept}
    ** When Server state == {state,{sslsocket,nil,{#Port<0.1383>,{config,{ssl_options,tls,[{3,3},{3,2},{3,1}],verify_none,{#Fun<ssl.7.104555794>,[]},#Fun<ssl.8.104555794>,false,false,undefined,1,<<"/etc/pki/cyrus-imapd/cyrus-imapd.pem">>,undefined,<<"/etc/pki/cyrus-imapd/cyrus-imapd.pem">>,undefined,[],undefined,<<>>,undefined,undefined,undefined,undefined,undefined,[<<"À,">>,<<"À0">>,<<"À$">>,<<"À(">>,<<"À.">>,<<"À2">>,<<"À&">>,<<"À*">>,<<0,159>>,<<0,163>>,<<0,107>>,<<0,106>>,<<0,157>>,<<0,61>>,<<"À+">>,<<"À/">>,<<"À#">>,<<"À'">>,<<"À-">>,<<"À1">>,<<"À%">>,<<"À)">>,<<0,158>>,<<0,162>>,<<0,103>>,<<0,64>>,<<0,156>>,<<0,60>>,<<"À\n">>,<<192,20>>,<<0,57>>,<<0,56>>,<<192,5>>,<<192,15>>,<<0,53>>,<<"À\b">>,<<192,18>>,<<0,22>>,<<0,19>>,<<192,3>>,<<"À\r">>,<<0,10>>,<<"À\t">>,<<192,19>>,<<0,51>>,<<0,50>>,<<192,4>>,<<192,14>>,<<0,47>>,<<0,21>>,<<0,9>>],#Fun<ssl.1.104555794>,true,268435456,false,true,undefined,false,undefined,undefined,undefined,undefined,true,undefined,[],undefined,false,true,undefined,false,{ssl_crl_cache,{internal,[]}},[{sha512,ecdsa},{sha512,rsa},{sha384,ecdsa},{sha384,rsa},{sha256,ecdsa},{sha256,rsa},{sha224,ecdsa},{sha224,rsa},{sha,ecdsa},{sha,rsa},{sha,dsa},{md5,rsa}]},[{reuseaddr,true},{active,false},inet6],<0.105.0>,[inet6,{reuseaddr,true},{packet_size,0},{packet,0},{header,0},{active,false},{mode,binary}],{gen_tcp,tcp,tcp_closed,tcp_error},tls_connection}}},undefined,<0.93.0>,[{certfile,"/etc/pki/cyrus-imapd/cyrus-imapd.pem"}],true,false,[{host,"127.0.0.1"},{port,9993},{tls,true}],[],[{kolab_guam_rule_filter_groupware,{state,undefined,<<>>,false,<<>>,[<<"LIST">>,<<"list">>,<<"XLIST">>,<<"xlist">>,<<"LSUB">>,<<"lsub">>]}}],undefined,undefined,undefined}
    ** Reason for termination ==
    ** {{badmatch,{error,closed}},[{kolab_guam_session,accept_client,1,[{file,"src/kolab_guam_session.erl"},{line,129}]},{kolab_guam_session,handle_cast,2,[{file,"src/kolab_guam_session.erl"},{line,51}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    2019-02-06 08:00:51 =CRASH REPORT====
    crasher:
    initial call: kolab_guam_session:init/1
    pid: <0.6846.36>
    registered_name: []
    exception exit: {{{badmatch,{error,closed}},[{kolab_guam_session,accept_client,1,[{file,"src/kolab_guam_session.erl"},{line,129}]},{kolab_guam_session,handle_cast,2,[{file,"src/kolab_guam_session.erl"},{line,51}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,826}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    ancestors: [<0.93.0>,kolab_guam_sup,<0.88.0>]
    messages: []
    links: [<0.93.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 610
    neighbours:
    2019-02-06 08:00:51 =SUPERVISOR REPORT====
    Supervisor: {<0.93.0>,kolab_guam_listener}
    Context: child_terminated
    Reason: {{badmatch,{error,closed}},[{kolab_guam_session,accept_client,1,[{file,"src/kolab_guam_session.erl"},{line,129}]},{kolab_guam_session,handle_cast,2,[{file,"src/kolab_guam_session.erl"},{line,51}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    Offender: [{pid,<0.6846.36>},{id,session},{mfargs,{kolab_guam_session,start_link,undefined}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]

    2019-02-06 11:42:17 =ERROR REPORT====
    ** Generic server <0.25691.36> terminating
    ** Last message in was {'$gen_cast',accept}
    ** When Server state == {state,{sslsocket,nil,{#Port<0.1383>,{config,{ssl_options,tls,[{3,3},{3,2},{3,1}],verify_none,{#Fun<ssl.7.104555794>,[]},#Fun<ssl.8.104555794>,false,false,undefined,1,<<"/etc/pki/cyrus-imapd/cyrus-imapd.pem">>,undefined,<<"/etc/pki/cyrus-imapd/cyrus-imapd.pem">>,undefined,[],undefined,<<>>,undefined,undefined,undefined,undefined,undefined,[<<"À,">>,<<"À0">>,<<"À$">>,<<"À(">>,<<"À.">>,<<"À2">>,<<"À&">>,<<"À*">>,<<0,159>>,<<0,163>>,<<0,107>>,<<0,106>>,<<0,157>>,<<0,61>>,<<"À+">>,<<"À/">>,<<"À#">>,<<"À'">>,<<"À-">>,<<"À1">>,<<"À%">>,<<"À)">>,<<0,158>>,<<0,162>>,<<0,103>>,<<0,64>>,<<0,156>>,<<0,60>>,<<"À\n">>,<<192,20>>,<<0,57>>,<<0,56>>,<<192,5>>,<<192,15>>,<<0,53>>,<<"À\b">>,<<192,18>>,<<0,22>>,<<0,19>>,<<192,3>>,<<"À\r">>,<<0,10>>,<<"À\t">>,<<192,19>>,<<0,51>>,<<0,50>>,<<192,4>>,<<192,14>>,<<0,47>>,<<0,21>>,<<0,9>>],#Fun<ssl.1.104555794>,true,268435456,false,true,undefined,false,undefined,undefined,undefined,undefined,true,undefined,[],undefined,false,true,undefined,false,{ssl_crl_cache,{internal,[]}},[{sha512,ecdsa},{sha512,rsa},{sha384,ecdsa},{sha384,rsa},{sha256,ecdsa},{sha256,rsa},{sha224,ecdsa},{sha224,rsa},{sha,ecdsa},{sha,rsa},{sha,dsa},{md5,rsa}]},[{reuseaddr,true},{active,false},inet6],<0.105.0>,[inet6,{reuseaddr,true},{packet_size,0},{packet,0},{header,0},{active,false},{mode,binary}],{gen_tcp,tcp,tcp_closed,tcp_error},tls_connection}}},undefined,<0.93.0>,[{certfile,"/etc/pki/cyrus-imapd/cyrus-imapd.pem"}],true,false,[{host,"127.0.0.1"},{port,9993},{tls,true}],[],[{kolab_guam_rule_filter_groupware,{state,undefined,<<>>,false,<<>>,[<<"LIST">>,<<"list">>,<<"XLIST">>,<<"xlist">>,<<"LSUB">>,<<"lsub">>]}}],undefined,undefined,undefined}
    ** Reason for termination ==
    ** {{badmatch,{error,closed}},[{kolab_guam_session,accept_client,1,[{file,"src/kolab_guam_session.erl"},{line,129}]},{kolab_guam_session,handle_cast,2,[{file,"src/kolab_guam_session.erl"},{line,51}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    2019-02-06 11:42:17 =CRASH REPORT====
    crasher:
    initial call: kolab_guam_session:init/1
    pid: <0.25691.36>
    registered_name: []
    exception exit: {{{badmatch,{error,closed}},[{kolab_guam_session,accept_client,1,[{file,"src/kolab_guam_session.erl"},{line,129}]},{kolab_guam_session,handle_cast,2,[{file,"src/kolab_guam_session.erl"},{line,51}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,826}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    ancestors: [<0.93.0>,kolab_guam_sup,<0.88.0>]
    messages: []
    links: [<0.93.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 27
    reductions: 631
    neighbours:
    2019-02-06 11:42:17 =SUPERVISOR REPORT====
    Supervisor: {<0.93.0>,kolab_guam_listener}
    Context: child_terminated
    Reason: {{badmatch,{error,closed}},[{kolab_guam_session,accept_client,1,[{file,"src/kolab_guam_session.erl"},{line,129}]},{kolab_guam_session,handle_cast,2,[{file,"src/kolab_guam_session.erl"},{line,51}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    Offender: [{pid,<0.25691.36>},{id,session},{mfargs,{kolab_guam_session,start_link,undefined}},{restart_type,temporary},{shutdown,1000},{child_type,worker}]

    2019-02-06 14:16:34 =ERROR REPORT====
    ** State machine <0.133.0> terminating
    ** Last event in was {connect,<0.94.0>,server_hello}
    ** When State == disconnected
    ** Data == {state,"127.0.0.1",9993,true,false,undefined,<<>>,1,{[],[]},undefined,undefined,false,undefined,<<>>,undefined,undefined,false}
    ** Reason for termination =
    ** {{badmatch,{{error,econnrefused},true,<0.133.0>,{[],[]}}},[{eimap,disconnected,2,[{file,"src/eimap.erl"},{line,137}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,518}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    2019-02-06 14:16:34 =CRASH REPORT====
    crasher:
    initial call: eimap:init/1
    pid: <0.133.0>
    registered_name: []
    exception exit: {{{badmatch,{{error,econnrefused},true,<0.133.0>,{[],[]}}},[{eimap,disconnected,2,[{file,"src/eimap.erl"},{line,137}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,518}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,626}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    ancestors: [<0.94.0>,<0.90.0>,kolab_guam_sup,<0.88.0>]
    messages: []
    links: [<0.94.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 3223
    neighbours:
    2019-02-06 14:16:34 =ERROR REPORT====
    ** State machine <0.143.0> terminating
    ** Last event in was {connect,<0.109.0>,server_hello}
    ** When State == disconnected
    ** Data == {state,"127.0.0.1",9993,true,false,undefined,<<>>,1,{[],[]},undefined,undefined,false,undefined,<<>>,undefined,undefined,false}
    ** Reason for termination =
    ** {{badmatch,{{error,econnrefused},true,<0.143.0>,{[],[]}}},[{eimap,disconnected,2,[{file,"src/eimap.erl"},{line,137}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,518}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    2019-02-06 14:16:34 =CRASH REPORT====
    crasher:
    initial call: eimap:init/1
    pid: <0.143.0>
    registered_name: []
    exception exit: {{{badmatch,{{error,econnrefused},true,<0.143.0>,{[],[]}}},[{eimap,disconnected,2,[{file,"src/eimap.erl"},{line,137}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,518}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gen_fsm,terminate,7,[{file,"gen_fsm.erl"},{line,626}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}
    ancestors: [<0.109.0>,<0.93.0>,kolab_guam_sup,<0.88.0>]
    messages: []
    links: [<0.109.0>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 1598
    stack_size: 27
    reductions: 3203
    neighbours:
    2019-02-06 14:16:34 =ERROR REPORT====
    ** State machine <0.144.0> terminating
    ** Last event in was {connect,<0.111.0>,server_hello}
    ** When State == disconnected
    ** Data == {state,"127.0.0.1",9993,true,false,undefined,<<>>,1,{[],[]},undefined,undefined,false,undefined,<<>>,undefined,undefined,false}
    ** Reason for termination =
    ** {{badmatch,{{error,econnrefused},true,<0.144.0>,{[],[]}}},[{eimap,disconnected,2,[{file,"src/eimap.erl"},{line,137}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,518}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}

    Please tell me what is the reason and how to solve this problem?


Log in to reply