tdl icon indicating copy to clipboard operation
tdl copied to clipboard

[BUG] can not login with existing official desktop clients

Open kotobukinanase opened this issue 2 years ago • 15 comments

when i login with existing official desktop clients,it shows that import successfully but i run "tdl dl" or "tdl chat",it always shows Namespace:xx and never stepforward qs

when i login with phone & code ,it can download successfully

--debug shows nothing,i can't find the problem

kotobukinanase avatar Feb 01 '23 18:02 kotobukinanase

Please copy the corresponding log (located at ~/.tdl/log).

iyear avatar Feb 02 '23 04:02 iyear

`2023-02-02 15:11:36 INFO cmd/root.go:41 Namespace {"namespace": "qs1"}

2023-02-02 15:12:07 INFO cmd/root.go:41 Namespace {"namespace": "qs1"}

2023-02-02 15:12:07 INFO ls tgc/tgc.go:48 New telegram client {"app": 2040, "mode": "desktop", "is_login": false}

2023-02-02 15:12:07 INFO ls.td.conn.mtproto.rpc rpc/engine.go:42 Initialized {"v": "v0.69.1", "conn_id": 0, "dc_id": 2, "retry_interval": "1s", "max_retries": 10}

2023-02-02 15:12:07 INFO ls.td telegram/connect.go:114 Starting {"v": "v0.69.1"}`

中略

`2023-02-02 15:12:07 DEBUG ls.td.conn.mtproto mtproto/rpc.go:29 Invoke start {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195452887223214592}

2023-02-02 15:12:07 DEBUG ls.td.conn.mtproto.rpc rpc/engine.go:87 Do called {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195452887223214592}

2023-02-02 15:12:07 DEBUG ls.td.conn.mtproto.rpc rpc/ack.go:34 Waiting for acknowledge {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "ack_id": 7195452887223214592}

2023-02-02 15:12:07 DEBUG ls.td.conn.mtproto mtproto/new_encrypted_msg.go:62 Request {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "type_id": "0xbf9459b7", "type_name": "invokeWithoutUpdates#bf9459b7", "msg_id": 7195452887223214592}

2023-02-02 15:12:08 DEBUG ls.td.conn.mtproto.rpc.retry rpc/engine.go:211 Acknowledge timed out, performing retry {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195452887223214592}`

it's "Acknowledge timed out"

kotobukinanase avatar Feb 02 '23 07:02 kotobukinanase

There's nothing wrong with these logs:(

iyear avatar Feb 02 '23 11:02 iyear

1.txt emmmmm,i can't find anything wrong,this is the whole logs....

kotobukinanase avatar Feb 02 '23 12:02 kotobukinanase

There is nothing wrong in the logs... In the past such problems were usually caused by proxy.

1080 is your local socks5 port?

iyear avatar Feb 02 '23 13:02 iyear

when i login with phone & code ,it can download successfully

it's the same proxy

maybe it's something worng with the official desktop clients?

kotobukinanase avatar Feb 02 '23 13:02 kotobukinanase

What is your client version?

If the import has been successful, it is usually not a client-side problem. This is a problem I have never encountered before😢

iyear avatar Feb 02 '23 13:02 iyear

4.5.3 X64

i moved client from "E:\Program Files\telegram desktop" to "E:\Telegram" because it seems wrong when it's a space in the path

and the import shows successfully

kotobukinanase avatar Feb 02 '23 13:02 kotobukinanase

There is no problem with the version and no problem with moving the Telegram directory.😢

iyear avatar Feb 02 '23 13:02 iyear

Try reinstalling Telegram, try a different computer. I may not be able to help much on this issue...

iyear avatar Feb 02 '23 13:02 iyear

