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.25k stars 204 forks source link

Nothing happens after using the command (Fedora) #141

Open OmiceyO opened 3 years ago

OmiceyO commented 3 years ago

So i use the command you gave after installing docker.

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh 

Nothing happens.

I add verbose (-vv)

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash -vv

Verbose output shows :

curl -sL https://raw.githubusercontent.com/huan/docker-wechat/master/dochat.sh | bash -vv
which () {  ( alias;
 eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
}

Edit 1 : I took your dochat.sh script itself directly and i ran it. Seems to be pulling the docker image for now. Will update again later

Edit 2 : bash dochat.sh output.

[omiceyo@fedora ~]$ bash dochat.sh 
       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|
      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...

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=zixia%2Fwechat&tag=3.3.0.115": dial unix /var/run/docker.sock: connect: permission denied

I tried with sudo.

sudo bash dochat.sh 
       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|
      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...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:5fa8575f66e9db9ec0399e57d3a60475f07c1e8a8052b5c01b85acb98912db8a
Status: Image is up to date for zixia/wechat:3.3.0.115
docker.io/zixia/wechat:3.3.0.115

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

[DoChat] 盒装微信 v0.14.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 ...
mkdir: 无法创建目录 “/home/user/.wine/drive_c/users/user/Application Data/Tencent”: 权限不够
huan commented 3 years ago

Link to:

Naunter commented 3 years ago

I'm using Ubuntu 20.04, but I think this solution should also work on Fedora:

  1. create a DoChat folder in your home directory maunally

    • you can use this command mkdir $HOME/DoChat
  2. give it a correct permission

    • command: chown $USER:$USER $HOME/DoChat
  3. retry the install command

  4. also the usage mentioned "The dochat.sh script must not be with uid 0 (root user)" , so you need to add your current user account to the docker group

    • command: usermod -aG docker $USER

我使用的是 Ubuntu 20.04,但我认为这个解决方案也应该适用于 Fedora:

  1. 手动在你的主目录中创建一个DoChat文件夹
    • 你可以使用这个命令mkdir $HOME/DoChat

2.给它一个正确的权限

3.尝试重新安装

4.还有文档里提到"The dochat.sh script must not be with uid 0 (root user)" ,所以你需要将您当前的用户添加到 docker

OmiceyO commented 3 years ago

@Naunter Hey, thanks for trying to help, sadly it did not work.

bash dochat.sh 
       ____         ____ _           _
      |  _ \  ___  / ___| |__   __ _| |_
      | | | |/ _ \| |   | '_ \ / _` | __|
      | |_| | (_) | |___| | | | (_| | |_
      |____/ \___/ \____|_| |_|\__,_|\__|
      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...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:5fa8575f66e9db9ec0399e57d3a60475f07c1e8a8052b5c01b85acb98912db8a
Status: Image is up to date for zixia/wechat:3.3.0.115
docker.io/zixia/wechat:3.3.0.115

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

[DoChat] 盒装微信 v0.14.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 ...
mkdir: 无法创建目录 “/home/user/.wine/drive_c/users/user/Application Data/Tencent”: 权限不够
lnnt commented 3 years ago

136

sudo chown -R $(whoami) $HOME/DoChat/

OmiceyO commented 3 years ago

After giving permission with the command above ( sudo chown -R $(whoami) $HOME/DoChat/ ). The output is now like shown below.

curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | 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...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:d2ce843ad3ba140a03ee129515e496ece946d1c09138832d776799728152150c
Status: Image is up to date for zixia/wechat:3.3.0.115
docker.io/zixia/wechat:3.3.0.115

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

[DoChat] 盒装微信 v0.14.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 3.3.0.115
[DoChat] Starting...
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  283
  Current serial number in output stream:  282
[DoChat] WeChat.exe exit with code 0
[DoChat] Found new version?
[DoChat] WeChat.exe exited

📦 DoChat Exited with code [0]

🐞 Bug Report: https://github.com/huan/docker-wechat/issues

Edit 1: What version of libGL is used in this WeChat container?

Edit 2 : Well i found a problem, this wechat docker will not launch if i am using my nvidia GPU, I had to turn it off completely to use my iGPU which is intel with mesa drivers. It launched fine, i logged in. But sadly i could not see any of my messages. I get errors about "Web crashed".

!!! If you get the same problem with WeChat.exe exited (Like my output above) Try turning your gpu off maybe it will work.

lawxen commented 2 years ago

After giving permission with the command above ( sudo chown -R $(whoami) $HOME/DoChat/ ). The output is now like shown below.

curl -sL https://gitee.com/mirrors/dochat/raw/main/dochat.sh | 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...

3.3.0.115: Pulling from zixia/wechat
Digest: sha256:d2ce843ad3ba140a03ee129515e496ece946d1c09138832d776799728152150c
Status: Image is up to date for zixia/wechat:3.3.0.115
docker.io/zixia/wechat:3.3.0.115

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

[DoChat] 盒装微信 v0.14.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 3.3.0.115
[DoChat] Starting...
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  283
  Current serial number in output stream:  282
[DoChat] WeChat.exe exit with code 0
[DoChat] Found new version?
[DoChat] WeChat.exe exited

📦 DoChat Exited with code [0]

🐞 Bug Report: https://github.com/huan/docker-wechat/issues

Edit 1: What version of libGL is used in this WeChat container?

Edit 2 : Well i found a problem, this wechat docker will not launch if i am using my nvidia GPU, I had to turn it off completely to use my iGPU which is intel with mesa drivers. It launched fine, i logged in. But sadly i could not see any of my messages. I get errors about "Web crashed".

!!! If you get the same problem with WeChat.exe exited (Like my output above) Try turning your gpu off maybe it will work.

I got the same problem Screenshot from 2021-12-17 02-16-37

fingertap commented 10 months ago

For me, the reason that the docker closes as soon as I launched it is that the container cannot attach to my X11. To solve that:

xhost +local:root