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

tg not working #498

Open
bidak opened this issue Apr 28, 2015 · 11 comments
Open

tg not working #498

bidak opened this issue Apr 28, 2015 · 11 comments

Comments

@bidak
Copy link

bidak commented Apr 28, 2015

my@ubuntu:~/tg$ bin/telegram-cli -k tg-server.pub
Telegram-cli version 1.2.0, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details.
Telegram-cli uses libtgl version 1.2.0
I: config dir=[/home/my/.telegram-cli]

telegram-cli: tgl/mtproto-client.c:1247: tc_becomes_ready: Assertion `0' failed.
SIGNAL received
hbin/telegram-cli(print_backtrace+0x30)[0x8083820]
bin/telegram-cli(termination_signal_handler+0x7d)[0x80838bd]
[0xb7739400]
[0xb7739424]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x4f)[0xb73261ef]
/lib/i386-linux-gnu/libc.so.6(abort+0x175)[0xb7329835]
/lib/i386-linux-gnu/libc.so.6(+0x27095)[0xb731f095]
/lib/i386-linux-gnu/libc.so.6(+0x27147)[0xb731f147]
bin/telegram-cli[0x80990a0]
bin/telegram-cli[0x80cd883]
/usr/lib/libevent-2.0.so.5(event_base_loop+0x209)[0xb76edd39]
bin/telegram-cli(net_loop+0xc8)[0x8084c28]
bin/telegram-cli(loop+0x1bf)[0x808640f]
bin/telegram-cli(inner_main+0x17)[0x8082fd7]
bin/telegram-cli(main+0x2df)[0x80820cf]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb73114d3]
bin/telegram-cli[0x80821c5]

@bidak
Copy link
Author

bidak commented May 2, 2015

please help me...

@vysheng
Copy link
Owner

vysheng commented May 6, 2015

run with -vvvvvvvv

@bidak
Copy link
Author

bidak commented May 7, 2015

bidak@ubuntu:~/tg$ bin/telegram-cli -k tg-server.pub
Telegram-cli version 1.2.0, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details.
Telegram-cli uses libtgl version 1.2.0
I: config dir=[/home/bidak/.telegram-cli]
[/home/bidak/.telegram-cli] created
[/home/bidak/.telegram-cli/downloads] created

telegram-cli: tgl/mtproto-client.c:1247: tc_becomes_ready: Assertion `0' failed.
SIGNAL received
hbin/telegram-cli(print_backtrace+0x30)[0x8083820]
bin/telegram-cli(termination_signal_handler+0x7d)[0x80838bd]
[0xb77a0400]
[0xb77a0424]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x4f)[0xb738d1ef]
/lib/i386-linux-gnu/libc.so.6(abort+0x175)[0xb7390835]
/lib/i386-linux-gnu/libc.so.6(+0x27095)[0xb7386095]
/lib/i386-linux-gnu/libc.so.6(+0x27147)[0xb7386147]
bin/telegram-cli[0x80990a0]
bin/telegram-cli[0x80cd883]
/usr/lib/libevent-2.0.so.5(event_base_loop+0x209)[0xb7754d39]
bin/telegram-cli(net_loop+0xc8)[0x8084c28]
bin/telegram-cli(loop+0x1bf)[0x808640f]
bin/telegram-cli(inner_main+0x17)[0x8082fd7]
bin/telegram-cli(main+0x2df)[0x80820cf]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb73784d3]

bin/telegram-cli[0x80821c5]

with -vvvvvvvv:

