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

"Wine Returned Status 183" #152

Closed
jmdelahanty opened this issue Aug 5, 2022 · 4 comments
Closed

"Wine Returned Status 183" #152

jmdelahanty opened this issue Aug 5, 2022 · 4 comments

Comments

@jmdelahanty
Copy link

Describe the bug

Hello ScottyHardy! I've been using your images for a bit with great success on one machine but while trying to reproduce the image onto another Docker enabled machine I'm running into something that I've been really stuck on. I've googled for several hours over the past couple days and just can't seem to get this right. I'm still pretty new to this stuff and think it must be something easy, but figured I'd reach out to an expert like you for some help. I doubt it's something wrong with the repo, but because I can't seem to find an answer to this I thought I would post here in case others run into this problem one day.

For some reason, the moment I execute the build for my Dockerfile, I'm greeted with the following message:

X11 connection rejected because of wrong authentication.

Things then seem to run normally for a couple minutes. Later on in the building process, I'm greeted with these messages:

Executing wine vc_redist.x86.exe /q
0024:err:environ:run_wineboot boot event wait timed out
0024:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0024:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
006c:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
006c:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
006c:fixme:advapi:DecryptFileW (L"C:\\users\\wineuser\\Temp\\{74d0e5db-b326-4dae-a6b2-445b9de1836e}\\", 00000000): stub
00bc:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00bc:err:winediag:nodrv_CreateWindow The explorer process failed to start.
00c0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00c0:err:winediag:nodrv_CreateWindow The explorer process failed to start.
0024:fixme:ole:CoInitializeSecurity 0032F5F4, -1, 00000000, 00000000, 6, 2, 00000000, 12288, 00000000 stub
00d4:fixme:ver:GetCurrentPackageId (03E0FEF0 00000000): stub
------------------------------------------------------
warning: Note: command wine vc_redist.x86.exe /q returned status 183. Aborting.

This makes me think that there's something going wrong with how this machine has it's X11 settings put together since it's failing to create a window, but after googling for a bit about this error/others I've come up short on how to stop it.

I'd like to see if I can edit the sshd configuration like this post suggests, but I don't have write permissions to that file unfortunately. This stack overflow post seems to suggest the same thing maybe. One link there pointed me to this tutorial but I don't know enough about this to tell if this is the problem.

I also came across Issue #117, but I'm not receiving the specific suggested error message about the Display being set correctly that the Issue submitter sees...

I've also tried what you suggested in #88, having the ARG USE_XFB=yes parameter in the Dockerfile, but run into the same error messages. I've also searched high and low for this status 183 message and can't seem to find anyone else in the world who has encountered it let alone fixed it!

Any advice for someone wanting to learn how to troubleshoot this kind of thing?

To Reproduce
Steps to reproduce the behavior:
I have a test Dockerfile that just has this inside it:

# docker-wine is a compatability layer between Windows and Linux.  Allows you to run Windows programs on Linux machines.
FROM scottyhardy/docker-wine:latest

# All credit for this Dockerfile and associated ripping tools goes to Chris Roat, a former software engineer at Stanford in the Deisseroth Lab
# https://github.com/chrisroat
# His work has been adapted for use in the Tye Lab at the Salk Institute by Jeremy Delahanty.
#
# If someone is using the Tye Lab's version, they can contact Jeremy at the email below.
LABEL maintainer="Jeremy Delahanty <[email protected]>"

# This adds about 1.6 GB to the image size.
# The entrypoint wrapper runs the wine setup as wineuser. This is required as it otherwise installs Wine as root causing permission problems later
# The xvfb-run wrapper redirects all displays to a virtual (unseen) display. Wine expects a display to be available.
# Winetricks
# Install visual studio C++ 2015
# This all needs to be run on the same line for some reason, otherwise it crashes
RUN /usr/bin/entrypoint xvfb-run winetricks -q vcrun2015

When I call a Makefile with this inside it:

IMAGE_TAG=20220205
IMAGE_NAME=snlkt-bruker-ripper

build: build_docker

build_docker:
  sudo docker build -t $(IMAGE_NAME):$(IMAGE_TAG) -f Dockerfile .
  sudo docker tag $(IMAGE_NAME):$(IMAGE_TAG) $(IMAGE_NAME):latest

