ehForwarderBot / efb-wechat-comwechat-slave

efb-wechat-comwechat-slave
31 stars 13 forks source link

comwechat启动错误 #18

Closed RezaFeng closed 1 year ago

RezaFeng commented 1 year ago

root@VM-20-2-ubuntu:~/efb-wechat-comwechat-slave# docker logs comwechat --2023-01-14 14:51:16-- https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.0.5/3.7.0.30-0.0.5.zip 正在连接 10.0.20.2:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 302 Found 位置:https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/26741169-111b-4e78-94b1-b261215d71a1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230114T065116Z&X-Amz-Expires=300&X-Amz-Signature=9ee9237083d302468b72f5e15d37dc4379f9754187bfdd0afa71e50732bc3f7d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.0.5.zip&response-content-type=application%2Foctet-stream [跟随至新的 URL] --2023-01-14 14:51:16-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/26741169-111b-4e78-94b1-b261215d71a1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230114T065116Z&X-Amz-Expires=300&X-Amz-Signature=9ee9237083d302468b72f5e15d37dc4379f9754187bfdd0afa71e50732bc3f7d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.0.5.zip&response-content-type=application%2Foctet-stream 正在连接 10.0.20.2:7890... 已连接。 已发出 Proxy 请求,正在等待回应... 200 OK 长度:309756 (302K) [application/octet-stream] 正在保存至: “comwechat.zip”

 0K .......... .......... .......... .......... .......... 16% 1.44M 0s
50K .......... .......... .......... .......... .......... 33% 3.48M 0s

100K .......... .......... .......... .......... .......... 49% 7.39M 0s 150K .......... .......... .......... .......... .......... 66% 8.07M 0s 200K .......... .......... .......... .......... .......... 82% 8.93M 0s 250K .......... .......... .......... .......... .......... 99% 10.8M 0s 300K .. 100% 4.65T=0.07s

2023-01-14 14:51:17 (4.19 MB/s) - 已保存 “comwechat.zip” [309756/309756])

Archive: comwechat.zip creating: comwechat/http/ inflating: comwechat/http/SWeChatRobot.dll
inflating: comwechat/http/wxDriver.dll
inflating: comwechat/http/wxDriver.lib
inflating: comwechat/http/wxDriver.py
inflating: comwechat/http/wxDriver64.dll
inflating: comwechat/http/wxDriver64.lib
creating: comwechat/com/ inflating: comwechat/com/CWeChatRobot.exe
inflating: comwechat/com/DWeChatRobot.dll
inflating: comwechat/com/wxRobot.py
/usr/bin/xauth: file /root/.Xauthority does not exist

New Xtigervnc server 'localhost.localdomain:5 (root)' on port 5905 for display :5. Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd localhost.localdomain:5 to connect to the VNC server.

ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: 没有那个文件或目录 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: 没有那个文件或目录 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: 没有那个文件或目录 ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: 没有那个文件或目录 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: 没有那个文件或目录 ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: 没有那个文件或目录 ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: 没有那个文件或目录 ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: 没有那个文件或目录 ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default ---All in one 微信 ComRobot 容器--- 2023-01-14 14:51:16 启动容器中... 等待 5 秒再 hook 2023-01-14 14:52:43 正在退出容器... 2023-01-14 14:52:43 退出微信... 2023-01-14 14:52:43 退出Hook程序... 2023-01-14 14:52:43 退出VNC... 2023-01-14 14:52:43 感谢使用.

0honus0 commented 1 year ago

这边没有遇到过类似的问题,前面也有人提了一个,但我对docker也不太了解,暂时无法排错,我这边有时候多重启几次就好了

0honus0 commented 1 year ago

https://github.com/0honus0/efb-wechat-comwechat-slave/issues/17

RezaFeng commented 1 year ago

2023-01-15 15:40:05,892 - ehforwarderbot.main - Level 99 - Initializing slave honus.comwechat... 2023-01-15 15:40:05,892 [Level 99]: ehforwarderbot.main (main.init; main.py:129) Initializing slave honus.comwechat... 2023-01-15 15:40:05,893 - comwechat - INFO - ComWeChat Slave Channel initialized. 2023-01-15 15:40:05,893 - comwechat - INFO - Version: 1.0.2 Traceback (most recent call last): File "/app/venv/bin/ehforwarderbot", line 8, in sys.exit(main()) ^^^^^^ File "/app/venv/lib/python3.11/site-packages/ehforwarderbot/main.py", line 335, in main init(conf) File "/app/venv/lib/python3.11/site-packages/ehforwarderbot/main.py", line 135, in init coordinator.add_channel(cls(instance_id=instance_id)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/venv/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 68, in init self.wxid = self.bot.GetSelfInfo()["data"]["wxId"] ^^^^^^^^^^^^^^^^^^^^^^ File "/app/venv/lib/python3.11/site-packages/wechatrobot/Api.py", line 16, in GetSelfInfo return self.post(WECHAT_GET_SELF_INFO , GetSelfInfoBody(params)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/venv/lib/python3.11/site-packages/wechatrobot/Api.py", line 231, in post return json.loads(requests.post( f"http://127.0.0.1:{self.port}/api/?type={type}", data = params.json()).content.decode("utf-8"),strict=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/init.py", line 359, in loads return cls(kw).decode(s) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

这个报错什么意思? 我已经在/data/ehforwarderbot/blueset.telegram和/data/ehforwarderbot/honus.comwechat下新建了config.yaml文件 其中/data/ehforwarderbot/honus.comwechat的内容为 dir: "/root/wechat/files"

RezaFeng commented 1 year ago

是否视hounus.comwechat下的配置文件不对