telegram-cli: tgl/mtproto-client.c:1247: tc_becomes_ready: Assertion `0' failed.
SIGNAL received
hbin/telegram-cli(print_backtrace+0x30)[0x8083820]
bin/telegram-cli(termination_signal_handler+0x7d)[0x80838bd]
[0xb775a400]
[0xb775a424]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x4f)[0xb73471ef]
/lib/i386-linux-gnu/libc.so.6(abort+0x175)[0xb734a835]
/lib/i386-linux-gnu/libc.so.6(+0x27095)[0xb7340095]
/lib/i386-linux-gnu/libc.so.6(+0x27147)[0xb7340147]
bin/telegram-cli[0x80990a0]
bin/telegram-cli[0x80cd883]
/usr/lib/libevent-2.0.so.5(event_base_loop+0x209)[0xb770ed39]
bin/telegram-cli(net_loop+0xc8)[0x8084c28]
bin/telegram-cli(loop+0x1bf)[0x808640f]
bin/telegram-cli(inner_main+0x17)[0x8082fd7]
bin/telegram-cli(main+0x2df)[0x80820cf]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb73324d3]
bin/telegram-cli[0x80821c5]

@vysheng
Copy link
Owner

vysheng commented May 11, 2015

No debug output?

@lev69
Copy link

lev69 commented May 12, 2015

I've the same problem, this is my output:

$ bin/telegram-cli -vvvvvvvv -k tg-server.pub 
Telegram-cli version 1.2.0, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type `show_license'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show_license' for details.
Telegram-cli uses libtgl version 1.2.0
I: config dir=[/home/lev/.telegram-cli]
 *** added 19 bytes of real entropy to secure random numbers seed
 *** public key 'tg-server.pub' loaded successfully
 *** Couldn't open public key file: /etc/telegram-cli/server.pub
 *** Can not load key /etc/telegram-cli/server.pub
 *** public key 'tg-server.pub' loaded successfully
 *** Add log event: magic = 0x2194e0de, len = 32
 *** replay_log_event: log_pos=0, op=0x2194e0de
 *** DC1 '' update: 149.154.175.50:443
 *** Add log event: magic = 0x2194e0de, len = 32
 *** replay_log_event: log_pos=32, op=0x2194e0de
 *** DC2 '' update: 149.154.167.51:443
 *** Add log event: magic = 0x2194e0de, len = 32
 *** replay_log_event: log_pos=64, op=0x2194e0de
 *** DC3 '' update: 174.140.142.6:443
 *** Add log event: magic = 0x2194e0de, len = 32
 *** replay_log_event: log_pos=96, op=0x2194e0de
 *** DC4 '' update: 149.154.167.91:443
 *** Add log event: magic = 0x2194e0de, len = 32
 *** replay_log_event: log_pos=128, op=0x2194e0de
 *** DC5 '' update: 149.154.171.5:443
 *** Add log event: magic = 0x9e83dbdc, len = 8
 *** replay_log_event: log_pos=160, op=0x9e83dbdc
 *** Starting netloop
 *** write_out: 1 bytes
 *** Starting authorization for DC #1: 149.154.175.50:443
 *** write_out: 1 bytes
 *** Starting authorization for DC #2: 149.154.167.51:443
 *** write_out: 1 bytes
 *** Starting authorization for DC #3: 174.140.142.6:443
 *** write_out: 1 bytes
 *** Starting authorization for DC #4: 149.154.167.91:443
 *** write_out: 1 bytes
 *** Starting authorization for DC #5: 149.154.171.5:443
 *** outbound rpc connection from dc #2 becomed ready
 *** writing packet: total_len = 10, len = 20
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 20 bytes
 *** try write: fd = 7
 *** Sent 42 bytes to 7
 *** outbound rpc connection from dc #4 becomed ready
 *** writing packet: total_len = 10, len = 20
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 20 bytes
 *** try write: fd = 10
 *** Sent 42 bytes to 10
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 85 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 0 with 84 content bytes
 *** Response_len = 84
 *** rpc_execute: state = 1
 *** writing packet: total_len = 85, len = 320
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 320 bytes
 *** try write: fd = 7
 *** Sent 341 bytes to 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 85 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 0 with 84 content bytes
 *** Response_len = 84
 *** rpc_execute: state = 1
 *** writing packet: total_len = 85, len = 320
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 320 bytes
 *** try write: fd = 10
 *** Sent 341 bytes to 10
 *** outbound rpc connection from dc #1 becomed ready
 *** writing packet: total_len = 10, len = 20
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 20 bytes
 *** try write: fd = 6
 *** Sent 42 bytes to 6
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 656 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 0 with 652 content bytes
 *** Response_len = 652
 *** rpc_execute: state = 2
 *** writing packet: total_len = 99, len = 376
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 376 bytes
 *** try write: fd = 7
 *** Sent 397 bytes to 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 656 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 0 with 652 content bytes
 *** Response_len = 652
 *** rpc_execute: state = 2
 *** writing packet: total_len = 99, len = 376
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 376 bytes
 *** try write: fd = 10
 *** Sent 397 bytes to 10
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 73 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 0 with 72 content bytes
 *** Response_len = 72
 *** rpc_execute: state = 3
 *** Add log event: magic = 0xedf92e72, len = 272
 *** replay_log_event: log_pos=168, op=0xedf92e72
 *** Auth success
 *** Sending query of size 132 to DC (149.154.167.51:443)
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 cbb2e52e
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 200 bytes
 *** Msg_id is 6147968306901138432 0xda00340
 *** try write: fd = 7
 *** Sent 201 bytes to 7
 *** outbound rpc connection from dc #5 becomed ready
 *** writing packet: total_len = 10, len = 20
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 20 bytes
 *** try write: fd = 11
 *** Sent 42 bytes to 11
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 73 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 0 with 72 content bytes
 *** Response_len = 72
 *** rpc_execute: state = 3
 *** Add log event: magic = 0xedf92e72, len = 272
 *** replay_log_event: log_pos=440, op=0xedf92e72
 *** Auth success
 *** Sending query of size 132 to DC (149.154.167.91:443)
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 2457135b
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 200 bytes
 *** Msg_id is 6147968306922617856 0xd9fd280
 *** 6147968306922617856 6147968306901138432
 *** try write: fd = 10
 *** Sent 201 bytes to 10
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 153 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 152 content bytes
 *** Response_len = 152
 *** process_rpc_message(), len=152
 *** adjusting CLOCK_MONOTONIC delta to 0.101922
 *** received mesage id 5551f89a5fd99401
 *** work_container: msg_id = 6147968308254184449
 *** work_new_session_created: msg_id = 6147968308254128129
 *** work_msgs_ack: msg_id = 6147968308254182401
 *** ack for 6147968306901138432
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 265 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 264 content bytes
 *** Response_len = 264
 *** process_rpc_message(), len=264
 *** received mesage id 5551f89a60af0c01
 *** work_rpc_result: msg_id = 6147968308268174337
 *** result for query #6147968306901138432. Size 192 bytes
 *** in_ptr = 0x3994284, end_ptr = 0x3994344
 *** this_dc = 2
 *** Add log event: magic = 0x2194e0de, len = 32
 *** replay_log_event: log_pos=712, op=0x2194e0de
 *** DC3 '' update: 149.154.175.100:443
 *** chat_size = 200, bcast_size = 100
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 85 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 0 with 84 content bytes
 *** Response_len = 84
 *** rpc_execute: state = 1
 *** writing packet: total_len = 85, len = 320
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 320 bytes
 *** try write: fd = 6
 *** Sent 341 bytes to 6
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 418 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 152 content bytes
 *** Response_len = 152
 *** process_rpc_message(), len=152
 *** adjusting CLOCK_MONOTONIC delta to 0.140224
 *** received mesage id 5551f89a6a9e7401
 *** work_container: msg_id = 6147968308434859009
 *** work_new_session_created: msg_id = 6147968308434816001
 *** work_msgs_ack: msg_id = 6147968308434856961
 *** ack for 6147968306922617856
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 264 content bytes
 *** Response_len = 264
 *** process_rpc_message(), len=264
 *** received mesage id 5551f89a6b681801
 *** work_rpc_result: msg_id = 6147968308448073729
 *** result for query #6147968306922617856. Size 192 bytes
 *** in_ptr = 0x3994284, end_ptr = 0x3994344
 *** this_dc = 4
 *** chat_size = 200, bcast_size = 100
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 85 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 0 with 84 content bytes
 *** Response_len = 84
 *** rpc_execute: state = 1
 *** writing packet: total_len = 85, len = 320
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 320 bytes
 *** try write: fd = 11
 *** Sent 341 bytes to 11
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 656 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 0 with 652 content bytes
 *** Response_len = 652
 *** rpc_execute: state = 2
 *** writing packet: total_len = 99, len = 376
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 376 bytes
 *** try write: fd = 6
 *** Sent 397 bytes to 6
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 73 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 0 with 72 content bytes
 *** Response_len = 72
 *** rpc_execute: state = 3
 *** Add log event: magic = 0xedf92e72, len = 272
 *** replay_log_event: log_pos=744, op=0xedf92e72
 *** Auth success
 *** Sending query of size 132 to DC (149.154.175.50:443)
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 9b009ef9
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 200 bytes
 *** Msg_id is 6147968307383164928 0xda01a00
 *** try write: fd = 6
 *** Sent 201 bytes to 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 656 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 0 with 652 content bytes
 *** Response_len = 652
 *** rpc_execute: state = 2
 *** writing packet: total_len = 99, len = 376
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 376 bytes
 *** try write: fd = 11
 *** Sent 397 bytes to 11
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 153 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 152 content bytes
 *** Response_len = 152
 *** process_rpc_message(), len=152
 *** adjusting CLOCK_MONOTONIC delta to 0.326279
 *** received mesage id 5551f89aef0e3001
 *** work_container: msg_id = 6147968310656774145
 *** work_new_session_created: msg_id = 6147968310656708609
 *** work_msgs_ack: msg_id = 6147968310656772097
 *** ack for 6147968307383164928
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 265 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 264 content bytes
 *** Response_len = 264
 *** process_rpc_message(), len=264
 *** received mesage id 5551f89af031b401
 *** work_rpc_result: msg_id = 6147968310675878913
 *** result for query #6147968307383164928. Size 192 bytes
 *** in_ptr = 0x3994284, end_ptr = 0x3994344
 *** this_dc = 1
 *** chat_size = 200, bcast_size = 100
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 73 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 0 with 72 content bytes
 *** Response_len = 72
 *** rpc_execute: state = 3
 *** Add log event: magic = 0xedf92e72, len = 272
 *** replay_log_event: log_pos=1016, op=0xedf92e72
 *** Auth success
 *** Sending query of size 132 to DC (149.154.171.5:443)
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 2453efbf
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 200 bytes
 *** Msg_id is 6147968307828909056 0xda02500
 *** try write: fd = 11
 *** Sent 201 bytes to 11
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 b36f5eaa
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 104 bytes
 *** try write: fd = 7
 *** Sent 105 bytes to 7
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 6fd97241
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 104 bytes
 *** try write: fd = 10
 *** Sent 105 bytes to 10
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 153 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 152 content bytes
 *** Response_len = 152
 *** process_rpc_message(), len=152
 *** adjusting CLOCK_MONOTONIC delta to -0.465048
 *** received mesage id 5551f89b5aa35401
 *** work_container: msg_id = 6147968312461710337
 *** work_new_session_created: msg_id = 6147968312461652993
 *** work_msgs_ack: msg_id = 6147968312461708289
 *** ack for 6147968307828909056
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 265 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 264 content bytes
 *** Response_len = 264
 *** process_rpc_message(), len=264
 *** received mesage id 5551f89b5b8ba001
 *** work_rpc_result: msg_id = 6147968312476934145
 *** result for query #6147968307828909056. Size 192 bytes
 *** in_ptr = 0x3994284, end_ptr = 0x3994344
 *** this_dc = 5
 *** chat_size = 200, bcast_size = 100
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 72098505
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 104 bytes
 *** try write: fd = 6
 *** Sent 105 bytes to 6
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 d25c72e9
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 104 bytes
 *** try write: fd = 11
 *** Sent 105 bytes to 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 028c6124
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 7
 *** Sent 73 bytes to 7
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 89 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8b86fe65001
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 dfe8ffd6
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 10
 *** Sent 73 bytes to 10
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 89 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8b882336c01
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 0c12bb85
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 6
 *** Sent 73 bytes to 6
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 89 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8b91bcccc01
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 03cd1eed
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 7
 *** Sent 89 bytes to 7
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 bef18b4b
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 11
 *** Sent 73 bytes to 11
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 a8ba7172
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 10
 *** Sent 89 bytes to 10
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 89 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8b9a1d1e401
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 2bcaa530
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 6
 *** Sent 89 bytes to 6
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 3e16f63b
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 11
 *** Sent 89 bytes to 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** fail connection: reason: ping timeout
 *** Lost connection to server... 174.140.142.6:80
 *** write_out: 1 bytes
 *** outbound rpc connection from dc #3 becomed ready
 *** writing packet: total_len = 10, len = 20
 *** write_out: 1 bytes
 *** write_out: 20 bytes
 *** write_out: 20 bytes
 *** try write: fd = 9
 *** Sent 42 bytes to 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 79f0197f
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 7
 *** Sent 73 bytes to 7
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 89 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8d67ee03c01
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 1f48c85f
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 10
 *** Sent 73 bytes to 10
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 89 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8d6922b0c01
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 ec138459
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 6
 *** Sent 73 bytes to 6
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 89 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8d74740f801
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 5c0f61da
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 7
 *** Sent 89 bytes to 7
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 cc67a19c
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 10
 *** Sent 89 bytes to 10
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 ce53a859
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 11
 *** Sent 73 bytes to 11
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 89 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8d7e7ce3001
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 15676a6b
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 6
 *** Sent 89 bytes to 6
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 6c199496
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 11
 *** Sent 89 bytes to 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 6b0588f9
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 7
 *** Sent 73 bytes to 7
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 89 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8f48e3ca001
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 4bf3fa5d
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 10
 *** Sent 73 bytes to 10
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 89 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8f4a2295401
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 c03bde4c
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 6
 *** Sent 73 bytes to 6
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 89 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8f57422d801
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 ca1affc0
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 7
 *** Sent 89 bytes to 7
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 566d499d
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 10
 *** Sent 89 bytes to 10
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 190b81ba
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 11
 *** Sent 73 bytes to 11
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 89 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f8f62dda5401
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 e8b544f0
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 6
 *** Sent 89 bytes to 6
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 114c683f
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 11
 *** Sent 89 bytes to 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** fail connection: reason: ping timeout
 *** Lost connection to server... 149.154.175.100:25
 *** write_out: 1 bytes
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 f1b4f022
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 7
 *** Sent 73 bytes to 7
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 89 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f9129d5e9001
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 b45d2f21
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 10
 *** Sent 73 bytes to 10
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 89 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f912b2358401
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 80658c37
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 6
 *** Sent 73 bytes to 6
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 36e94520
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 7
 *** Sent 89 bytes to 7
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 89 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f9139fd52001
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 a3f00f98
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 10
 *** Sent 89 bytes to 10
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 0adaa7e9
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 11
 *** Sent 73 bytes to 11
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 89 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f91473ec2001
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 bf588208
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 6
 *** Sent 89 bytes to 6
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 6b6e392d
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 11
 *** Sent 89 bytes to 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 7b7e2271
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 7
 *** Sent 73 bytes to 7
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 89 bytes from 7
 *** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer -989646115 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f930ac6fdc01
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 9c826ebc
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 10
 *** Sent 73 bytes to 10
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 89 bytes from 10
 *** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer -383173540 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f930c1ec4801
 *** temp_auth_key_id = 0x60370414c50332dd, auth_key_id = 0x60370414c50332dd
 *** sending message with sha1 62f3a54e
 *** Sending message to DC2: 149.154.167.51:443 with key_id=6933014638611346141
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 7
 *** Sent 89 bytes to 7
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 02984537
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 6
 *** Sent 73 bytes to 6
 *** temp_auth_key_id = 0x98d74015e9293c5c, auth_key_id = 0x98d74015e9293c5c
 *** sending message with sha1 99f478fd
 *** Sending message to DC4: 149.154.167.91:443 with key_id=-7433402197101429668
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 10
 *** Sent 89 bytes to 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 89 bytes from 6
 *** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer -471557125 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f931cbdb4801
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 50bffc66
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 72 bytes
 *** try write: fd = 11
 *** Sent 73 bytes to 11
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 89 bytes from 11
 *** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 1297293616 with 88 content bytes
 *** Response_len = 88
 *** process_rpc_message(), len=88
 *** received mesage id 5551f932ba426001
 *** temp_auth_key_id = 0x25a4b03ee3e49bfb, auth_key_id = 0x25a4b03ee3e49bfb
 *** sending message with sha1 20a5010d
 *** Sending message to DC1: 149.154.175.50:443 with key_id=2712486659741752315
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 6
 *** Sent 89 bytes to 6
 *** temp_auth_key_id = 0xccfdb6be4d532130, auth_key_id = 0xccfdb6be4d532130
 *** sending message with sha1 cddff1b9
 *** Sending message to DC5: 149.154.171.5:443 with key_id=-3675580792407121616
 *** write_out: 1 bytes
 *** write_out: 88 bytes
 *** try write: fd = 11
 *** Sent 89 bytes to 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** ping alarm
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** ping alarm
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** ping alarm
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** ping alarm
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** Try read. Fd = 7
 *** try read: fd = 7
 *** Received 0 bytes from 7
 *** Try read. Fd = 10
 *** try read: fd = 10
 *** Received 0 bytes from 10
 *** Try read. Fd = 6
 *** try read: fd = 6
 *** Received 0 bytes from 6
 *** Try read. Fd = 11
 *** try read: fd = 11
 *** Received 0 bytes from 11
 *** Try read. Fd = 9
 *** try read: fd = 9
 *** Received 0 bytes from 9
 *** ping alarm
 *** fail connection: reason: ping timeout
 *** Lost connection to server... 149.154.175.100:443
 *** write_out: 1 bytes
 *** outbound rpc connection from dc #3 becomed ready
 *** c_state = 1
