{"action":"closed","issue":{"url":"https://api.github.com/repos/esl/MongooseIM/issues/411","labels_url":"https://api.github.com/repos/esl/MongooseIM/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/esl/MongooseIM/issues/411/comments","events_url":"https://api.github.com/repos/esl/MongooseIM/issues/411/events","html_url":"https://github.com/esl/MongooseIM/issues/411","id":63205110,"number":411,"title":"ejabberd_c2s process terminated in state wait_for_feature_request","user":{"login":"alexdruzhilov","id":490425,"avatar_url":"https://avatars.githubusercontent.com/u/490425?v=3","gravatar_id":"","url":"https://api.github.com/users/alexdruzhilov","html_url":"https://github.com/alexdruzhilov","followers_url":"https://api.github.com/users/alexdruzhilov/followers","following_url":"https://api.github.com/users/alexdruzhilov/following{/other_user}","gists_url":"https://api.github.com/users/alexdruzhilov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdruzhilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdruzhilov/subscriptions","organizations_url":"https://api.github.com/users/alexdruzhilov/orgs","repos_url":"https://api.github.com/users/alexdruzhilov/repos","events_url":"https://api.github.com/users/alexdruzhilov/events{/privacy}","received_events_url":"https://api.github.com/users/alexdruzhilov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"erszcz","id":112145,"avatar_url":"https://avatars.githubusercontent.com/u/112145?v=3","gravatar_id":"","url":"https://api.github.com/users/erszcz","html_url":"https://github.com/erszcz","followers_url":"https://api.github.com/users/erszcz/followers","following_url":"https://api.github.com/users/erszcz/following{/other_user}","gists_url":"https://api.github.com/users/erszcz/gists{/gist_id}","starred_url":"https://api.github.com/users/erszcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erszcz/subscriptions","organizations_url":"https://api.github.com/users/erszcz/orgs","repos_url":"https://api.github.com/users/erszcz/repos","events_url":"https://api.github.com/users/erszcz/events{/privacy}","received_events_url":"https://api.github.com/users/erszcz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/esl/MongooseIM/milestones/4","html_url":"https://github.com/esl/MongooseIM/milestones/MongooseIM%201.6.2","labels_url":"https://api.github.com/repos/esl/MongooseIM/milestones/4/labels","id":1426803,"number":4,"title":"MongooseIM 1.6.2","description":"","creator":{"login":"michalwski","id":705828,"avatar_url":"https://avatars.githubusercontent.com/u/705828?v=3","gravatar_id":"","url":"https://api.github.com/users/michalwski","html_url":"https://github.com/michalwski","followers_url":"https://api.github.com/users/michalwski/followers","following_url":"https://api.github.com/users/michalwski/following{/other_user}","gists_url":"https://api.github.com/users/michalwski/gists{/gist_id}","starred_url":"https://api.github.com/users/michalwski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalwski/subscriptions","organizations_url":"https://api.github.com/users/michalwski/orgs","repos_url":"https://api.github.com/users/michalwski/repos","events_url":"https://api.github.com/users/michalwski/events{/privacy}","received_events_url":"https://api.github.com/users/michalwski/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":11,"state":"open","created_at":"2015-11-24T09:09:49Z","updated_at":"2016-01-26T19:50:19Z","due_on":"2016-01-31T23:00:00Z","closed_at":null},"comments":4,"created_at":"2015-03-20T10:25:56Z","updated_at":"2016-01-26T19:50:19Z","closed_at":"2016-01-26T19:50:19Z","body":"```erlang\r\n    <0.8636.66> gen_fsm <0.8636.66> in state wait_for_feature_request terminated with reason: no such process or port in call to gen_server:call(<0.8635.66>, reset_stream)\r\n    <0.8636.66> CRASH REPORT Process <0.8636.66> with 0 neighbours exited with reason: no such process or port in call to gen_server:call(<0.8635.66>, reset_stream) in p1_fsm:terminate/7 line 695\r\n    <0.725.0> Supervisor ejabberd_c2s_sup had child undefined started with {ejabberd_c2s,start_link,undefined} at <0.8636.66> exit with reason no such process or port in call to gen_server:call(<0.8635.66>, reset_stream) in context child_terminated\r\n\r\n    2015-03-20 00:45:23 =ERROR REPORT====\r\n    ** State machine <0.31226.62> terminating \r\n    ** Last event in was {xmlstreamelement,{xmlel,<<\"auth\">>,[{<<\"xmlns\">>,<<\"urn:ietf:params:xml:ns:xmpp-sasl\">>},{<<\"mechanism\">>,<<\"X-SIGNED-COOKIE\">>}],[{xmlcdata,<<\"%client cookie%\">>}]}}\r\n    ** When State == wait_for_feature_request\r\n    **      Data  == {state,{socket_state,ejabberd_tls,{tlssock,#Port<0.3861956>,#Port<0.3861957>},<0.31225.62>},ejabberd_socket,#Ref<0.0.266.145943>,false,\"3942043444\",{sasl_state,<<\"jabber\">>,<<\"u1\">>,<<>>,#Fun<ejabberd_c2s.2.44687620>,#Fun<ejabberd_c2s.3.44687620>,#Fun<ejabberd_c2s.4.44687620>,undefined,undefined},c2s,c2s_shaper,{false,0},true,false,true,[verify_none,{certfile,\"etc/ejabberd.pem\"}],false,undefined,<<>>,<<\"u1\">>,<<>>,undefined,{pres_t,0},{pres_f,0},{pres_a,0},{pres_i,0},[],undefined,undefined,undefined,false,{userlist,none,[],false},unknown,unknown,{{49,182,137,176},52707},[],[],false,0,undefined,0,[],0,100,1,600,undefined,undefined}\r\n    ** Reason for termination = \r\n    ** {noproc,{gen_server,call,[<0.31225.62>,reset_stream]}}\r\n    2015-03-20 00:45:23 =CRASH REPORT====\r\n    crasher:\r\n        initial call: gen:init_it/6\r\n        pid: <0.31226.62>\r\n        registered_name: []\r\n        exception exit: {{noproc,{gen_server,call,[<0.31225.62>,reset_stream]}},[{p1_fsm,terminate,7,[{file,\"src/p1_fsm.erl\"},{line,695}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,227}]}]}\r\n        ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.253.0>]\r\n        messages: [{'$gen_event',closed},{'DOWN',#Ref<0.0.266.145943>,process,<0.31225.62>,normal}]\r\n        links: [<0.725.0>]\r\n        dictionary: [{'$internal_queue_len',0}]\r\n        trap_exit: false\r\n        status: running\r\n        heap_size: 987\r\n        stack_size: 24\r\n        reductions: 4765\r\n    neighbours:\r\n    2015-03-20 00:45:23 =SUPERVISOR REPORT====\r\n        Supervisor: {local,ejabberd_c2s_sup}\r\n        Context:    child_terminated\r\n        Reason:     {noproc,{gen_server,call,[<0.31225.62>,reset_stream]}}\r\n        Offender:   [{pid,<0.31226.62>},{name,undefined},{mfargs,{ejabberd_c2s,start_link,undefined}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]\r\n```\r\n\r\nI have no steps to reproduce, but seems like it happens when client changes his network many times and uses different xmpp nodes (we use round robin DNS)."}}