I end up meeting this error message described above.

Expected behavior
On a different machine the build makes it all the way through to where the docker tag command executed!

Screenshots
N/A

Desktop (please complete the following information):

Linux tesla 4.19.0-21-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64

tesla is managed by SNL Support and runs Debian Buster v10.X.
CPU Count: 40 : "GenuineIntel Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz (2 chips x 10 cores : 20 hyperthread cores)"

Additional context
None

@jmdelahanty jmdelahanty changed the title X11 Connection Rejected Because of Wrong Authentication "Wine Returned Status 183"/X11 Rejected Aug 5, 2022
@jmdelahanty
Copy link
Author

From what developer/contributor @austin987 told me here it's a configuration issue or something is up with docker-wine, but I bet it's how our server is configured with X11 somehow. Will update what happens in both places you when our IT team has a chance to go over things with me.

@jmdelahanty
Copy link
Author

jmdelahanty commented Aug 11, 2022

Made it further with the help of our IT team! I no longer get the X11 rejected message! In my home directory, I needed to add the following into my ssh configuration:

Host *
   ForwardAgent yes
   ForwardX11 yes
   ForwardX11Trusted yes

For people who are still learning (like me!) here's what those things mean:

For "Host *" all your ssh sessions, if too general you can modifiy it
per hostname or domain name but I think you're only ssh-ing into
snl.salk.edu hosts right? So its not a bad setting.

For "ForwardAgent yes", if you have an ssh key loaded it will forward
it to the next computer you ssh into. It may not be applicable now but we
should talk about getting this setup for you, will make your life easier.

For "ForwardX11 yes" , this will forward X11 or GUI windows to the host
you're logging in from, there are warning but you're using it internally
so not a problem or should not be.

For "ForwardX11Trusted yes", this will allow/trust your X11 windows
(GUI) to be displayed on the remote client, Windows computer.

However, after running my dockerfile I ended up with the same error message as before:

/home/wineuser/.wine/dosdevices/c:/windows/temp/win32/a10: WARNING; possible 16128 extra bytes at end of file.
Executing cd /home/wineuser/.cache/winetricks/vcrun2015
Executing wine vc_redist.x86.exe /q
0024:err:environ:run_wineboot boot event wait timed out
0024:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0024:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0074:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0074:fixme:heap:RtlSetHeapInformation 00000000 1 00000000 0 stub
0074:fixme:advapi:DecryptFileW (L"C:\\users\\wineuser\\Temp\\{74d0e5db-b326-4dae-a6b2-445b9de1836e}\\", 00000000): stub
00c0:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00c0:err:winediag:nodrv_CreateWindow The explorer process failed to start.
00c4:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00c4:err:winediag:nodrv_CreateWindow The explorer process failed to start.
0024:fixme:ole:CoInitializeSecurity 0032F5F4, -1, 00000000, 00000000, 6, 2, 00000000, 12288, 00000000 stub
00d8:fixme:ver:GetCurrentPackageId (03E0FEF0 00000000): stub
------------------------------------------------------
warning: Note: command wine vc_redist.x86.exe /q returned status 183. Aborting.

Still no luck finding out what this status 183 is yet... will keep searching!

@jmdelahanty jmdelahanty changed the title "Wine Returned Status 183"/X11 Rejected "Wine Returned Status 183" Aug 11, 2022
@jmdelahanty
Copy link
Author

So far, saving a working image and deploying it onto other docker enabled machines has worked perfectly. However, I still can't run my basic build without it running into this weird error. Our IT Team has told me that, as far as they can see, everything related to X11 on the working machine is the same as the machines having trouble/nothing special is configured on the machines struggling with this... Still looking into it.

@jmdelahanty
Copy link
Author

jmdelahanty commented Aug 16, 2022

Will be posting relevant solution for missing packages on the server I was running with here soon! Our IT team installed stuff that wine/winetricks needed to run properly. I'll edit this post later, but closing now.

Thanks again for all your work making this possible @scottyhardy !

EDIT:

The solution was to make sure that the packages Wine depends upon were all installed to the server we were using. They are listed here but I didn't seem to find them at the Winetricks GitHub.

With these all installed properly I can build anywhere I need!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant