Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem] Can not start on openSUSE, exit with code 5 (xhost + needed) #16

Closed
mengzyou opened this issue Feb 25, 2020 · 5 comments · Fixed by #17
Closed

[Problem] Can not start on openSUSE, exit with code 5 (xhost + needed) #16

mengzyou opened this issue Feb 25, 2020 · 5 comments · Fixed by #17
Labels
question Further information is requested

Comments

@mengzyou
Copy link
Contributor

Docker Host

NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

Docker Version

Client:
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.6
 Git commit:        74b1e89e8ac6
 Built:             Fri Jul 26 12:00:00 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.1
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.6
  Git commit:       74b1e89e8ac6
  Built:            Fri Jul 26 12:00:00 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.1.3_catatonit
  GitCommit:

Start Logs

🚀 Starting DoChat /dɑɑˈtʃæt/ ...

+ main
++ id -u
+ '[' 0 -ne 0 ']'
+ setupUserGroup
+ '[' -n 492 ']'
+ groupmod -o -g 492 audio
+ '[' -n 484 ']'
+ groupmod -o -g 484 video
++ id -g user
+ '[' 100 '!=' 1000 ']'
+ groupmod -o -g 100 group
++ id -u user
+ '[' 1000 '!=' 1000 ']'
+ chown user:group '/home/user/.wine/drive_c/users/user/Application Data' '/home/user/WeChat Files'
+ setupHostname
+ export HOSTNAME=DoChat
+ HOSTNAME=DoChat
+ echo DoChat
+ hostname DoChat
+ exec gosu user /entrypoint.sh
+ main
++ id -u
+ '[' 1000 -ne 0 ']'
+ startWechat
+ hello
++ cat /VERSION
+ VERSION=0.5.3
+ echo '[DoChat] 盒装微信 v0.5.3'
+ disableUpgrade
[DoChat] 盒装微信 v0.5.3
+ wine REG ADD 'HKEY_CURRENT_USER\Software\Tencent\WeChat' /v NeedUpdateType /t REG_DWORD /d 0 /f
+ CONFIG_EX_INI_FILE='/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini'
+ '[' -e '/home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat/All Users/config/configEx.ini' ']'
+ setupFontDpi
+ DELETE_KEYS=('HKEY_CURRENT_USER\Control Panel\Desktop' 'HKEY_CURRENT_USER\Software\Wine\Fonts')
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Control Panel\Desktop' /v LogPixels /f
+ true
+ for key in "${DELETE_KEYS[@]}"
+ wine reg DELETE 'HKEY_CURRENT_USER\Software\Wine\Fonts' /v LogPixels /f
+ wine reg ADD 'HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts' /v LogPixels /t REG_DWORD /d 120 /f
+ '[' -n true ']'
+ wine reg query 'HKEY_CURRENT_USER\Software\Tencent\WeChat'

HKEY_CURRENT_USER\Software\Tencent\WeChat
    NeedUpdateType    REG_DWORD    0x0

+ true
+ echo '[DoChat] Starting...'
+ '[' -n true ']'
[DoChat] Starting...
+ wine 'C:\Program Files\Tencent\WeChat\WeChat.exe'

And exited with code 5 .

@huan huan added help wanted Extra attention is needed question Further information is requested labels Feb 25, 2020
huan added a commit that referenced this issue Feb 25, 2020
@huan
Copy link
Owner

huan commented Feb 25, 2020

Thanks for the reporting.

I have no idea what happens because I have never used Open SUSE before.

However, we can add more wine log outputs for DoChat. Please wait about 15 mins before the v0.5.4 can be published, and then try again to see what happens in your OpenSUSE box.

@mengzyou
Copy link
Contributor Author

Hi, @huan

Think you to check my problem, and I fix the problem, it's caused by I have not disable the display access cotrol via xhost +, after disabled it, it works.

@huan huan reopened this Feb 25, 2020
@huan
Copy link
Owner

huan commented Feb 25, 2020

Thank you very much for letting me know that you need to do a xhost + manually in an OpenSUSE system.

I did that before, but later I found that under Ubuntu it can work without any problem even without I set it up.

It would be great if you can add a FAQ section to our README about this if you can confirm that the xhost + is a must under the OpenSUSE system.

@huan huan removed the help wanted Extra attention is needed label Feb 25, 2020
@huan huan changed the title [Problem] Can not start on openSUSE, exit with code 5 [Problem] Can not start on openSUSE, exit with code 5 (xhost + needed) Feb 25, 2020
@mengzyou
Copy link
Contributor Author

@huan Yes, I confirmed. Sure, I will tak a PR later.

@huan
Copy link
Owner

huan commented Feb 25, 2020

Awesome, appreciate it!

mengzyou added a commit to mengzyou/docker-wechat that referenced this issue Feb 25, 2020
Add a FAQ in README.md about disable X server access control on openSUSE Leap.

Fixed huan#16
@mengzyou mengzyou mentioned this issue Feb 25, 2020
@huan huan closed this as completed in #17 Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants