huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.24k stars 203 forks source link

Wechat keep asking for version upgradation after QR code scanning;unable to login #108

Open karimmd opened 3 years ago

karimmd commented 3 years ago

Hi, I installed wechat for docker using the following command. It is opening but I am unable to login.

image

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | DOCHAT_WECHAT_VERSION=2.9.0.114 bash
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|

      https://github.com/huan/docker-wechat

                +--------------+
               /|             /|
              / |            / |
             *--+-----------*  |
             |  |           |  |
             |  |   盒装    |  |
             |  |   微信    |  |
             |  +-----------+--+
             | /            | /
             |/             |/
             *--------------*

      DoChat /dɑɑˈtʃæt/ (Docker-weChat) is:

      📦 a Docker image
      🤐 for running PC Windows WeChat
      💻 on your Linux desktop
      💖 by one-line of command

🚀 Pulling the docker image...

2.9.0.114: Pulling from zixia/wechat
Digest: sha256:4b9598367a63becd1f3630812056e655eda08c3e9e952ac866a13d5964fbda2d
Status: Image is up to date for zixia/wechat:2.9.0.114
docker.io/zixia/wechat:2.9.0.114

🚀 Pulling the docker image done.
🚀 Starting DoChat /dɑɑˈtʃæt/ ...

[DoChat] 盒装微信 v0.11.4
Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ...
Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ...
[DoChat] WeChat 2.9.0.114
[DoChat] Starting...
[1229/103720:INFO:exception_record.cc(518)] [QB]Process ID: 47 Type: 1
[1229/103720:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 8
huan commented 3 years ago

It seems that we should upgrade the WeChat version in DoChat next month...

I hope that I could be able to write a script so that the DoChat will upgrade with the new version whenever the WeChat upgraded.

karimmd commented 3 years ago

Thanks for the reply. It seems like a very good initiatives for people like us who do not want to install wine to use the windows version of wechat. Even if there would be a way to access the directory of the docker image through ssh, I guess we could try to update the wechat by downloading the exe file and installing within that system but again I do understand that would be a hassle as docker does not allow persistent storage (from my personal understanding) so once closing the image may need us to do the entire process again. No worries we will wait until you would update with the latest wechat. Thanks again for the contribution. Its not so convenient to use webchat version of wechat in linux (electron-wechat).

sqybi commented 3 years ago

I didn't see this window, but my WeChat also exited after scanned the QR code.

Command:

alias wechat="docker run --name DoChat --rm -i -v \"$HOME/DoChat/WeChat Files/\":\"/home/user/WeChat Files/\" -v \"$HOME/DoChat/Applcation Data\":\"/home/user/.wine/drive_c/users/user/Application Data/\" -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY -e XMODIFIERS=@im=ibus -e GTK_IM_MODULE=ibus -e QT_IM_MODULE=ibus -e GID=\"$(id -g)\" -e UID=\"$(id -u)\" --ipc=host --privileged zixia/wechat"

Logs:

[DoChat] 盒装微信 v0.10.22
[DoChat] WeChat 2.9.0.114
[DoChat] Starting...
[DoChat] Found new version
[DoChat] WeChat.exe exited

System:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal

$ uname -a
Linux sqybi-PC-Ubuntu 5.4.0-59-generic #65-Ubuntu SMP Thu Dec 10 12:01:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

$ docker --version
Docker version 19.03.8, build afacb8b7f0

Not sure if they are the same problem...

kngharv commented 3 years ago

It seems that we should upgrade the WeChat version in DoChat next month...

I hope that I could be able to write a script so that the DoChat will upgrade with the new version whenever the WeChat upgraded.

In the meantime, is there a way to make WeChat upgrade a bit easier for the average Joe (i.e. those who has basic understanding of dockerfile and wine) ?

huan commented 3 years ago

@kngharv Sorry but I'm afraid that it has not very easy for the average Joe to update the DoChat system because it's very tricky.

However, if you are interested to try to upgrade it, I'd like to help. Please feel free to let me know if you have any questions.