seriyps / mtproto_proxy

High performance Erlang MTProto proxy that powers https://t.me/socksy_bot
https://t.me/erlang_mtproxy
Apache License 2.0
552 stars 100 forks source link

Crash dump is being written to: erl_crash.dump...done #80

Open Pezhvak opened 2 years ago

Pezhvak commented 2 years ago

It seems the image has a problem in recent updates, neither of the proxies are working. can someone confirm this?

Exec: /opt/mtp_proxy/erts-10.3.5.19/bin/erlexec -noinput +Bd -boot /opt/mtp_proxy/releases/0.1.0/mtp_proxy -mode embedded -boot_var SYSTEM_LIB_DIR /opt/mtp_proxy/lib -config /opt/mtp_proxy/releases/0.1.0/sys.config -args_file /opt/mtp_proxy/releases/0.1.0/vm.args -- foreground -mtproto_proxy ports [#{name => mtproto_proxy, port => 2443, secret => <<"d0d6e111bada5511fcce9584deadbeef">>, tag => <<"dcbe8f1493fa4cd9ab300891c0b5b326">>}]
Root: /opt/mtp_proxy
/opt/mtp_proxy
{"Kernel pid terminated",application_controller,"{application_start_failure,mtproto_proxy,{bad_return,{{mtproto_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.601.0>,{downstream_handshake_timeout,-3,handshake_1}}}},[{mtp_config,'-update_downstreams/2-fun-2-',1,[{file,\"/build/mtproto_proxy/src/mtp_config.erl\"},{line,227}]},{lists,foreach,2,[{file,\"lists.erl\"},{line,1338}]},{mtp_config,update_config,1,[{file,\"/build/mtproto_proxy/src/mtp_config.erl\"},{line,193}]},{mtp_config,init,1,[{file,\"/build/mtproto_proxy/src/mtp_config.erl\"},{line,138}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,374}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,342}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,249}]}]}}}}},[{mtproto_proxy_app,start,2,[{file,\"/build/mtproto_proxy/src/mtproto_proxy_app.erl\"},{line,34}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,277}]}]}}}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,mtproto_proxy,{bad_return,{{mtproto_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,m

Crash dump is being written to: erl_crash.dump...done
vitalypetrovisbest commented 2 years ago

Same here

rezabagh commented 2 years ago

Proxy failed

Jun 21 16:33:38 centos7 systemd[1]: Stopped Starts the mtproto_proxy server. Jun 21 16:33:38 centos7 systemd[1]: Started Starts the mtproto_proxy server. Jun 21 16:33:38 centos7 mtp_proxy[4110]: Exec: /opt/mtp_proxy/erts-12.3.2.1/bin/erlexec -noinput +Bd -boot /opt/mtp_proxy/releases/0.1.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /opt/mtp_proxy/lib -config /opt/mtp_proxy/releases/0.1.0/sys.config -args_file /opt/mtp_proxy/releases/0.1.0/vm.args -- foreground Jun 21 16:33:38 centos7 mtp_proxy[4110]: Root: /opt/mtp_proxy Jun 21 16:33:38 centos7 mtp_proxy[4110]: /opt/mtp_proxy Jun 21 16:33:38 centos7 mtp_proxy[4144]: Starting up Jun 21 16:33:49 centos7 mtp_proxy[4110]: {"Kernel pid terminated",application_controller,"{application_start_failure,mtproto_proxy,{bad_return,{{mtproto_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.653.0>,{downstream_handshake_timeout,-3,handshake_1}}}},[{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}]}]}}}}}"} Jun 21 16:33:49 centos7 mtp_proxy[4110]: Kernel pid terminated (application_controller) ({application_start_failure,mtproto_proxy,{bad_return,{{mtproto_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{connection_failed,<0.653.0>,{downstream_handshake_timeout,-3,handshake_1}}}},[{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}]}]}}}}}) Jun 21 16:33:49 centos7 systemd[1]: mtproto-proxy.service: main process exited, code=exited, status=1/FAILURE Jun 21 16:33:49 centos7 mtp_proxy[4110]: Crash dump is being written to: erl_crash.dump... Jun 21 16:33:49 centos7 systemd[1]: Unit mtproto-proxy.service entered failed state. Jun 21 16:33:49 centos7 systemd[1]: mtproto-proxy.service failed. Jun 21 16:33:49 centos7 systemd[1]: mtproto-proxy.service holdoff time over, scheduling restart. Jun 21 16:33:49 centos7 systemd[1]: Stopped Starts the mtproto_proxy server. Jun 21 16:33:49 centos7 systemd[1]: Started Starts the mtproto_proxy server. Jun 21 16:33:49 centos7 mtp_proxy[4163]: Exec: /opt/mtp_proxy/erts-12.3.2.1/bin/erlexec -noinput +Bd -boot /opt/mtp_proxy/releases/0.1.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /opt/mtp_proxy/lib -config /opt/mtp_proxy/releases/0.1.0/sys.config -args_file /opt/mtp_proxy/releases/0.1.0/vm.args -- foreground Jun 21 16:33:49 centos7 mtp_proxy[4163]: Root: /opt/mtp_proxy Jun 21 16:33:49 centos7 mtp_proxy[4163]: /opt/mtp_proxy

