Bug 1224678 - xpra server will not start on F22
Summary: xpra server will not start on F22
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xpra
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jonathan Underwood
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-25 10:15 UTC by Tom Hughes
Modified: 2015-06-01 17:01 UTC (History)
2 users (show)

Fixed In Version: xpra-0.14.22-5.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-01 17:01:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Xpra 872 0 None None None Never

Description Tom Hughes 2015-05-25 10:15:14 UTC
Description of problem:

Attempting to start an xpra server on F22 will fail. A simple "xpra start :100" leaves you with no server running and a log file that contains:

/usr/libexec/Xorg.wrap: Only console users are allowed to run the X server
2015-05-25 11:12:34,605 
2015-05-25 11:12:34,605 Xvfb command has terminated! xpra cannot continue
2015-05-25 11:12:34,605 
2015-05-25 11:12:34,606 removing socket /home/tom/.xpra/bericote.compton.nu-100

I'm not quite what is running Xorg.wrap though, as that is the real X server and xpra should be running Xvfb surely (indeed it implies it is) and I can certainly run Xvfb by hand the command "Xvfb :1 -screen 1 1600x1200x16" works fine.

Version-Release number of selected component (if applicable):

xpra-0.14.22-4.fc22.x86_64

Comment 1 Tom Hughes 2015-05-25 10:21:37 UTC
Setting the xvfb command to the default from the manual page:

--xvfb='Xvfb +extension Composite -screen 0 3840x2560x24+32 -nolisten tcp -noreset  -auth $XAUTHORITY'

makes things work, so it looks like xpra has been configured with a different default that is trying to run the real X server?

Comment 2 Jonathan Underwood 2015-05-25 10:49:52 UTC
The wrapper script by default starts the Xdummy server rather than xvfb. Can you confirm xdummy iis installed?

Comment 3 Tom Hughes 2015-05-25 11:22:57 UTC
Well I don't have an Xdummy executable and as far as I can see there isn't one (or at least no package provides /usr/bin/Xdummy) but I do have xorg-x11-drv-dummy.x86_64 installed which provides /usr/lib64/xorg/modules/drivers/dummy_drv.so.

Comment 4 Tom Hughes 2015-05-25 11:26:49 UTC
OK, so /usr/libexec/Xorg.bin no longer exists, so the F21 workaround in /usr/bin/xpra_Xdummy fails and it tries to start Xorg.

Comment 5 Tom Hughes 2015-05-25 11:31:38 UTC
I think /usr/libexec/Xorg is now the name of the "real" server that Xorg.wrap execs into, but changing /usr/bin/xpra_Xdummy to use that fails with:

(++) Log file: "/home/tom/.xpra/Xorg.:100.log", Time: Mon May 25 12:30:08 2015
(++) Using config file: "/etc/xpra/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)
(EE) 
(EE)

Comment 6 Jonathan Underwood 2015-05-26 12:50:03 UTC
OK, thanks for the extra info.

I don't have access to an F22 box right now, but this logic in the Xpra_wrapper script should be doing the right thing:

if [ -x "/usr/libexec/Xorg.bin" ]; then
        #Fedora 21+ workaround where /usr/bin/Xorg is not suid
        #because it is a script, which calls /usr/libexec/Xorg.wrap
        #which is setuid, and which eventually calls this one:
        XORG_BIN="/usr/libexec/Xorg.bin"
else
        XORG_BIN=$(which Xorg)
fi


which I think on F22 should actually translate to XORG_BIN being set to /usr/lib/Xorg (rather than the libexec binary that you found). I wonder why it's not. What's the output of "which Xorg"?

I'll have an F22 machine availabloe in the next day or two to look at this myself.

Comment 7 Tom Hughes 2015-05-26 12:54:07 UTC
Exactly, on F22 XORG_BIN gets set to /usr/bin/Xorg (bin, not lib) which is just a shell script that execs /usr/libexec/Xorg.wrap which is then supposed to exec /usr/libexec/Xorg after doing it's stuff (instead of /usr/libexec/Xorg.bin in F21).

The problem, even after fixing Xpra_wrapper to recognise the F22 path, is that the X server still won't start because it tries to fiddle with a vt even though it is being started a a dummy server.

Comment 8 Jonathan Underwood 2015-05-26 13:03:46 UTC
Right, gottit! I think I have a fix, I'll push a test build shortly.

Comment 9 Jonathan Underwood 2015-05-26 13:16:47 UTC
OK, my fix didn't work. Will continue to look at it. In the meantime, have reported upstream too:

https://www.xpra.org/trac/ticket/872

Comment 10 Jonathan Underwood 2015-05-26 13:26:25 UTC
BZ #1203780 seems to be relevant here, though it's claimed that is fixed.

Comment 11 Jonathan Underwood 2015-05-26 13:28:18 UTC
Tom - can you confirm you're running xorg-x11-server-1.17.1-12 ? (or later).

Comment 12 Jonathan Underwood 2015-05-26 13:41:20 UTC
Adding Hans de Goede to cc list.

Hi Hans, the issue with Xorg failing to start with the Xdummy driver (which is wwhat Xpra invokes) seems to be failing on F22 - see comment #5. This looks like BZ #1203780 again, and is a regression fro F21. Any pointers?

Comment 13 Tom Hughes 2015-05-26 13:41:52 UTC
No I only have -11 at the moment by the looks of it. Looking at bodhi -12 only got pushed into stable last night when the first post-freeze updates push was done.

I'll grab that update this evening and hopefully that will fix it - it certainly looks like it should (along with a fix to the Xpra wrapper script of course).

Comment 14 Jonathan Underwood 2015-05-26 13:54:02 UTC
OK, great. I've just put a patch on the upstream BZ to fix the wrapper script, which I'll include in a subsequent package build.

Comment 15 Jonathan Underwood 2015-05-26 14:27:57 UTC
This build should fix the script issue:

http://koji.fedoraproject.org/koji/taskinfo?taskID=9852263

Comment 16 Fedora Update System 2015-05-26 14:56:47 UTC
xpra-0.14.22-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/xpra-0.14.22-5.fc22

Comment 17 Tom Hughes 2015-05-26 17:12:19 UTC
I can confirm that the combination of the -12 X server and the new xpra build fixes this.

Comment 18 Jonathan Underwood 2015-05-26 17:19:16 UTC
Great thanks. Could you add karma on bodhi so the update can hit the stable updates asap, then I'll get on with updating to 0.14.24.

Comment 19 Fedora Update System 2015-05-27 16:27:46 UTC
Package xpra-0.14.22-5.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xpra-0.14.22-5.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8975/xpra-0.14.22-5.fc22
then log in and leave karma (feedback).

Comment 20 Fedora Update System 2015-06-01 17:01:57 UTC
xpra-0.14.22-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.