{"action":"opened","issue":{"url":"https://api.github.com/repos/esl/MongooseIM/issues/854","repository_url":"https://api.github.com/repos/esl/MongooseIM","labels_url":"https://api.github.com/repos/esl/MongooseIM/issues/854/labels{/name}","comments_url":"https://api.github.com/repos/esl/MongooseIM/issues/854/comments","events_url":"https://api.github.com/repos/esl/MongooseIM/issues/854/events","html_url":"https://github.com/esl/MongooseIM/issues/854","id":159752115,"number":854,"title":"Mongooseim crash with ssl issues","user":{"login":"nguyenductai","id":5832607,"avatar_url":"https://avatars.githubusercontent.com/u/5832607?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenductai","html_url":"https://github.com/nguyenductai","followers_url":"https://api.github.com/users/nguyenductai/followers","following_url":"https://api.github.com/users/nguyenductai/following{/other_user}","gists_url":"https://api.github.com/users/nguyenductai/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenductai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenductai/subscriptions","organizations_url":"https://api.github.com/users/nguyenductai/orgs","repos_url":"https://api.github.com/users/nguyenductai/repos","events_url":"https://api.github.com/users/nguyenductai/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenductai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-11T02:53:58Z","updated_at":"2016-06-11T02:53:58Z","closed_at":null,"body":"MongooseIM version: 1.5.1-2\r\nInstalled from: pkg\r\nErlang/OTP version: Erlang/OTP 18 [erts-7.3] [source-d2a6d81] [64-bit] [smp:16:16] [async-threads:10] [hipe] [kernel-poll:false]\r\n\r\nSometimes MongooseIm crash caused by these following reasons:\r\n1. ------------------------------------------------------------------\r\n\r\n2016-06-10 14:56:45 =ERROR REPORT====\r\nSSL: connection: ssl_alert.erl:92:Fatal error: unknown ca\r\n2016-06-10 16:48:41 =ERROR REPORT====\r\n** State machine <0.17805.1> terminating\r\n** Last event in was {xmlstreamelement,{xmlel,<<\"starttls\">>,[{<<\"xmlns\">>,<<\"urn:ietf:params:xml:ns:xmpp-tls\">>}],[]}}\r\n** When State == wait_for_feature_request\r\n**      Data  == {state,{socket_state,gen_tcp,#Port<0.29101>,<0.17804.1>},ejabberd_socket,#Ref<0.0.21.255576>,false,\"34$\r\n** Reason for termination =\r\n** {noproc,{gen_server,call,[<0.17804.1>,{starttls,{tlssock,#Port<0.29101>,#Port<0.29108>}}]}}\r\n2016-06-10 16:48:41 =CRASH REPORT====\r\n  crasher:\r\n    initial call: gen:init_it/6\r\n    pid: <0.17805.1>\r\n    registered_name: []\r\n    exception exit: {{noproc,{gen_server,call,[<0.17804.1>,{starttls,{tlssock,#Port<0.29101>,#Port<0.29108>}}]}},[{p1_f$\r\n    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.176.0>]\r\n    messages: [{'$gen_event',closed},{'DOWN',#Ref<0.0.21.255576>,process,<0.17804.1>,normal}]\r\n    links: [<0.369.0>,#Port<0.29108>]\r\n    dictionary: [{'$internal_queue_len',0}]\r\n    trap_exit: false\r\n    status: running\r\n    heap_size: 1598\r\n    stack_size: 27\r\n    reductions: 1322\r\n  neighbours:\r\n\r\n2.------------------------------------------------------------------\r\nSSL: hello: tls_handshake.erl:164:Fatal error: insufficient security\r\n2016-06-10 19:12:18 =ERROR REPORT====\r\nSSL: hello: tls_handshake.erl:164:Fatal error: insufficient security\r\n2016-06-10 19:17:13 =ERROR REPORT====\r\n** State machine <0.21205.2> terminating\r\n** Last event in was {xmlstreamelement,{xmlel,<<\"response\">>,[{<<\"xmlns\">>,<<\"urn:ietf:params:xml:ns:xmpp-sasl\">>}],[{x$\r\n** When State == wait_for_sasl_response\r\n**      Data  == {state,{socket_state,ejabberd_tls,{tlssock,#Port<0.46470>,#Port<0.46476>},<0.21204.2>},ejabberd_socket$\r\n** Reason for termination =\r\n** {noproc,{gen_server,call,[<0.21204.2>,reset_stream]}}\r\n2016-06-10 19:17:13 =CRASH REPORT====\r\n  crasher:\r\n    initial call: gen:init_it/6\r\n    pid: <0.21205.2>\r\n    registered_name: []\r\n    exception exit: {{noproc,{gen_server,call,[<0.21204.2>,reset_stream]}},[{p1_fsm_old,terminate,7,[{file,\"src/p1_fsm_$\r\n    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.176.0>]\r\n    messages: [{'$gen_event',closed},{'DOWN',#Ref<0.0.41.67162>,process,<0.21204.2>,normal}]\r\n    links: [<0.369.0>]\r\n    dictionary: [{'$internal_queue_len',0}]\r\n    trap_exit: false\r\n    status: running\r\n    heap_size: 75113\r\n    stack_size: 27\r\n    reductions: 270711\r\n  neighbours:\r\n------------------------------------------------------------------\r\n\r\nAnyone can tell what was the reason, is that relate to ssl issue or MongooseIM issue?\r\nAnd how to solve this situation?\r\nThanks.\r\n"}}
{"actor":{"display_login":"nguyenductai"}}