alirezaimi commented 2 years ago

same herer ,

Jun 25 10:31:56 imi mtp_proxy[1166080]: {"Kernel pid terminated",application_controller,"{application_start_failure,mtproto_proxy,{bad_return,{{mtprot
o_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,mtp_config,{{badmatch,{error,{failed_connect,[{to_address,{\
"core.telegram.org\",443}},{inet,[inet],timeout}]}}},[{mtp_config,http_get,1,[{file,\"/home/mtproto_proxy/src/mtp_config.erl\"},{line,273
}]},{mtp_config,update_key,1,[{file,\"/home/mtproto_proxy/src/mtp_config.erl\"},{line,186}]},{mtp_config,update,2,[{file,\"/home/git_
proj/mtproto_proxy/src/mtp_config.erl\"},{line,175}]},{mtp_config,init,1,[{file,\"/home/mtproto_proxy/src/mtp_config.erl\"},{line,138}]},
{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}]}]}}}}},[{mtproto_proxy_app,start,2,[{file,\"/home/mtproto_proxy/src/mtproto_proxy_app.erl\"},{line
,34}]},{application_master,start_it_old,4,[{file,\"application_master.erl\"},{line,277}]}]}}}}}"}
Jun 25 10:31:56 imi mtp_proxy[1166080]: Kernel pid terminated (application_controller) ({application_start_failure,mtproto_proxy,{bad_return,{{mtproto
_proxy_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,m
Jun 25 10:31:56 imi mtp_proxy[1166080]:
Jun 25 10:31:56 imi mtp_proxy[1166080]: Crash dump is being written to: erl_crash.dump...
Jun 25 10:31:56 imi systemd[1]: mtproto-proxy.service: Main process exited, code=exited, status=1/FAILURE

Jun 25 10:31:57 imi mtp_proxy[1166181]: Exec: /opt/mtp_proxy/erts-11.1.8/bin/erlexec -noinput +Bd -boot /opt/mtp_proxy/releases/0.1.0/start -mode embedded -boot_var SYSTEM_LIB_DIR /opt/mtp_proxy/lib -config /opt/mtp_proxy/releases/0.1.0/sys.config -args_file /opt/mtp_proxy/releases/0.1.0/vm.args -- foreground
Pezhvak commented 2 years ago

@seriyps sorry for mentioning, is it possible for you to take a look at this?

rezabagh commented 2 years ago

@seriyps Any possible solution ?

0xZXDX commented 2 years ago

I also had the same problem.

firebull commented 2 years ago

Same issue