`2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.rpc.retry rpc/engine.go:211 Acknowledge timed out, performing retry {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195546968111664372}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/new_encrypted_msg.go:62 Request {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "type_id": "0xbf9459b7", "type_name": "invokeWithoutUpdates#bf9459b7", "msg_id": 7195546968111664372}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.read mtproto/read.go:141 Read loop done {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "reason": "read: read: read intermediate: read length: EOF", "reasonVerbose": "read:\n github.com/gotd/td/internal/mtproto.(*Conn).readLoop\n github.com/gotd/[email protected]/internal/mtproto/read.go:193\n - read:\n github.com/gotd/td/transport.(*connection).Recv\n github.com/gotd/[email protected]/transport/connection.go:70\n - read intermediate:\n github.com/gotd/td/internal/proto/codec.Intermediate.Read\n github.com/gotd/[email protected]/internal/proto/codec/intermediate.go:73\n - read length:\n github.com/gotd/td/internal/proto/codec.readLen\n github.com/gotd/[email protected]/internal/proto/codec/codec.go:35\n - EOF"}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.group tdsync/cancel_group.go:48 Task stopped {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "task": "readLoop", "error": "read: read: read intermediate: read length: EOF", "errorVerbose": "read:\n github.com/gotd/td/internal/mtproto.(*Conn).readLoop\n github.com/gotd/[email protected]/internal/mtproto/read.go:193\n - read:\n github.com/gotd/td/transport.(*connection).Recv\n github.com/gotd/[email protected]/transport/connection.go:70\n - read intermediate:\n github.com/gotd/td/internal/proto/codec.Intermediate.Read\n github.com/gotd/[email protected]/internal/proto/codec/intermediate.go:73\n - read length:\n github.com/gotd/td/internal/proto/codec.readLen\n github.com/gotd/[email protected]/internal/proto/codec/codec.go:35\n - EOF", "elapsed": "1.682867s"}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/rpc.go:29 Invoke start {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195546973089323168}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.rpc rpc/engine.go:87 Do called {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195546973089323168}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.rpc rpc/ack.go:34 Waiting for acknowledge {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "ack_id": 7195546973089323168}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/new_encrypted_msg.go:62 Request {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "type_id": "0x58e4a740", "type_name": "rpc_drop_answer#58e4a740", "msg_id": 7195546973089323168}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.group tdsync/cancel_group.go:48 Task stopped {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "task": "pingLoop", "error": "ping loop: context canceled", "errorVerbose": "ping loop:\n github.com/gotd/td/internal/mtproto.(*Conn).pingLoop\n github.com/gotd/[email protected]/internal/mtproto/ping.go:107\n - context canceled", "elapsed": "1.682867s"}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/conn.go:172 Closing {"v": "v0.69.1", "conn_id": 0, "dc_id": 5}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.group tdsync/cancel_group.go:48 Task stopped {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "task": "ackLoop", "error": "acl: context canceled", "errorVerbose": "acl:\n github.com/gotd/td/internal/mtproto.(*Conn).ackLoop\n github.com/gotd/[email protected]/internal/mtproto/ack.go:33\n - context canceled", "elapsed": "1.682867s"}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.group tdsync/cancel_group.go:48 Task stopped {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "task": "saltsLoop", "error": "context canceled", "elapsed": "1.682867s"}

2023-02-02 21:17:13 INFO ls.td.conn.mtproto.rpc rpc/engine.go:271 Close called {"v": "v0.69.1", "conn_id": 0, "dc_id": 5}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/rpc.go:44 Invoke end {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195546973089323168}

2023-02-02 21:17:13 INFO ls.td.conn.mtproto.rpc rpc/engine.go:161 Failed to drop request {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195546968111664372, "error": "rpcDoRequest: retryUntilAck: send: write: write intermediate: write tcp 127.0.0.1:2520->127.0.0.1:1080: wsasend: An established connection was aborted by the software in your host machine.", "errorVerbose": "rpcDoRequest:\n github.com/gotd/td/internal/mtproto.(*Conn).Invoke\n github.com/gotd/[email protected]/internal/mtproto/rpc.go:44\n - retryUntilAck:\n github.com/gotd/td/internal/rpc.(*Engine).Do\n github.com/gotd/[email protected]/internal/rpc/engine.go:141\n - send:\n github.com/gotd/td/internal/rpc.(*Engine).retryUntilAck\n github.com/gotd/[email protected]/internal/rpc/engine.go:192\n - write:\n github.com/gotd/td/transport.(*connection).Send\n github.com/gotd/[email protected]/transport/connection.go:48\n - write intermediate:\n github.com/gotd/td/internal/proto/codec.Intermediate.Write\n github.com/gotd/[email protected]/internal/proto/codec/intermediate.go:64\n - write tcp 127.0.0.1:2520->127.0.0.1:1080: wsasend: An established connection was aborted by the software in your host machine."}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/rpc.go:44 Invoke end {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "msg_id": 7195546968111664372}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.group tdsync/cancel_group.go:48 Task stopped {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "task": "userCallback", "error": "initConnection: invoke: rpcDoRequest: context canceled", "errorVerbose": "initConnection:\n github.com/gotd/td/telegram/internal/manager.(*Conn).init\n github.com/gotd/[email protected]/telegram/internal/manager/conn.go:230\n - invoke:\n github.com/gotd/td/telegram/internal/manager.(*Conn).init.func1\n github.com/gotd/[email protected]/telegram/internal/manager/conn.go:221\n - rpcDoRequest:\n github.com/gotd/td/internal/mtproto.(*Conn).Invoke\n github.com/gotd/[email protected]/internal/mtproto/rpc.go:44\n - context canceled", "elapsed": "1.682867s"}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto.group tdsync/cancel_group.go:48 Task complete {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "task": "handleClose", "elapsed": "1.682867s"}

2023-02-02 21:17:13 DEBUG ls.td.conn.mtproto mtproto/conn.go:214 Run: end {"v": "v0.69.1", "conn_id": 0, "dc_id": 5}

2023-02-02 21:17:13 DEBUG ls.td.conn manager/conn.go:125 Connection dead {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "error": "group: task readLoop: read: read: read intermediate: read length: EOF", "errorVerbose": "group:\n github.com/gotd/td/internal/mtproto.(*Conn).Run\n github.com/gotd/[email protected]/internal/mtproto/conn.go:214\n - task readLoop:\n github.com/gotd/td/internal/tdsync.(*LogGroup).Go.func1\n github.com/gotd/[email protected]/internal/tdsync/log_group.go:48\n - read:\n github.com/gotd/td/internal/mtproto.(*Conn).readLoop\n github.com/gotd/[email protected]/internal/mtproto/read.go:193\n - read:\n github.com/gotd/td/transport.(*connection).Recv\n github.com/gotd/[email protected]/transport/connection.go:70\n - read intermediate:\n github.com/gotd/td/internal/proto/codec.Intermediate.Read\n github.com/gotd/[email protected]/internal/proto/codec/intermediate.go:73\n - read length:\n github.com/gotd/td/internal/proto/codec.readLen\n github.com/gotd/[email protected]/internal/proto/codec/codec.go:35\n - EOF"}

2023-02-02 21:17:13 INFO ls.td telegram/connect.go:75 Restarting connection {"v": "v0.69.1", "error": "group: task readLoop: read: read: read intermediate: read length: EOF", "errorVerbose": "group:\n github.com/gotd/td/internal/mtproto.(*Conn).Run\n github.com/gotd/[email protected]/internal/mtproto/conn.go:214\n - task readLoop:\n github.com/gotd/td/internal/tdsync.(*LogGroup).Go.func1\n github.com/gotd/[email protected]/internal/tdsync/log_group.go:48\n - read:\n github.com/gotd/td/internal/mtproto.(*Conn).readLoop\n github.com/gotd/[email protected]/internal/mtproto/read.go:193\n - read:\n github.com/gotd/td/transport.(*connection).Recv\n github.com/gotd/[email protected]/transport/connection.go:70\n - read intermediate:\n github.com/gotd/td/internal/proto/codec.Intermediate.Read\n github.com/gotd/[email protected]/internal/proto/codec/intermediate.go:73\n - read length:\n github.com/gotd/td/internal/proto/codec.readLen\n github.com/gotd/[email protected]/internal/proto/codec/codec.go:35\n - EOF", "backoff": "49.08349046s"}

2023-02-02 21:17:13 INFO ls.td.conn.mtproto.rpc rpc/engine.go:42 Initialized {"v": "v0.69.1", "conn_id": 0, "dc_id": 5, "retry_interval": "1s", "max_retries": 10} ` i run it for some minutes is there something wrong?