> telegram-cli: tgl/mtproto-client.c:1247: tc_becomes_ready: Assertion `0' failed.
SIGNAL received
hbin/telegram-cli(print_backtrace+0x20)[0x44ada0]
bin/telegram-cli(termination_signal_handler+0x64)[0x44ae24]
/lib64/libc.so.6(+0x35550)[0x7f0e65ad1550]
/lib64/libc.so.6(gsignal+0x39)[0x7f0e65ad14c9]
/lib64/libc.so.6(abort+0x148)[0x7f0e65ad2958]
/lib64/libc.so.6(+0x2e296)[0x7f0e65aca296]
/lib64/libc.so.6(+0x2e342)[0x7f0e65aca342]
bin/telegram-cli[0x45c579]
bin/telegram-cli[0x487f73]
/usr/lib64/libevent-2.0.so.5(event_base_loop+0x754)[0x7f0e67253b14]
bin/telegram-cli(net_loop+0xa4)[0x44beb4]
bin/telegram-cli(loop+0x16e)[0x44d17e]
bin/telegram-cli(main+0x277)[0x4498e7]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f0e65abdbe5]
bin/telegram-cli[0x4499b9]

@vysheng
Copy link
Owner

vysheng commented May 12, 2015

please, use test branch. Or at least change in tgl/tgl.h line to
#define TG_SERVER_3 "149.154.175.100"

@lev69
Copy link

lev69 commented May 12, 2015

Thanks for quick response! Changing IP is working for me now
12 мая 2015 г. 17:08 пользователь "vysheng" notifications@github.com
написал:

please, use test branch. Or at least change in tgl/tgl.h line to
#define TG_SERVER_3 "149.154.175.100"


Reply to this email directly or view it on GitHub
#498 (comment).

@bidak
Copy link
Author

bidak commented May 12, 2015

bidak@ubuntu:~/tg$ bin/telegram-cli -vvvvvvv
Telegram-cli version 1.2.0, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details.
Telegram-cli uses libtgl version 1.2.0
I: config dir=[/home/bidak/.telegram-cli]
*** added 32 bytes of real entropy to secure random numbers seed
*** Couldn't open public key file: /etc/telegram-cli/server.pub
*** Can not load key /etc/telegram-cli/server.pub
*** public key 'tg-server.pub' loaded successfully
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=0, op=0x2194e0de
*** DC1 '' update: 149.154.175.50:443
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=32, op=0x2194e0de
*** DC2 '' update: 149.154.167.51:443
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=64, op=0x2194e0de
*** DC3 '' update: 174.140.142.6:443
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=96, op=0x2194e0de
*** DC4 '' update: 149.154.167.91:443
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=128, op=0x2194e0de
*** DC5 '' update: 149.154.171.5:443
*** Add log event: magic = 0x9e83dbdc, len = 8
*** replay_log_event: log_pos=160, op=0x9e83dbdc
*** Starting netloop
*** write_out: 1 bytes
*** Starting authorization for DC #1: 149.154.175.50:443
*** write_out: 1 bytes
*** Starting authorization for DC #2: 149.154.167.51:443
*** write_out: 1 bytes
*** Starting authorization for DC #3: 174.140.142.6:443
*** write_out: 1 bytes
*** Starting authorization for DC #4: 149.154.167.91:443
*** write_out: 1 bytes
*** Starting authorization for DC #5: 149.154.171.5:443
*** outbound rpc connection from dc #4 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 9
*** Sent 42 bytes to 9
*** outbound rpc connection from dc #2 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 7
*** Sent 42 bytes to 7
*** outbound rpc connection from dc #1 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 6
*** Sent 42 bytes to 6
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 85 bytes from 9
*** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 0 with 84 content bytes
*** Response_len = 84
*** rpc_execute: state = 1
*** writing packet: total_len = 85, len = 320
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 320 bytes
*** try write: fd = 9
*** Sent 341 bytes to 9
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 85 bytes from 7
*** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 0 with 84 content bytes
*** Response_len = 84
*** rpc_execute: state = 1
*** writing packet: total_len = 85, len = 320
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 320 bytes
*** try write: fd = 7
*** Sent 341 bytes to 7
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 85 bytes from 6
*** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 0 with 84 content bytes
*** Response_len = 84
*** rpc_execute: state = 1
*** writing packet: total_len = 85, len = 320
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 320 bytes
*** try write: fd = 6
*** Sent 341 bytes to 6
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 656 bytes from 9
*** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 0 with 652 content bytes
*** Response_len = 652
*** rpc_execute: state = 2
*** writing packet: total_len = 99, len = 376
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 376 bytes
*** outbound rpc connection from dc #5 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 10
*** Sent 42 bytes to 10
*** try write: fd = 9
*** Sent 397 bytes to 9
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 656 bytes from 7
*** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 0 with 652 content bytes
*** Response_len = 652
*** rpc_execute: state = 2
*** writing packet: total_len = 99, len = 376
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 376 bytes
*** try write: fd = 7
*** Sent 397 bytes to 7
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 656 bytes from 6
*** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 0 with 652 content bytes
*** Response_len = 652
*** rpc_execute: state = 2
*** writing packet: total_len = 99, len = 376
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 376 bytes
*** try write: fd = 6
*** Sent 397 bytes to 6
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 73 bytes from 9
*** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 0 with 72 content bytes
*** Response_len = 72
*** rpc_execute: state = 3
*** Add log event: magic = 0xedf92e72, len = 272
*** replay_log_event: log_pos=168, op=0xedf92e72
*** Auth success
*** Sending query of size 136 to DC (149.154.167.91:443)
*** temp_auth_key_id = 0x584867b02b191a30, auth_key_id = 0x584867b02b191a30
*** sending message with sha1 fdf655a4
*** Sending message to DC4: 149.154.167.91:443 with key_id=6361448479995796016
*** write_out: 1 bytes
*** write_out: 200 bytes
*** Msg_id is 6148006026398610120 0x1409cbe8
*** try write: fd = 9
*** Sent 201 bytes to 9
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 73 bytes from 7
*** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 0 with 72 content bytes
*** Response_len = 72
*** rpc_execute: state = 3
*** Add log event: magic = 0xedf92e72, len = 272
*** replay_log_event: log_pos=440, op=0xedf92e72
*** Auth success
*** Sending query of size 136 to DC (149.154.167.51:443)
*** temp_auth_key_id = 0x68bde52f17b81a04, auth_key_id = 0x68bde52f17b81a04
*** sending message with sha1 31e02c8e
*** Sending message to DC2: 149.154.167.51:443 with key_id=7547440540966984196
*** write_out: 1 bytes
*** write_out: 200 bytes
*** Msg_id is 6148006026051231672 0x1409ce68
*** try write: fd = 7
*** Sent 201 bytes to 7
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 153 bytes from 9
*** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 723065392 with 152 content bytes
*** Response_len = 152
*** process_rpc_message(), len=152
*** adjusting CLOCK_MONOTONIC delta to -0.516686
*** received mesage id 55521ae909437801
*** work_container: msg_id = 6148006029499267073
*** work_new_session_created: msg_id = 6148006029499216897
*** work_msgs_ack: msg_id = 6148006029499265025
*** ack for 6148006026398610120
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 265 bytes from 9
*** outbound rpc connection from dc #4 (149.154.167.91:443) : received rpc answer 723065392 with 264 content bytes
*** Response_len = 264
*** process_rpc_message(), len=264
*** received mesage id 55521ae90a827c01
*** work_rpc_result: msg_id = 6148006029520174081
*** result for query #6148006026398610120. Size 192 bytes
*** in_ptr = 0xa7f9c04, end_ptr = 0xa7f9cc4
*** this_dc = 4
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=712, op=0x2194e0de
*** DC3 '' update: 149.154.175.100:443
*** Add log event: magic = 0x2194e0de, len = 32
*** replay_log_event: log_pos=744, op=0x2194e0de
*** DC4 '' update: 149.154.167.90:443
*** chat_size = 200, bcast_size = 100
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 153 bytes from 7
*** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 397941252 with 152 content bytes
*** Response_len = 152
*** process_rpc_message(), len=152
*** adjusting CLOCK_MONOTONIC delta to -0.581833
*** received mesage id 55521ae917857801
*** work_container: msg_id = 6148006029738473473
*** work_new_session_created: msg_id = 6148006029738423297
*** work_msgs_ack: msg_id = 6148006029738471425
*** ack for 6148006026051231672
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 265 bytes from 7
*** outbound rpc connection from dc #2 (149.154.167.51:443) : received rpc answer 397941252 with 264 content bytes
*** Response_len = 264
*** process_rpc_message(), len=264
*** received mesage id 55521ae918d4bc01
*** work_rpc_result: msg_id = 6148006029760445441
*** result for query #6148006026051231672. Size 192 bytes
*** in_ptr = 0xa7f9c04, end_ptr = 0xa7f9cc4
*** this_dc = 2
*** chat_size = 200, bcast_size = 100
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 73 bytes from 6
*** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 0 with 72 content bytes
*** Response_len = 72
*** rpc_execute: state = 3
*** Add log event: magic = 0xedf92e72, len = 272
*** replay_log_event: log_pos=776, op=0xedf92e72
*** Auth success
*** Sending query of size 136 to DC (149.154.175.50:443)
*** temp_auth_key_id = 0x7b2ac68b27d3f997, auth_key_id = 0x7b2ac68b27d3f997
*** sending message with sha1 e0055793
*** Sending message to DC1: 149.154.175.50:443 with key_id=8875124316657940887
*** write_out: 1 bytes
*** write_out: 200 bytes
*** Msg_id is 6148006026390100212 0x1409ceb8
*** try write: fd = 6
*** Sent 201 bytes to 6
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 85 bytes from 10
*** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 0 with 84 content bytes
*** Response_len = 84
*** rpc_execute: state = 1
*** writing packet: total_len = 85, len = 320
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 320 bytes
*** try write: fd = 10
*** Sent 341 bytes to 10
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 153 bytes from 6
*** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 668203415 with 152 content bytes
*** Response_len = 152
*** process_rpc_message(), len=152
*** adjusting CLOCK_MONOTONIC delta to -0.428066
*** received mesage id 55521ae955a5c401
*** work_container: msg_id = 6148006030780777473
*** work_new_session_created: msg_id = 6148006030780719105
*** work_msgs_ack: msg_id = 6148006030780775425
*** ack for 6148006026390100212
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 265 bytes from 6
*** outbound rpc connection from dc #1 (149.154.175.50:443) : received rpc answer 668203415 with 264 content bytes
*** Response_len = 264
*** process_rpc_message(), len=264
*** received mesage id 55521ae956891c01
*** work_rpc_result: msg_id = 6148006030795676673
*** result for query #6148006026390100212. Size 192 bytes
*** in_ptr = 0xa7f9c04, end_ptr = 0xa7f9cc4
*** this_dc = 1
*** chat_size = 200, bcast_size = 100
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 656 bytes from 10
*** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 0 with 652 content bytes
*** Response_len = 652
*** rpc_execute: state = 2
*** writing packet: total_len = 99, len = 376
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 376 bytes
*** try write: fd = 10
*** Sent 397 bytes to 10
*** temp_auth_key_id = 0x584867b02b191a30, auth_key_id = 0x584867b02b191a30
*** sending message with sha1 d8dd39a6
*** Sending message to DC4: 149.154.167.90:443 with key_id=6361448479995796016
*** write_out: 1 bytes
*** write_out: 104 bytes
*** try write: fd = 9
*** Sent 105 bytes to 9
*** temp_auth_key_id = 0x68bde52f17b81a04, auth_key_id = 0x68bde52f17b81a04
*** sending message with sha1 be1822ea
*** Sending message to DC2: 149.154.167.51:443 with key_id=7547440540966984196
*** write_out: 1 bytes
*** write_out: 104 bytes
*** try write: fd = 7
*** Sent 105 bytes to 7
*** temp_auth_key_id = 0x7b2ac68b27d3f997, auth_key_id = 0x7b2ac68b27d3f997
*** sending message with sha1 6f64acbb
*** Sending message to DC1: 149.154.175.50:443 with key_id=8875124316657940887
*** write_out: 1 bytes
*** write_out: 104 bytes
*** try write: fd = 6
*** Sent 105 bytes to 6
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 73 bytes from 10
*** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 0 with 72 content bytes
*** Response_len = 72
*** rpc_execute: state = 3
*** Add log event: magic = 0xedf92e72, len = 272
*** replay_log_event: log_pos=1048, op=0xedf92e72
*** Auth success
*** Sending query of size 136 to DC (149.154.171.5:443)
*** temp_auth_key_id = 0x90f82bbf3a600374, auth_key_id = 0x90f82bbf3a600374
*** sending message with sha1 fe72bb29
*** Sending message to DC5: 149.154.171.5:443 with key_id=-8000596637705567372
*** write_out: 1 bytes
*** write_out: 200 bytes
*** Msg_id is 6148006032253074600 0x1409dbe0
*** try write: fd = 10
*** Sent 201 bytes to 10
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 153 bytes from 10
*** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 979370868 with 152 content bytes
*** Response_len = 152
*** process_rpc_message(), len=152
*** adjusting CLOCK_MONOTONIC delta to -0.697143
*** received mesage id 55521aeb1bedb801
*** work_container: msg_id = 6148006038402349057
*** work_new_session_created: msg_id = 6148006038402285569
*** work_msgs_ack: msg_id = 6148006038402347009
*** ack for 6148006032253074600
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 265 bytes from 10
*** outbound rpc connection from dc #5 (149.154.171.5:443) : received rpc answer 979370868 with 264 content bytes
*** Response_len = 264
*** process_rpc_message(), len=264
*** received mesage id 55521aeb1cf17801
*** work_rpc_result: msg_id = 6148006038419372033
*** result for query #6148006032253074600. Size 192 bytes
*** in_ptr = 0xa7f9c04, end_ptr = 0xa7f9cc4
*** this_dc = 5
*** chat_size = 200, bcast_size = 100
*** temp_auth_key_id = 0x90f82bbf3a600374, auth_key_id = 0x90f82bbf3a600374
*** sending message with sha1 7bf5231d
*** Sending message to DC5: 149.154.171.5:443 with key_id=-8000596637705567372
*** write_out: 1 bytes
*** write_out: 104 bytes
*** try write: fd = 10
*** Sent 105 bytes to 10
*** Try read. Fd = 8
*** try read: fd = 8
*** Received 0 bytes from 8
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 0 bytes from 9
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 0 bytes from 7
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 0 bytes from 6
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 0 bytes from 10
*** Try read. Fd = 8
*** try read: fd = 8
*** Received 0 bytes from 8
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 0 bytes from 9
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 0 bytes from 7
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 0 bytes from 6
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 0 bytes from 10
*** Try read. Fd = 8
*** try read: fd = 8
*** Received 0 bytes from 8
*** Try read. Fd = 9
*** try read: fd = 9
*** Received 0 bytes from 9
*** Try read. Fd = 7
*** try read: fd = 7
*** Received 0 bytes from 7
*** Try read. Fd = 6
*** try read: fd = 6
*** Received 0 bytes from 6
*** Try read. Fd = 10
*** try read: fd = 10
*** Received 0 bytes from 10
*** Try read. Fd = 8
*** try read: fd = 8
*** Received 0 bytes from 8
*** outbound rpc connection from dc #3 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 8
*** fail_connection: write_error Connection refused
*** Lost connection to server... 174.140.142.6:80
*** write_out: 1 bytes
*** outbound rpc connection from dc #3 becomed ready
*** c_state = 1

telegram-cli: tgl/mtproto-client.c:1247: tc_becomes_ready: Assertion `0' failed.
SIGNAL received
hbin/telegram-cli(print_backtrace+0x30)[0x8083820]
bin/telegram-cli(termination_signal_handler+0x7d)[0x80838bd]
[0xb76ee400]
[0xb76ee424]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x4f)[0xb72db1ef]
/lib/i386-linux-gnu/libc.so.6(abort+0x175)[0xb72de835]
/lib/i386-linux-gnu/libc.so.6(+0x27095)[0xb72d4095]
/lib/i386-linux-gnu/libc.so.6(+0x27147)[0xb72d4147]
bin/telegram-cli[0x80990a0]
bin/telegram-cli[0x80cd883]
/usr/lib/libevent-2.0.so.5(event_base_loop+0x209)[0xb76a2d39]
bin/telegram-cli(net_loop+0xc8)[0x8084c28]
bin/telegram-cli(loop+0x1bf)[0x808640f]
bin/telegram-cli(inner_main+0x17)[0x8082fd7]
bin/telegram-cli(main+0x2df)[0x80820cf]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb72c64d3]
bin/telegram-cli[0x80821c5]

