Bugzilla – Bug 6192
Installer/setup hangs without any window with restricted X server (e.g. Xwayland)
Last modified: 2019-07-09 11:48:49
You need to
before you can comment on or make changes to this bug.
When running the installer one is asked to enter password for sudo graphically.
After authentication no more graphical dialogs are shown. The tlinstaller
process is still running and a strace shows hang on 'read(0,'.
Both seen on Samuels and Henriks desktops and we are running wayland. No
XAUTHORITY in environment and after running 'xhost +' the problem is solved.
This is what the terminal says:
> $ sudo ./install-server
> [sudo] password for samuel:
> No protocol specified
> /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
> warnings.warn(str(e), _gtk.Warning)
> No protocol specified
> Could not start PyGTK. Using text mode fallback...
Fun. I guess it is time for another rewrite of tl-setup then. :)
(In reply to comment #2)
> https://bugzilla.redhat.com/show_bug.cgi?id=1274451 ..?
The short summary is that running graphical applications as root is now
forbidden. The suggested approach is some front-end/back-end solution, ideally
We'll do a platform specific note before release with a suggested workaround.
Then we'll move this bug to Next for finding an automatic workaround that
forces text mode.
After that we'll have to have a new discussion on where to go from there and
Platform specific note added. Moving to Next.
(Note to self: fix list of bugs in release notes.)
Platform Specific Note looks good, workaround works.
This also affects RHEL now as they also have Wayland by default.
This blog post claims they have backtracked a bit and are working on allowing
root process access to Xwayland at least:
This issue is more general than just Wayland. The issue is that Xwayland is
configured in a very restrictive way, something that is fully possible with any
modern X server. So we should detect and work around that, not do anything
This bug is also about getting something working (e.g. text mode) and not
getting full functionality. Bug 7358 has been created to fix this fully.
We're now properly falling back to text mode when we cannot find an xauth
cookie. That should hopefully map nicely to the cases we're having problems
Works well, release note looks good.
Verified the problem when running "tl-4.10.0-server/install-server" (Note:
without 'sudo') and verified the fix when running
"nightly/server-bundle/install-server". Tested on Fedora 30 with Wayland.
We have to remember to remove the Platform Specific Note on release as well.