Can't see the remote desktop

Bug #1724790 reported by Jean Tinguely Awais
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nxcomp (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,
 X2GoClient does not work. I cant see the remote desktop.
 A trick that make the x2goclient work is to open a terminal, then write "export TMP=/tmp", then write "x2goclient --debug".
Best regards.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: x2goclient 4.0.5.1-1
ProcVersionSignature: Ubuntu 4.4.0-97.120-generic 4.4.87
Uname: Linux 4.4.0-97-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Oct 19 11:47:25 2017
InstallationDate: Installed on 2014-08-14 (1161 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
JournalErrors:
 Error: command ['journalctl', '-b', '--priority=warning', '--lines=1000'] failed with exit code 1: Hint: You are currently not seeing messages from other users and the system.
       Users in the 'systemd-journal' group can see all messages. Pass -q to
       turn off this notice.
 No journal files were opened due to insufficient permissions.
SourcePackage: x2goclient
UpgradeStatus: Upgraded to xenial on 2017-05-18 (153 days ago)

Revision history for this message
Jean Tinguely Awais (jean.tinguely) wrote :
Revision history for this message
Jean Tinguely Awais (jean.tinguely) wrote :
Download full text (28.3 KiB)

See IRC freenode #x2go on 2017/09/19

[09:08] == jta_1972 [b2c10097@gateway/web/freenode/ip.178.193.0.151] has joined #x2go
[09:15] <jta_1972> Hello,
[09:15] <jta_1972> I have a problem.
[09:15] <jta_1972> The log of x2go are here : https://dpaste.de/VCVT
[09:16] <mbecroft> Ionic: I built the latest release, 3.5.99.10
[09:16] <jta_1972> Line 157: I can't understand why I can't reach the Xdisplay.
[09:17] <mbecroft> It's working fine, and I've cleaned up the packaging so it doesn't do silly things, like what was causing the cwd to get set weirdly
[09:18] <jta_1972> I delete .xauthority, reboot : nothing works!
[09:18] <mbecroft> I had a look a the x2goserver ebuild as well, since actually that seems broken in gentoo currently, but that one is rather long and needs a bit more effort to untangle what's being done
[09:18] <jta_1972> Must I reinstall a package?
[09:20] <mbecroft> Ionic: so, I'll stick with this for now as it's working and I am on an up-to-date 3.5 release, and if it does crash it actually writes a core dump now, so I can at least debug it, if the rare crash bug(s) I experience should reoccur. When I feel like spending a weekend on it, I guess I'll try and sort out 3.6 and newer x2goserver
[09:20] <uli421> mbecroft: 3.5.99.x is actually the 3.6-release beta.
[09:21] <mbecroft> Oh
[09:21] <mbecroft> Well, then, it basically works fine
[09:21] <mbecroft> I didn't even need to upgrade x2goserver like you suggested I might
[09:22] <mbecroft> The current maintainer said he is very busy and would appreciate some help. So I'll at least send him the 3.5.99.10 ebuild for possible inclusion (in 'beta' status) for those who wish to use it
[09:23] <uli421> jta_1972: "Error: Error 2 'No such file or directory' checking '/tmp/user/1003/.X11-unix'." That's your problem.
[09:24] <mbecroft> I've removed years of crap from the ebuild, which means it is much simpler and installs everyting in the expected way, but could possibly mean it is no longer compatible with some other packages that use it, like freenx and qtnx. I haven't tested that, I'm just guessing.
[09:25] <jta_1972> Thank your uli421. How can I solve this problem? Must I reinstall X11?
[09:25] <mbecroft> Ionic: Also, I'm just about to actually test this, but it appears extra nxagent options can be specified in /etc/x2go/x2goagent.options - hopefully no need to hack the x2gostartagent script
[09:26] <uli421> mbecroft: you should upgrade the server as only new version know about the new nx-libs. Older x2goservers will not setup the environment correctly
[09:26] <uli421> jta_1972: it is on you client side. Check /var/log/Xorg.0.log.
[09:26] <mbecroft> uli421: Well this is what was told to me, but it is actually working fine as far as I can see. What specifically might I expect to not be working right?
[09:27] <mbecroft> I did have a look at x2goserver, but the ebuilt is way complex and failing in a non-obvious way (even on the *current* version) so I have deferred that for now
[09:28] <uli421> mbecroft: xinerama will not work
[09:28] <mbecroft> I don't believe I use Xinerama, so if that's all, it's no loss to me for now
[09:29] <uli421> mbecroft: you can check on the server side: ps waux | ...

affects: x2goclient (Ubuntu) → nxcomp (Ubuntu)
Revision history for this message
Mihai Moldovan (ionic) wrote :

The problem lies within libxcomp3, which uses the environment variables NX_TEMP and TEMP to determine the temporary files directory (with a fallback to /tmp) and then tries to connect to $DETERMINED_TMP_DIR/.X11-unix/X$DISPLAY.

Note that TEMP has not been a typo.

Since pam_tmpdir.so sets TMP, TEMP, TMPDIR and TEMPDIR, by default nxproxy (which has its implementation in libxcomp3), will try to open /tmp/user/.../.X11-unix/X... on such systems and fail.

The easiest workaround is to remove the possibility to override the temporary directory via TEMP in libxcomp3's Loop.cpp (which we will probably also do as upstream, since the X11 UNIX socket path should not depend upon a configurable temp dir env variable - minus NX_TEMP, which can stay and is a good override value if users really need it, since it's not being set by pam_tmpdir or the like.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.