@wazzzy
Copy link

wazzzy commented May 19, 2015

Telegram-cli version 1.3.1, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details.
Telegram-cli uses libtgl version 2.0.1
I: config dir=[/home/wasim/.telegram-cli]
*** Couldn't open public key file: /etc/telegram-cli/server.pub
*** Can not load key /etc/telegram-cli/server.pub
*** adjusting CLOCK_MONOTONIC delta to 0.223533
*** adjusting CLOCK_MONOTONIC delta to 0.416734
*** adjusting CLOCK_MONOTONIC delta to 0.411324
*** adjusting CLOCK_MONOTONIC delta to -0.343252
*** adjusting CLOCK_MONOTONIC delta to -0.340851
*** error for query #6150529609295264768: #401 AUTH_KEY_UNREGISTERED

telegram-cli: tgl/queries.c:3958: tgl_started_cb: Assertion `success' failed.
SIGNAL received
h./bin/telegram-cli(print_backtrace+0x20)[0x468720]
./bin/telegram-cli(termination_signal_handler+0x64)[0x4687a4]
/lib/x86_64-linux-gnu/libc.so.6(+0x36d40)[0x7f3ef09c0d40]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39)[0x7f3ef09c0cc9]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)[0x7f3ef09c40d8]
/lib/x86_64-linux-gnu/libc.so.6(+0x2fb86)[0x7f3ef09b9b86]
/lib/x86_64-linux-gnu/libc.so.6(+0x2fc32)[0x7f3ef09b9c32]
./bin/telegram-cli[0x485034]
./bin/telegram-cli[0x48a3de]
./bin/telegram-cli(tglq_query_error+0x155)[0x491905]
./bin/telegram-cli[0x482ee2]
./bin/telegram-cli[0x4a39fb]
/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5(event_base_loop+0x754)[0x7f3ef1bdff24]
./bin/telegram-cli(net_loop+0xa4)[0x469844]
./bin/telegram-cli(loop+0x17f)[0x46ab3f]
./bin/telegram-cli(main+0x291)[0x467091]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f3ef09abec5]
./bin/telegram-cli[0x46718b]

@sweet88unimas
Copy link

I got the same problem like this one but I already have #define TG_SERVER_3 "149.154.175.100" in my tgl/tgl.h. Do I need to change the IP address to something else other than this?

@everhopingandwaiting
Copy link

   `./telegram-cli -k ../tg-server.pub  -vvvvvvvvvvvvvvvv 4 -W`

################################################################

Telegram-cli version 1.3.1, Copyright (C) 2013-2015 Vitaly Valtman
Telegram-cli comes with ABSOLUTELY NO WARRANTY; for details type show_license'. This is free software, and you are welcome to redistribute it under certain conditions; typeshow_license' for details.
Telegram-cli uses libtgl version 2.0.2
Telegram-cli uses libpython version 2.7.10
I: config dir=[/home/pi/.telegram-cli]
*** added 32 bytes of real entropy to secure random numbers seed
*** public key '../tg-server.pub' loaded successfully
*** public key '/etc/telegram-cli/server.pub' loaded successfully
*** public key 'tg-server.pub' loaded successfully
*** Add log event: magic = 0xf96feb32, len = 32
*** replay_log_event: log_pos=0, op=0xf96feb32
*** DC1 '' update: 149.154.175.50:443
*** Add log event: magic = 0xf96feb32, len = 32
*** replay_log_event: log_pos=32, op=0xf96feb32
*** DC2 '' update: 149.154.167.51:443
*** Add log event: magic = 0xf96feb32, len = 32
*** replay_log_event: log_pos=64, op=0xf96feb32
*** DC3 '' update: 149.154.175.100:443
*** Add log event: magic = 0xf96feb32, len = 32
*** replay_log_event: log_pos=96, op=0xf96feb32
*** DC4 '' update: 149.154.167.91:443
*** Add log event: magic = 0xf96feb32, len = 32
*** replay_log_event: log_pos=128, op=0xf96feb32
*** DC5 '' update: 149.154.171.5:443
*** Add log event: magic = 0x9e83dbdc, len = 8
*** replay_log_event: log_pos=160, op=0x9e83dbdc
*** Starting netloop
*** write_out: 1 bytes
*** Starting authorization for DC #1: 149.154.175.50:443
*** write_out: 1 bytes
*** Starting authorization for DC #2: 149.154.167.51:443
*** write_out: 1 bytes
*** Starting authorization for DC #3: 149.154.175.100:443
*** write_out: 1 bytes
*** Starting authorization for DC #4: 149.154.167.91:443
*** write_out: 1 bytes
*** Starting authorization for DC #5: 149.154.171.5:443
*** outbound rpc connection from dc #2 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 7
*** Sent 42 bytes to 7
*** Try read. Fd = 7
*** try read: fd = 7
*** fail_connection: read_error Connection reset by peer
*** Lost connection to server... 149.154.167.51:80
*** write_out: 1 bytes
*** outbound rpc connection from dc #1 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 6
*** Sent 42 bytes to 6
*** outbound rpc connection from dc #3 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 8
*** Sent 42 bytes to 8
*** Try read. Fd = 8
*** try read: fd = 8
*** fail_connection: read_error Connection reset by peer
** *** Lost connection to server... 149.154.175.100:80 **
*** write_out: 1 bytes
*** outbound rpc connection from dc #4 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 9
*** Sent 42 bytes to 9
*** Try read. Fd = 6
*** try read: fd = 6
*** fail_connection: read_error Connection reset by peer
*** Lost connection to server... 149.154.175.50:80
*** write_out: 1 bytes
*** outbound rpc connection from dc #5 becomed ready
*** writing packet: total_len = 10, len = 20
*** write_out: 1 bytes
*** write_out: 20 bytes
*** write_out: 20 bytes
*** try write: fd = 10
*** Sent 42 bytes to 10
*** Try read. Fd = 10
*** try read: fd = 10
*** fail_connection: read_error Connection reset by peer
*** Lost connection to server... 149.154.171.5:80
*** write_out: 1 bytes
*** outbound rpc connection from dc #3 becomed ready
*** c_state = 1

           > telegram-cli: tgl/mtproto-client.c:1242: tc_becomes_ready: Assertion `0' failed.
          SIGNAL received

###########################################################################################
the server is going wrong?

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

6 participants