Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash Report Downstream terminates with reason downstream_socket_closed #92

Open
Majid-Mahzarnia opened this issue Apr 1, 2023 · 0 comments

Comments

@Majid-Mahzarnia
Copy link

Hello @seriyps
My server is behind the NAT it's gateway IP is diffrent to It's real IP . Also Firewall's Piblic IP is behind the cloudflare CDN on port 443. I changed the mtp_install.sh and set static ip in Deteced IP section (IP="x.x.x.x") and (IP=" my subdomain name") but it didnt work,
I used this line to install it:
curl -L -o mtp_install.sh https://git.io/fj5ru && bash mtp_install.sh -p 443 -s "MYSECRET" -t "MYTAG" -a dd -a tls -d ubuntu.com

I face crashe in logs. I check all your recommendation on "#55" and Telegram Servers are reachable on this server.

As can be seen in logs the application is able to connect to Telegrams's servers (@mtp_down_conn:connect:{463,14} 91.108.56.147:8888: TCP connected)

Can you please let me know how to solve this problem?
Thanks

***** application.log:

2023-03-31 23:56:03.911 [info] <0.646.0>@mtp_down_conn:connect:{463,14} 91.108.56.147:8888: TCP connected
2023-03-31 23:56:03.913 [info] <0.647.0>@mtp_down_conn:connect:{463,14} 91.108.56.147:8888: TCP connected
2023-03-31 23:56:04.421 [warning] <0.646.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:04.421 [error] <0.646.0> gen_server <0.646.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:04.421 [error] <0.646.0> CRASH REPORT Process <0.646.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:04.422 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.646.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:04.426 [warning] <0.647.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:04.426 [error] <0.647.0> gen_server <0.647.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:04.426 [error] <0.647.0> CRASH REPORT Process <0.647.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:04.427 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.647.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:04.427 [error] <0.645.0> CRASH REPORT Process <0.645.0> with 0 neighbours exited with reason: {connection_failed,<0.647.0>,downstream_socket_closed} in mtp_dc_pool:'-wait_pending/1-fun-0-'/3 line 274
2023-03-31 23:56:04.427 [error] <0.634.0>@mtp_config:-update_downstreams/2-fun-2-:227 Supervisor mtproto_proxy_sup had child mtp_config started with mtp_config:start_link() at undefined exit with reason no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227 in context start_error
2023-03-31 23:56:04.427 [error] <0.637.0>@mtp_config:-update_downstreams/2-fun-2-:227 CRASH REPORT Process <0.637.0> with 0 neighbours crashed with reason: no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227
2023-03-31 23:56:04.427 [error] <0.632.0>@mtproto_proxy_app:start:34 CRASH REPORT Process <0.632.0> with 0 neighbours exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34 in application_master:init/4 line 142
2023-03-31 23:56:04.428 [info] <0.516.0>@mtproto_proxy_app:start:34 Application mtproto_proxy exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34
2023-03-31 23:56:08.623 [info] <0.647.0>@mtp_down_conn:connect:{463,14} 91.108.56.197:8888: TCP connected
2023-03-31 23:56:08.623 [info] <0.646.0>@mtp_down_conn:connect:{463,14} 91.108.56.103:8888: TCP connected
2023-03-31 23:56:09.277 [warning] <0.646.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:09.277 [warning] <0.647.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:09.278 [error] <0.647.0> gen_server <0.647.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:09.278 [error] <0.646.0> gen_server <0.646.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:09.278 [error] <0.647.0> CRASH REPORT Process <0.647.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:09.278 [error] <0.646.0> CRASH REPORT Process <0.646.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:09.278 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.647.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:09.279 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.646.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:09.279 [error] <0.645.0> CRASH REPORT Process <0.645.0> with 0 neighbours exited with reason: {connection_failed,<0.647.0>,downstream_socket_closed} in mtp_dc_pool:'-wait_pending/1-fun-0-'/3 line 274
2023-03-31 23:56:09.279 [error] <0.637.0>@mtp_config:-update_downstreams/2-fun-2-:227 CRASH REPORT Process <0.637.0> with 0 neighbours crashed with reason: no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227
2023-03-31 23:56:09.279 [error] <0.634.0>@mtp_config:-update_downstreams/2-fun-2-:227 Supervisor mtproto_proxy_sup had child mtp_config started with mtp_config:start_link() at undefined exit with reason no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227 in context start_error
2023-03-31 23:56:09.279 [error] <0.632.0>@mtproto_proxy_app:start:34 CRASH REPORT Process <0.632.0> with 0 neighbours exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34 in application_master:init/4 line 142
2023-03-31 23:56:09.280 [info] <0.516.0>@mtproto_proxy_app:start:34 Application mtproto_proxy exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34
2023-03-31 23:56:13.164 [info] <0.647.0>@mtp_down_conn:connect:{463,14} 91.108.56.198:8888: TCP connected
2023-03-31 23:56:13.164 [info] <0.646.0>@mtp_down_conn:connect:{463,14} 91.108.56.163:8888: TCP connected
2023-03-31 23:56:13.679 [warning] <0.647.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:13.679 [warning] <0.646.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:13.680 [error] <0.646.0> gen_server <0.646.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:13.680 [error] <0.647.0> gen_server <0.647.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:13.680 [error] <0.646.0> CRASH REPORT Process <0.646.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:13.681 [error] <0.647.0> CRASH REPORT Process <0.647.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:13.681 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.646.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:13.681 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.647.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:13.681 [error] <0.645.0> CRASH REPORT Process <0.645.0> with 0 neighbours exited with reason: {connection_failed,<0.647.0>,downstream_socket_closed} in mtp_dc_pool:'-wait_pending/1-fun-0-'/3 line 274
2023-03-31 23:56:13.681 [error] <0.637.0>@mtp_config:-update_downstreams/2-fun-2-:227 CRASH REPORT Process <0.637.0> with 0 neighbours crashed with reason: no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227
2023-03-31 23:56:13.682 [error] <0.634.0>@mtp_config:-update_downstreams/2-fun-2-:227 Supervisor mtproto_proxy_sup had child mtp_config started with mtp_config:start_link() at undefined exit with reason no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227 in context start_error
2023-03-31 23:56:13.682 [error] <0.632.0>@mtproto_proxy_app:start:34 CRASH REPORT Process <0.632.0> with 0 neighbours exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34 in application_master:init/4 line 142
2023-03-31 23:56:13.683 [info] <0.516.0>@mtproto_proxy_app:start:34 Application mtproto_proxy exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34
2023-03-31 23:56:17.719 [info] <0.647.0>@mtp_down_conn:connect:{463,14} 91.108.56.190:8888: TCP connected
2023-03-31 23:56:17.719 [info] <0.646.0>@mtp_down_conn:connect:{463,14} 91.108.56.156:8888: TCP connected
2023-03-31 23:56:18.237 [warning] <0.647.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:18.237 [warning] <0.646.0>@mtp_down_conn:terminate:{185,6} Downstream terminates with reason downstream_socket_closed; len(upstreams)=0
2023-03-31 23:56:18.237 [error] <0.647.0> gen_server <0.647.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:18.237 [error] <0.647.0> CRASH REPORT Process <0.647.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:18.238 [error] <0.646.0> gen_server <0.646.0> terminated with reason: downstream_socket_closed
2023-03-31 23:56:18.238 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.647.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:18.238 [error] <0.646.0> CRASH REPORT Process <0.646.0> with 0 neighbours exited with reason: downstream_socket_closed in gen_server:handle_common_reply/8 line 811
2023-03-31 23:56:18.238 [error] <0.635.0> Supervisor mtp_down_conn_sup had child mtp_down_conn started with {mtp_down_conn,start_link,undefined} at <0.646.0> exit with reason downstream_socket_closed in context child_terminated
2023-03-31 23:56:18.238 [error] <0.645.0> CRASH REPORT Process <0.645.0> with 0 neighbours exited with reason: {connection_failed,<0.647.0>,downstream_socket_closed} in mtp_dc_pool:'-wait_pending/1-fun-0-'/3 line 274
2023-03-31 23:56:18.238 [error] <0.637.0>@mtp_config:-update_downstreams/2-fun-2-:227 CRASH REPORT Process <0.637.0> with 0 neighbours crashed with reason: no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227
2023-03-31 23:56:18.239 [error] <0.634.0>@mtp_config:-update_downstreams/2-fun-2-:227 Supervisor mtproto_proxy_sup had child mtp_config started with mtp_config:start_link() at undefined exit with reason no match of right hand value {error,{connection_failed,<0.647.0>,downstream_socket_closed}} in mtp_config:'-update_downstreams/2-fun-2-'/1 line 227 in context start_error
2023-03-31 23:56:18.239 [error] <0.632.0>@mtproto_proxy_app:start:34 CRASH REPORT Process <0.632.0> with 0 neighbours exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34 in application_master:init/4 line 142
2023-03-31 23:56:18.240 [info] <0.516.0>@mtproto_proxy_app:start:34 Application mtproto_proxy exited with reason: no match of right hand value {error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_serve..."},...]},...]}}}} in mtproto_proxy_app:start/2 line 34

***** crash.log:

2023-03-31 23:56:04 =ERROR REPORT====
** Generic server <0.646.0> terminating
** Last message in was {tcp_closed,#Port<0.11>}
** When Server state == {state,handshake_2,{#Ref<0.4153711133.2585264130.26710>,<<"IPIPPRPDTIME">>},#Port<0.11>,<<0,0,0,0,0,0,0,0,0,0,255,255,138,201,72,36,88,225,0,0>>,{codec,false,undefined,<<>>,mtp_aes_cbc,{baes_st,16,#Ref<0.4153711133.2585395202.26713>,#Ref<0.4153711133.2585395202.26714>},<<>>,mtp_full,{full_st,0,-1,true},<<>>,5242880},#{},#{},false,0,0,{600,9216000,undefined,undefined},<0.645.0>,-5,{{91,108,56,147},8888}}
** Reason for termination ==
** downstream_socket_closed
2023-03-31 23:56:04 =CRASH REPORT====
crasher:
initial call: mtp_down_conn:init/1
pid: <0.646.0>
registered_name: []
exception exit: {downstream_socket_closed,[{gen_server,handle_common_reply,8,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtp_down_conn_sup,mtproto_proxy_sup,<0.633.0>]
message_queue_len: 0
messages: []
links: [<0.635.0>]
dictionary: [{rand_seed,{#{bits => 58,jump => #Fun<rand.3.92093067>,next => #Fun<rand.0.92093067>,type => exsss,uniform => #Fun<rand.1.92093067>,uniform_n => #Fun<rand.2.92093067>},[246336112517683314|241914361956510204]}},{metric_backend,false}]
trap_exit: false
status: running
heap_size: 1598
stack_size: 29
reductions: 3258
neighbours:
2023-03-31 23:56:04 =SUPERVISOR REPORT====
Supervisor: {local,mtp_down_conn_sup}
Context: child_terminated
Reason: downstream_socket_closed
Offender: [{pid,<0.646.0>},{id,mtp_down_conn},{mfargs,{mtp_down_conn,start_link,undefined}},{restart_type,temporary},{significant,false},{shutdown,2000},{child_type,worker}]

2023-03-31 23:56:04 =ERROR REPORT====
** Generic server <0.647.0> terminating
** Last message in was {tcp_closed,#Port<0.12>}
** When Server state == {state,handshake_2,{#Ref<0.4153711133.2585264130.26712>,<<"IPIPPRPDTIME">>},#Port<0.12>,<<0,0,0,0,0,0,0,0,0,0,255,255,138,201,72,36,90,225,0,0>>,{codec,false,undefined,<<>>,mtp_aes_cbc,{baes_st,16,#Ref<0.4153711133.2585395202.26715>,#Ref<0.4153711133.2585395202.26716>},<<>>,mtp_full,{full_st,0,-1,true},<<>>,5242880},#{},#{},false,0,0,{600,9216000,undefined,undefined},<0.645.0>,-5,{{91,108,56,147},8888}}
** Reason for termination ==
** downstream_socket_closed
2023-03-31 23:56:04 =CRASH REPORT====
crasher:
initial call: mtp_down_conn:init/1
pid: <0.647.0>
registered_name: []
exception exit: {downstream_socket_closed,[{gen_server,handle_common_reply,8,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtp_down_conn_sup,mtproto_proxy_sup,<0.633.0>]
message_queue_len: 0
messages: []
links: [<0.635.0>]
dictionary: [{rand_seed,{#{bits => 58,jump => #Fun<rand.3.92093067>,next => #Fun<rand.0.92093067>,type => exsss,uniform => #Fun<rand.1.92093067>,uniform_n => #Fun<rand.2.92093067>},[287610363682262750|124399173524980560]}},{metric_backend,false}]
trap_exit: false
status: running
heap_size: 1598
stack_size: 29
reductions: 3254
neighbours:
2023-03-31 23:56:04 =SUPERVISOR REPORT====
Supervisor: {local,mtp_down_conn_sup}
Context: child_terminated
Reason: downstream_socket_closed
Offender: [{pid,<0.647.0>},{id,mtp_down_conn},{mfargs,{mtp_down_conn,start_link,undefined}},{restart_type,temporary},{significant,false},{shutdown,2000},{child_type,worker}]

2023-03-31 23:56:04 =CRASH REPORT====
crasher:
initial call: mtp_dc_pool:init/1
pid: <0.645.0>
registered_name: []
exception exit: {{connection_failed,<0.647.0>,downstream_socket_closed},[{mtp_dc_pool,'-wait_pending/1-fun-0-',3,[{file,"/root/mtproto_proxy/src/mtp_dc_pool.erl"},{line,274}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{mtp_dc_pool,init,1,[{file,"/root/mtproto_proxy/src/mtp_dc_pool.erl"},{line,102}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtp_dc_pool_sup,mtproto_proxy_sup,<0.633.0>]
message_queue_len: 1
messages: [{'DOWN',#Ref<0.4153711133.2585264130.26706>,process,<0.646.0>,downstream_socket_closed}]
links: [<0.636.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 29
reductions: 288
neighbours:
2023-03-31 23:56:04 =SUPERVISOR REPORT====
Supervisor: {local,mtproto_proxy_sup}
Context: start_error
Reason: {{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
Offender: [{pid,undefined},{id,mtp_config},{mfargs,{mtp_config,start_link,[]}},{restart_type,permanent},{significant,false},{shutdown,5000},{child_type,worker}]

2023-03-31 23:56:04 =CRASH REPORT====
crasher:
initial call: mtp_config:init/1
pid: <0.637.0>
registered_name: []
exception error: {{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtproto_proxy_sup,<0.633.0>]
message_queue_len: 0
messages: []
links: [<0.634.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 6772
stack_size: 29
reductions: 12764
neighbours:
2023-03-31 23:56:04 =CRASH REPORT====
crasher:
initial call: application_master:init/4
pid: <0.632.0>
registered_name: []
exception exit: {{bad_return,{{mtproto_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}}}},[{mtproto_proxy_app,start,2,[{file,"/root/mtproto_proxy/src/mtproto_proxy_app.erl"},{line,34}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,293}]}]}}}},[{application_master,init,4,[{file,"application_master.erl"},{line,142}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [<0.631.0>]
message_queue_len: 1
messages: [{'EXIT',<0.633.0>,normal}]
links: [<0.631.0>,<0.516.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 987
stack_size: 29
reductions: 238
neighbours:
2023-03-31 23:56:09 =ERROR REPORT====
** Generic server <0.647.0> terminating
** Last message in was {tcp_closed,#Port<0.12>}
** When Server state == {state,handshake_2,{#Ref<0.2725361446.3926917122.115037>,<<"IPIPPRPDTIME">>},#Port<0.12>,<<0,0,0,0,0,0,0,0,0,0,255,255,138,201,72,36,148,149,0,0>>,{codec,false,undefined,<<>>,mtp_aes_cbc,{baes_st,16,#Ref<0.2725361446.3927048194.115038>,#Ref<0.2725361446.3927048194.115039>},<<>>,mtp_full,{full_st,0,-1,true},<<>>,5242880},#{},#{},false,0,0,{600,9216000,undefined,undefined},<0.645.0>,-5,{{91,108,56,197},8888}}
** Reason for termination ==
** downstream_socket_closed
2023-03-31 23:56:09 =ERROR REPORT====
** Generic server <0.646.0> terminating
** Last message in was {tcp_closed,#Port<0.11>}
** When Server state == {state,handshake_2,{#Ref<0.2725361446.3926917127.115193>,<<"IPIPPRPDTIME">>},#Port<0.11>,<<0,0,0,0,0,0,0,0,0,0,255,255,138,201,72,36,50,144,0,0>>,{codec,false,undefined,<<>>,mtp_aes_cbc,{baes_st,16,#Ref<0.2725361446.3927048199.115195>,#Ref<0.2725361446.3927048199.115196>},<<>>,mtp_full,{full_st,0,-1,true},<<>>,5242880},#{},#{},false,0,0,{600,9216000,undefined,undefined},<0.645.0>,-5,{{91,108,56,103},8888}}
** Reason for termination ==
** downstream_socket_closed
2023-03-31 23:56:09 =CRASH REPORT====
crasher:
initial call: mtp_down_conn:init/1
pid: <0.647.0>
registered_name: []
exception exit: {downstream_socket_closed,[{gen_server,handle_common_reply,8,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtp_down_conn_sup,mtproto_proxy_sup,<0.633.0>]
message_queue_len: 0
messages: []
links: [<0.635.0>]
dictionary: [{metric_backend,false},{rand_seed,{#{bits => 58,jump => #Fun<rand.3.92093067>,next => #Fun<rand.0.92093067>,type => exsss,uniform => #Fun<rand.1.92093067>,uniform_n => #Fun<rand.2.92093067>},[60871662808677964|56360853009923605]}}]
trap_exit: false
status: running
heap_size: 1598
stack_size: 29
reductions: 3247
neighbours:
2023-03-31 23:56:09 =CRASH REPORT====
crasher:
initial call: mtp_down_conn:init/1
pid: <0.646.0>
registered_name: []
exception exit: {downstream_socket_closed,[{gen_server,handle_common_reply,8,[{file,"gen_server.erl"},{line,811}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtp_down_conn_sup,mtproto_proxy_sup,<0.633.0>]
message_queue_len: 0
messages: []
links: [<0.635.0>]
dictionary: [{metric_backend,false},{rand_seed,{#{bits => 58,jump => #Fun<rand.3.92093067>,next => #Fun<rand.0.92093067>,type => exsss,uniform => #Fun<rand.1.92093067>,uniform_n => #Fun<rand.2.92093067>},[142879166782752|227912208483213309]}}]
trap_exit: false
status: running
heap_size: 1598
stack_size: 29
reductions: 3246
neighbours:
2023-03-31 23:56:09 =SUPERVISOR REPORT====
Supervisor: {local,mtp_down_conn_sup}
Context: child_terminated
Reason: downstream_socket_closed
Offender: [{pid,<0.647.0>},{id,mtp_down_conn},{mfargs,{mtp_down_conn,start_link,undefined}},{restart_type,temporary},{significant,false},{shutdown,2000},{child_type,worker}]

2023-03-31 23:56:09 =SUPERVISOR REPORT====
Supervisor: {local,mtp_down_conn_sup}
Context: child_terminated
Reason: downstream_socket_closed
Offender: [{pid,<0.646.0>},{id,mtp_down_conn},{mfargs,{mtp_down_conn,start_link,undefined}},{restart_type,temporary},{significant,false},{shutdown,2000},{child_type,worker}]

2023-03-31 23:56:09 =CRASH REPORT====
crasher:
initial call: mtp_dc_pool:init/1
pid: <0.645.0>
registered_name: []
exception exit: {{connection_failed,<0.647.0>,downstream_socket_closed},[{mtp_dc_pool,'-wait_pending/1-fun-0-',3,[{file,"/root/mtproto_proxy/src/mtp_dc_pool.erl"},{line,274}]},{lists,foldl,3,[{file,"lists.erl"},{line,1267}]},{mtp_dc_pool,init,1,[{file,"/root/mtproto_proxy/src/mtp_dc_pool.erl"},{line,102}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtp_dc_pool_sup,mtproto_proxy_sup,<0.633.0>]
message_queue_len: 1
messages: [{'DOWN',#Ref<0.2725361446.3926917127.115191>,process,<0.646.0>,downstream_socket_closed}]
links: [<0.636.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 610
stack_size: 29
reductions: 284
neighbours:
2023-03-31 23:56:09 =CRASH REPORT====
crasher:
initial call: mtp_config:init/1
pid: <0.637.0>
registered_name: []
exception error: {{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
ancestors: [mtproto_proxy_sup,<0.633.0>]
message_queue_len: 0
messages: []
links: [<0.634.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 6772
stack_size: 29
reductions: 12764
neighbours:
2023-03-31 23:56:09 =SUPERVISOR REPORT====
Supervisor: {local,mtproto_proxy_sup}
Context: start_error
Reason: {{badmatch,{error,{connection_failed,<0.647.0>,downstream_socket_closed}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,227}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{mtp_config,update_config,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,193}]},{mtp_config,init,1,[{file,"/root/mtproto_proxy/src/mtp_config.erl"},{line,138}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}
Offender: [{pid,undefined},{id,mtp_config},{mfargs,{mtp_config,start_link,[]}},{restart_type,permanent},{significant,false},{shutdown,5000},{child_type,worker}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant