Unable to login
Hi I am unable to perform a login to WeChat.
- I am using the current docker image of the agent.
- There is also an issue in writing the log file.
- Running on a Linux node.
- Tested it with WeChat bridge binary and docker compose.
- Is the component still up to date and fully functioning?
Matrix-wechat-agent log
matrix-wechat-agent | time="2023-10-22 02:19:52" level=info msg="No more files."
matrix-wechat-agent | Could not create log file: No such file or directory
matrix-wechat-agent | time="2023-10-22 02:19:52" level=info msg="Set wechat version to 3.8.1.26"
matrix-wechat-agent | [I] <MMKV.cpp:156::initialize> version v1.2.7 page size:4096
matrix-wechat-agent | [I] <MMKV.cpp:198::initializeMMKV> root dir: C:\users\user\Application Data\Tencent\WeChat\XPlugin\Info\
matrix-wechat-agent | COULD NOT CREATE LOGFILE '20231021-191952.220'!
matrix-wechat-agent | I20231021 19:19:52.440371 240 dllmain.cpp:13] Robot Start, isWxLogin: 0, pid: 220
matrix-wechat-agent | I20231021 19:20:03.717535 224 dllmain.cpp:32] Robot Stop
matrix-wechat-agent | time="2023-10-22 02:20:53" level=info msg="No more files."
matrix-wechat-agent | Could not create log file: No such file or directory
matrix-wechat-agent | time="2023-10-22 02:20:54" level=info msg="Set wechat version to 3.8.1.26"
matrix-wechat-agent | [I] <MMKV.cpp:156::initialize> version v1.2.7 page size:4096
matrix-wechat-agent | [I] <MMKV.cpp:198::initializeMMKV> root dir: C:\users\user\Application Data\Tencent\WeChat\XPlugin\Info\
matrix-wechat-agent | COULD NOT CREATE LOGFILE '20231021-192053.452'!
matrix-wechat-agent | I20231021 19:20:53.631712 476 dllmain.cpp:13] Robot Start, isWxLogin: 0, pid: 452
matrix-wechat-agent | I20231021 19:21:06.024922 456 dllmain.cpp:32] Robot Stop
Matrix-wechat log
[Oct 21, 2023 18:20:49] [WeChat/DEBUG] Receive response message #14 is_login
[Oct 21, 2023 18:20:49] [WeChat/DEBUG] Send request message #15 connect
[Oct 21, 2023 18:20:54] [WeChat/DEBUG] Receive response message #15 connect
[Oct 21, 2023 18:20:54] [WeChat/DEBUG] Send request message #16 login_qr
[Oct 21, 2023 18:21:06] [WeChat/DEBUG] Receive response message #16 login_qr
[Oct 21, 2023 18:21:06] [WeChat/Client/@yyy:xxx.org/WARN] Failed to login with QR code: PROCESS_FAILED: Post "http://127.0.0.1:22224/api/?type=41": EOF
[Oct 21, 2023 18:21:07] [Matrix/Bot/DEBUG] req #8: PUT https://xxx.org/_matrix/client/v3/rooms/%21qakzsdfsdfdsK:xxx.org/send/m.room.message/mautrix-go_1697912467021029879_3?user_id=%40wechatbot%3Axxx.org {"msgtype":"m.notice","body":"Get QR code timed out. Please restart the login."}
- It's still functioning normally up to this day
- The bridge docker image should be
lxduo/matrix-wechat:2 - You can use VNC to check the WeChat client status (default port and pwd refer: https://github.com/duo/matrix-wechat-agent/blob/master/Dockerfile)
Thank you for your reply. If finally found time to do some further tests. As my matrix server is hosted on an ssh only remote server, I've created an ssh tunnel on port 5905. For some reason, it seems that I have no access to the SNC server. I don't even know if I have X11 running... I do not have any graphical interface to that server, so I am afraid that this solution is not compatible to my setup. Is there another way to debug?
hosted on an ssh only remote server, I've created an ssh tunnel on port 5905
Does this means the service provider will drop non-SSH protocols packets? If not, map the agent Docker's port 5905 to a port on the host, and then ensure that there are no ACL restrictions.