sakarie9 / TG-EFB-QQ-Docker

QQ和Telegram的双向消息转发
GNU Affero General Public License v3.0
195 stars 17 forks source link

VDS中上报服务器失败 #14

Closed StirrerCymbal5zn closed 2 years ago

StirrerCymbal5zn commented 3 years ago

前几天是是启动成功的,后来被风控了,过了几天干脆bot完全没反应了,重新启动docker也是同样的上报服务器错误。试着重装了一次,依旧如此。 efb似乎是启动成功的

root@iugiu72023:~/TG-EFB-QQ-Docker/efb/profiles/default/blueset.telegram# docker logs efb sleep for 20sec 2021-11-21 03:59:45,415 [Level 99]: ehforwarderbot.main (main.init; main.py:129) Initializing slave milkice.qq... 2021-11-21 03:59:45,863 [Level 99]: ehforwarderbot.main (main.init; main.py:137) Slave channel QQ Slave (milkice.qq) # Default profile is initialized. 2021-11-21 03:59:45,864 [Level 99]: ehforwarderbot.main (main.init; main.py:142) Initializing master blueset.telegram... 2021-11-21 03:59:46,123 [Level 99]: ehforwarderbot.main (main.init; main.py:149) Master channel Telegram Master (blueset.telegram) # Default profile is initialized. 2021-11-21 03:59:46,124 [Level 99]: ehforwarderbot.main (main.init; main.py:155) All channels initialized. 2021-11-21 03:59:46,124 [Level 99]: ehforwarderbot.main (main.init; main.py:169) All middlewares are initialized. [21/Nov/2021:03:59:46] ENGINE Bus STARTING [21/Nov/2021:03:59:46] ENGINE Started monitor thread 'Autoreloader'. [21/Nov/2021:03:59:46] ENGINE Serving on http://127.0.0.1:8000 [21/Nov/2021:03:59:46] ENGINE Bus STARTED

GOCQ已经开启了debug模式 root@iugiu72023:~/TG-EFB-QQ-Docker/efb/profiles/default/blueset.telegram# docker logs gocq

[2021-11-21 11:59:23] [INFO]: 用户交流群: 721829413 [2021-11-21 11:59:23] [INFO]: 将使用 device.json 内的设备信息运行Bot.

[2021-11-21 11:59:23] [INFO]: 使用协议: iPad [2021-11-21 11:59:27] [INFO]: Protocol -> connect to server: 120.232.130.20:80 [2021-11-21 11:59:31] [INFO]: 收到服务器地址更新通知, 根据配置文件已忽略. [2021-11-21 11:59:35] [INFO]: 登录成功 欢迎使用: XX

[2021-11-21 11:59:35] [INFO]: 共加载 37 个好友.

[2021-11-21 11:59:38] [INFO]: 共加载 17 个群.

[2021-11-21 11:59:38] [INFO]: 资源初始化完成, 开始处理信息.

[2021-11-21 11:59:38] [INFO]: HTTP POST上报器已启动: 127.0.0.1:8000

[2021-11-21 11:59:38] [INFO]: CQ HTTP 服务器已启动: 127.0.0.1:5700 [2021-11-21 11:59:39] [INFO]: 当前有更新的 go-cqhttp 可供更新, 请前往 https://github.com/Mrs4s/go-cqhttp/releases 下载. [2021-11-21 11:59:39] [INFO]: 当前版本: v1.0.0-beta7-fix2 最新版本: v1.0.0-beta8-fix1 [2021-11-21 11:59:43] [WARNING]: 上报Event到 HTTP 服务器 127.0.0.1:8000 时出现错误: Post "http://127.0.0.1:8000": dial tcp 127.0.0.1:8000: connect: connection refused 将重试. [2021-11-21 11:59:43] [WARNING]: 上报Event数据 {"interval":5000,"meta_event_type":"heartbeat","post_type":"meta_event","self_id":923266670,"status":{"app_enabled":true,"app_good":true,"app_initialized":true,"good":true,"online":true,"plugins_good":null,"stat":{"packet_received":49,"packet_sent":43,"packet_lost":0,"message_received":0,"message_sent":0,"disconnect_times":1,"lost_times":0,"last_message_time":0}},"time":1637467183} 到 127.0.0.1:8000 失败: Post "http://127.0.0.1:8000": dial tcp 127.0.0.1:8000: connect: connection refused