whole logs if needed 2.txt

kotobukinanase avatar Feb 02 '23 13:02 kotobukinanase

2023/02/02 21:19:53 [Warning] [3225238326] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [transport/internet/websocket: failed to dial WebSocket > transport/internet/websocket: failed to dial to (wss://myproxyadress/): > dial tcp: lookup myproxyadress: operation was canceled] > common/retry: all retry attempts failed

i checked the proxy log,it seems........

but why can i download by other login method

kotobukinanase avatar Feb 02 '23 13:02 kotobukinanase

The logs still look fine. It looks like the connection is encountering some EOF causing retries.

The dial address in the proxy logs is myproxyaddress, it seems something wrong...

iyear avatar Feb 02 '23 15:02 iyear

myproxyaddress is correct , i edit it to hide my proxyaddress........

this time i login with phone & code ,it shows the same problem

maybe my 443 port was banned ?

but my v2rayn is working well on chrome and telegram desktop so it seems not banned

ok i give up temporarily .......

kotobukinanase avatar Feb 02 '23 16:02 kotobukinanase

emmmm there is only one way to use star powershell → try tdl login -n qs again, and it works if i try tdl dl or other command without login again, it shows the same with yesterday

kotobukinanase avatar Feb 03 '23 11:02 kotobukinanase