Skip to content

常见问题

字数
177 字
阅读时间
1 分钟

登录 UserBot 时卡死 (#148)

大致有以下日志

log
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]

然后就卡死了

如果你的 Telegram 账号是在 DC5 的话,通过在 Q2TG 的环境变量里加上下面两行可能可以解决

yaml
      - TG_INITIAL_DCID=5 
      - TG_INITIAL_SERVER=91.108.56.174