看到gocq最新版文档还是开发版不太稳定,所以没升级。是否与这个有关?

sakarie9 commented 3 years ago

03:59:46 也就是 11:59:46 的时候efb初始化完成 然后 11:59:43 的时候gocq上报心跳包自然是会失败的,等efb完全启动之后就应该没有错误了

bot无反应的问题或许可以试试在本地部署gocq,等bot行为正常之后把 device.json 丢到服务器上

gocq的beta8改了配置文件,还是等等再更新

StirrerCymbal5zn commented 3 years ago

03:59:46 也就是 11:59:46 的时候efb初始化完成 然后 11:59:43 的时候gocq上报心跳包自然是会失败的,等efb完全启动之后就应该没有错误了

bot无反应的问题或许可以试试在本地部署gocq,等bot行为正常之后把 device.json 丢到服务器上

gocq的beta8改了配置文件,还是等等再更新

现在可以正常接收群消息。但是在消息接收依旧会间断收到报错 [2021-11-21 12:47:41] [INFO]: 收到群 1 内 2 的消息: [CQ:image,file=724251e73a956d6159cbcf6440c9fd07.image,subType=0] (-754090786) [2021-11-21 12:47:46] [WARNING]: 上报Event到 HTTP 服务器 127.0.0.1:8000 时出现错误: Post "http://127.0.0.1:8000": context deadline exceeded 将重试. [2021-11-21 12:47:46] [WARNING]: 上报Event数据 {"anonymous":null,"font":0,"group_id": ,"message":[{"data":{"file":"724251e73a956d6159cbcf6440c9fd07.image","subType":"0","url":"https://gchat.qpic.cn/gchatpic_new/9006246/853472923-2637238132-724251E73A956D6159CBCF6440C9FD07/0?term=3"},"type":"image"}],"message_id":-754090786,"message_seq":134347,"message_type":"group","post_type":"message","raw_message":"[CQ:image,file=724251e73a956d6159cbcf6440c9fd07.image,subType=0]","self_id":923266670,"sender":{"age":0,"area":"","card":"2","level":"","nickname":"33","role":"member","sex":"unknown","title":"","user_id": },"sub_type":"normal","time":1637470061,"user_id": } 到 127.0.0.1:8000 失败: Post "http://127.0.0.1:8000": context deadline exceeded

最底下报错会直接刷屏:如图

Snipaste_2021-11-21_15-00-39

StirrerCymbal5zn commented 3 years ago

这属于被风控 Snipaste_2021-11-21_15-04-33 了吗

sakarie9 commented 3 years ago

试试发111或者11呢,我记得风控的时候发不出三个字符以上的群消息,私聊应该正常

StirrerCymbal5zn commented 3 years ago

试试发111或者11呢,我记得风控的时候发不出三个字符以上的群消息,私聊应该正常

只能发数字和英文,汉字一个字都发不了。

sakarie9 commented 3 years ago

这就是风控了,挂几天再看看吧

StirrerCymbal5zn commented 3 years ago

这就是风控了,挂几天再看看吧

好的,请问上面刷屏的一串上报Event到 HTTP 服务器 127.0.0.1:8000 时出现错误需要在意吗

sakarie9 commented 3 years ago

这个我猜是风控的问题但是不好说,还是得等到解除了再看看

StirrerCymbal5zn commented 3 years ago

这个我猜是风控的问题但是不好说,还是得等到解除了再看看

今天刚解除风控,说了几句话又被控了...除了等待没什么办法吗?这样也无法正常使用...

sakarie9 commented 3 years ago

没办法只能等了,这个风控的触发条件和解除条件都未知,全看tx心情💩

StirrerCymbal5zn commented 3 years ago

docker logs efb

顺便一问,这个项目不支持消息回复吗,config配置里确定是有extra-reply-data: true的

Snipaste_2021-11-24_11-04-12

sakarie9 commented 3 years ago

要先绑定群组然后在绑定的群组内使用tg的回复,直接给bot发回复会被当成给被回复的人发消息

react确实是不能用的