-
Notifications
You must be signed in to change notification settings - Fork 11
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
How to find reason for session-server time out #78
Comments
Hi @stefnet00. To be honest, the original mechanism is extremely fragile and hard to debug (aka crap). I completely redesigned it, but have not yet found time to release it. Can you test the |
To answer your actual question, the "old" (current release) implementation does not capture all of the Wine process' The development branch has a proper thread- & queue-based implementation for capturing the output of the Wine process. You can expect to get all of it. The launch of the Wine process itself does not rely on some shaky Bash-script mechanism anymore but instead uses os.execv, which is a lot simpler and much more reliable. |
Thanks @s-m-e. I switched to the
When activating the log after However, I can not say that my setup is running more stable now. Somehow importing zugbruecke fails on some nodes of the cluster.
And the zugbruecke log
I still don't know why the session server does not start up correctly. Do you have any hint how to get that out? |
Hey thanks for trying. You ran into a fair number of distinct bugs ... Most importantly, the code responsible for catching a failed Wine process does not reliably catch anything, apparently. This needs fixing, but I am lacking sufficient time at the moment. Hence two quick and dirty ideas:
|
Well, I tried to make the changes you suggested but could not get more outputs from wine. Second I was checking a minimal setup which would be able to run in a VM. When trying this I could not reproduce the error... Don't know exactly why. For now the only way is getting the output from wine when it's running into a time out. I think it's less effort at the moment to start the job a couple of times until one is running. |
@s-m-e: I did some more investigations on the reason of the time out. After many different tests and tries to catch the output of Because I could catch the output of the original
After that, all jobs start properly. Before only around one out of ten jobs started successfully. I really don't know why.. |
Thanks for the feedback. I might have a thin idea, but I'd really like to reproduce your environment first. How much of its configuration can you share? I remember CentOS - which version? x86_64, I assume? Patch-level? Any customization deviating from CentOS' original packages? Which Wine version/build/repo? Python build/version? Are there containers (Docker and friends) involved? What file system(s) is this running on (locations of Python, Python standard library, Python site-packages, /tmp, /home)? Are there read-only file systems and/or overlay filesystems involved? What kind of user account with what kind of rights is running this? |
I did a fair bit of cleanup in both |
I added a few configuration options to wenv which should be useful to you. I also cleaned up configuration in zugbruecke so there is a somewhat more clean division of labor between both packages. |
OK, tanks for responding so quickly. Some information about the system:
It's a bit difficult for me to give some more information on all the packages involved. A major part ist |
Just briefly: Configuration at time of creation, i.e. from zugbruecke import CtypesSession
ctypes_368 = CtypesSession(pythonversion = "3.6.8") |
I have upgraded to the latest
PS: After upgrading I still hat to do the changes mention here. |
Or with an additional error output from zugbruecke
|
Ok, we're getting closer. This is something that I have only seen on Ubuntu 14.04 / Trusty Tahr. It's related to an "outdated" library, if I am not mistaken, and some issues related to symlinks, but I never fully identified the root cause. |
See #50. For a while, I had a work-around option named |
Yes, it's wine 4.0.4 |
Ok, even closer. Can you try to upgrade to at least Wine 4.16 (or 5 or even 6)? Alternatively (or in addition), can you try to install |
Sorry, at least Wine 4.17. |
Ok, updating |
Updating wine is not that easy to me. I would have to ask and it has already been much work to install this version wine. |
Just looked up your CentOS version (7.9). Its tool-chain dates to 2014, just like in Trusty Tahr, so getting a younger version of Wine wont do the trick (it will even be prohibitively complicated to make it run in the first place). This also explains why Test the thing with the dots in the path. If this does not work, I have one more idea. |
Just moving the package directory of Thanks a lot for all the help. |
I just replicated part of your setup in a VM, CentOS 7.9 x86_64, python 3.6.8, Wine 4.0.4. It's an old system, lots of stuff to work around, and distinct issues in zugbruecke if I see correctly. I will report back to you when I have worked my way through them. |
I did some test without any dot in the package path of
|
Hello all,
I have a Windows DLL file running on a CentOS host using zurbruecke. Unfortunately I very often get a time out when starting a session. Is there a good way to find the reason for this? The same setup on OpenSUSE Leap is much more stable.
The logging of zugbrucke is already active:
A WINE_out.txt is not written when timed out. Only if start up was successful, see below.
The text was updated successfully, but these errors were encountered: