clansty / Q2TG

QQ 与 Telegram 群相互转发的 bot
https://t.me/Q2TGbot
GNU Affero General Public License v3.0
748 stars 77 forks source link

setup 过程中登录 Telegram Userbot 时卡死 #148

Closed chiyuki0325 closed 11 months ago

chiyuki0325 commented 11 months ago
q2tg-q2tg-1      | [2023-11-18T16:29:06.947] [INFO] - [Running gramJS version 2.19.9]
q2tg-q2tg-1      | [2023-11-18T16:29:06.948] [DEBUG] TelegramSession - undefined - Session 不存在,创建
q2tg-q2tg-1      | [2023-11-18T16:29:06.956] [INFO] - [Connecting to 149.154.167.91:80/TCPFull...]
q2tg-q2tg-1      | [2023-11-18T16:29:08.974] [INFO] - [Connection to 149.154.167.91:80/TCPFull complete!]
q2tg-q2tg-1      | [2023-11-18T16:29:08.977] [INFO] - [Using LAYER 166 for initial connect]
q2tg-q2tg-1      | [2023-11-18T16:29:09.801] [INFO] - [Phone migrated to 5]
q2tg-q2tg-1      | [2023-11-18T16:29:10.020] [INFO] - [Reconnecting to new data center 5]
q2tg-q2tg-1      | [2023-11-18T16:29:10.268] [WARN] - [Disconnecting...]
q2tg-q2tg-1      | [2023-11-18T16:29:10.269] [INFO] - [Disconnecting from 149.154.167.91:80/TCPFull...]
q2tg-q2tg-1      | [2023-11-18T16:29:10.277] [INFO] - [connection closed]
q2tg-q2tg-1      | [2023-11-18T16:29:10.278] [INFO] - [Connecting to 91.108.56.153:80/TCPFull...]
q2tg-q2tg-1      | [2023-11-18T16:29:10.315] [INFO] - [Connection to 91.108.56.153:80/TCPFull complete!]
q2tg-q2tg-1      | [2023-11-18T16:29:10.316] [INFO] - [Using LAYER 166 for initial connect]

使用 websocket 模式也是几乎一样的结果,只是多了两条 connection closed

chiyuki0325 commented 11 months ago

这是使用 websocket 模式时的日志:

q2tg-q2tg-1      | [2023-11-18T16:38:48.493] [INFO] - [Running gramJS version 2.19.9]
q2tg-q2tg-1      | [2023-11-18T16:38:48.494] [DEBUG] TelegramSession - undefined - Session 不存在,创建
q2tg-q2tg-1      | [2023-11-18T16:38:48.504] [INFO] - [Connecting to 149.154.167.91:80/TCPObfuscated...]
q2tg-q2tg-1      | [2023-11-18T16:38:50.366] [INFO] - [Connection to 149.154.167.91:80/TCPObfuscated complete!]
q2tg-q2tg-1      | [2023-11-18T16:38:50.368] [INFO] - [Using LAYER 166 for initial connect]
q2tg-q2tg-1      | [2023-11-18T16:38:51.223] [INFO] - [Phone migrated to 5]
q2tg-q2tg-1      | [2023-11-18T16:38:51.426] [INFO] - [Reconnecting to new data center 5]
q2tg-q2tg-1      | [2023-11-18T16:38:51.632] [WARN] - [Disconnecting...]
q2tg-q2tg-1      | [2023-11-18T16:38:51.633] [INFO] - [Disconnecting from 149.154.167.91:80/TCPObfuscated...]
q2tg-q2tg-1      | [2023-11-18T16:38:51.641] [INFO] - [Connecting to 149.154.167.91:80/TCPObfuscated...]
q2tg-q2tg-1      | [2023-11-18T16:38:51.827] [INFO] - [connection closed]
q2tg-q2tg-1      | [2023-11-18T16:38:52.024] [INFO] - [Connection to 149.154.167.91:80/TCPObfuscated complete!]
q2tg-q2tg-1      | [2023-11-18T16:38:52.025] [INFO] - [Using LAYER 166 for initial connect]
q2tg-q2tg-1      | [2023-11-18T16:38:52.695] [INFO] - [Phone migrated to 5]
q2tg-q2tg-1      | [2023-11-18T16:38:52.895] [INFO] - [Reconnecting to new data center 5]
q2tg-q2tg-1      | [2023-11-18T16:38:52.896] [WARN] - [Disconnecting...]
q2tg-q2tg-1      | [2023-11-18T16:38:52.897] [INFO] - [Disconnecting from 149.154.167.91:80/TCPObfuscated...]
q2tg-q2tg-1      | [2023-11-18T16:38:52.904] [INFO] - [Connecting to 91.108.56.153:80/TCPObfuscated...]
q2tg-q2tg-1      | [2023-11-18T16:38:52.976] [INFO] - [Connection to 91.108.56.153:80/TCPObfuscated complete!]
q2tg-q2tg-1      | [2023-11-18T16:38:52.977] [INFO] - [Using LAYER 166 for initial connect]
q2tg-q2tg-1      | [2023-11-18T16:38:53.042] [WARN] - [Broken authorization key for dc 5, resetting...]
q2tg-q2tg-1      | [2023-11-18T16:38:53.044] [INFO] - [connection closed]
q2tg-q2tg-1      | [2023-11-18T16:38:53.087] [INFO] - [connection closed]
chiyuki0325 commented 11 months ago

此问题在使用 gramJS v2.15.8 的 eba16ac3480d4ae3c7d328e9da9b1109df3a9805 版本中并没有出现,在更新到 rainbowcat 后出现。我猜测可能是新版 gramJS 所导致的

clansty commented 11 months ago

我也遇到过这个问题,所以做了一些 workaround 尝试在 environment 中加入

chiyuki0325 commented 11 months ago

昨晚新的 tg 号刚被 q2tg 炸飞了,所以没法再次尝试了,issue 就先关掉吧(大雾)