X2Go Bug report logs - #1584
pyhoca-cli cannot launch XDMCP session

version graph

Package: pyhoca-cli; Maintainer for pyhoca-cli is X2Go Developers <x2go-dev@lists.x2go.org>; Source for pyhoca-cli is src:pyhoca-cli.

Reported by: Eric Monson <ericjmonson@gmail.com>

Date: Thu, 3 Mar 2022 20:20:01 UTC

Severity: normal

Found in version 0.4.0.3

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#1584: pyhoca-cli cannot launch XDMCP session
Reply-To: Eric Monson <ericjmonson@gmail.com>, 1584@bugs.x2go.org
Resent-From: Eric Monson <ericjmonson@gmail.com>
Resent-To: x2go-dev@lists.x2go.org
Resent-CC: X2Go Developers <x2go-dev@lists.x2go.org>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 03 Mar 2022 20:20:01 +0000
Resent-Message-ID: <handler.1584.B.16463386828772@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: report 1584
X-X2Go-PR-Package: pyhoca-cli
X-X2Go-PR-Keywords: 
Received: via spool by submit@bugs.x2go.org id=B.16463386828772
          (code B); Thu, 03 Mar 2022 20:20:01 +0000
Received: (at submit) by bugs.x2go.org; 3 Mar 2022 20:18:02 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,SPF_HELO_NONE,
	T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no
	version=3.4.2
Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id A26495DA96
	for <submit@bugs.x2go.org>; Thu,  3 Mar 2022 21:17:57 +0100 (CET)
Received: by mail-lj1-x22c.google.com with SMTP id 29so8253642ljv.10
        for <submit@bugs.x2go.org>; Thu, 03 Mar 2022 12:17:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=mime-version:from:date:message-id:subject:to;
        bh=eqZupbyw1i1zixlyN+KrQq0gwsYKl+Xu9XTO3SNuGTo=;
        b=QUHFZTrrGVxtzqTZSu9seLLQizo7pWcGEqDK6WWDS3098l/ayBd4pHTSyOV6zMqfxa
         kI3uLU7KrI5SEooSp5xP1tpr6LZNfDWE90eGHZk/XxTHyCBjxxg1XgLFgSYz6nNW70nf
         Ey5odQ2r52hgkse6vWTMVf4jzqCl/DVGThXNBbRFXQYotgBVjoIvSY8wJQqyvXS6p1Qp
         coPDDMRyjgjU6xvfiSvIyeUp0wZDioplukanbMLFCCVCNEwljqeFe4ZoHZhrcSrPlGkK
         jQrPwTWCmKCyT8BitlHaqwLqDBT26vifrxt52OMh2CaNk+VlDCDWevIuSE05iprAE96F
         djmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=eqZupbyw1i1zixlyN+KrQq0gwsYKl+Xu9XTO3SNuGTo=;
        b=7gWP+7Y7wOYAQEGq5vtbC9o6vY4uJCaseCUPUE/mTCg0gplaOxFN0tdPH7hVUuIv7C
         azIQiT0pnDSzp1uozYa6/pYf1rie0SxF2yqsJsIL4aJMmpnJ+/VOC8AbuPOz985faG4h
         9Xy7yHzjlpC+TuiUb6ioG/Vy0uI0nvMGsfnA0eFxm1AbBQJgSAz26T3DnErp2NqHnPe/
         eOlaV6inBNWNxwhpxM3WzSS1nLPAoyYtxLlQmjDrMu6tK0HlnjcWAAEh4kU1rHaEdo0a
         aPuziECyjV+B52V/H9yh+/6dHs/3eGVjtKoDwmVMkx10W6EEb/DN2W0Ycl7F7DxpWqMr
         WK0A==
X-Gm-Message-State: AOAM531zpPz8+D4rZmZzoN3fu4Vo32poT8SVcyhN1paidcEECA/SC/Bv
	aMcuWJxM/RzsIdsP1wtFnllg0RjKoPMjX/f733uQuSmLFw==
X-Google-Smtp-Source: ABdhPJxZPwlV5RrwIc+47T2L7rlAH4tVHnQDqz5vrprjG6YPsqkulMEu+V7TCP2eM1ll9uO/3VqOSOria3hrhqHXDyY=
X-Received: by 2002:a2e:8017:0:b0:246:3fb3:1618 with SMTP id
 j23-20020a2e8017000000b002463fb31618mr25111244ljg.427.1646338676532; Thu, 03
 Mar 2022 12:17:56 -0800 (PST)
MIME-Version: 1.0
From: Eric Monson <ericjmonson@gmail.com>
Date: Thu, 3 Mar 2022 13:17:45 -0700
Message-ID: <CACOTCa=qb0NNuvnxjykcrSnLsB7_Mi8vO_SGbdDPagMWWV+4Ug@mail.gmail.com>
To: submit@bugs.x2go.org
Content-Type: multipart/alternative; boundary="000000000000feab9f05d95617a4"
[Message part 1 (text/plain, inline)]
Package: pyhoca-cli
Version: 0.4.0.3

I'm attempting to launch an XDMCP session that is suspendable and
transferable from one workstation to another. My setup has two workstations
each of which can connect to a "session-server", which in turn does an
xdmcp query to a host I'll call "xserver". Note that the xserver in this
setup is an old solaris machine that runs X, but doesn't have the x2go
server packages installed.

Here's my ascii diagram of what I tried to convey above:
workstation1/workstation2 (x2goclient, pyhoca-gui and pyhoca-cli
installed)  ->   session-server (x2goserver installed)  ->  xserver (xdmcp
enabled)

I set up a session using "pyhoca-gui", which results in the following:

------------------------------
[20220303170339880609]
user = username
defsndport = 1
sshproxyautologin = 1
forwardsshagent = 0
useiconv = 0
iconvfrom = UTF-8
height = 600
uniquehostkeyaliases = 0
directrdp = 0
sshproxysameuser = 0
sshproxysamepass = 0
quality = 9
maxdim = 0
fullscreen = 0
sessiontitle =
layout = us
useexports = 0
sshproxytype = SSH
width = 800
speed = 4
xdmcpserver = xserver
sshproxyuser =
rdpoptions = -u X2GO_USER -p X2GO_PASSWORD
soundsystem = pulse
clipboard = both
autostart = 0
print = 0
type = pc105/us
setsessiontitle = 0
sndport = 4713
usesshproxy = 0
usemimebox = 0
xinerama = 0
usekbd = 1
variant =
autologin = 1
sshproxykeyfile =
sshproxyport = 22
applications = TERMINAL, WWWBROWSER, MAILCLIENT, OFFICE
host = session-server
display = 1
mimeboxextensions =
multidisp = 0
key =
directrdpsettings =
fstunnel = 1
icon = :icons/128x128/x2gosession.png
sound = 0
autoconnect = 0
rootless = 0
mimeboxaction = OPEN
name = pyhoca-xdmcp
rdpport = 3389
iconvto = UTF-8
rdpserver =
restoreexports = 0
soundtunnel = 1
sshproxyhost = proxyhost.mydomain
rdpclient = rdesktop
command = XDMCP
startsoundsystem = 0
published = 0
sshport = 22
export =
setdpi = 0
krblogin = 0
dpi = 96
pack = 16m-jpeg
------------------------------

When I use x2goclient, I'm able to launch the session, suspend the session,
and transfer the session between workstations as expected.

When I use pyhoca-cli to create the session, I get the following results:

% pyhoca-cli --server session-server -N -P pyhoca-xdmcp
pyhoca-cli[16544] NOTICE: preparing requested X2Go session
pyhoca-cli[16544] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[16544] (x2gosessregistry-pylib) NOTICE: registering X2Go session
pyhoca-xdmcp...
pyhoca-cli[16544] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[16544] (x2gocontrolsession-pylib) NOTICE: connecting to
[session-server]:22
pyhoca-cli[16544] (x2goterminalsession-pylib) WARN: XDMCP
pyhoca-cli[16544] (x2goclient-pylib) WARN: HOOK_no_such_command: the
command XDMCP is not available for X2Go server (profile: pyhoca-xdmcp,
session: )
pyhoca-cli[16544] (x2goclient-pylib) WARN: HOOK_session_startup_failed:
session startup for session profile ,,pyhoca-xdmcp failed.
pyhoca-cli[16544] (PyHocaCLI) NOTICE: give the X2Go session some time to
come up...


I'll note here that this also doesn't work with pyhoca-gui (I'm sure I'm
supposed to write this up separately, but I think it's useful to have all
this information together in one place):

% pyhoca-gui
/usr/lib/python2.7/site-packages/pyhoca/wxgui/notify.py:27: PyGIWarning:
Notify was imported without specifying a version first. Use
gi.require_version('Notify', '0.7') before import to ensure that the right
version gets loaded.
  from gi.repository import Notify as _Notify
pyhoca-gui[16667] (PyHoca-GUI) WARN: the current release of PyHoca-GUI does
not support client configuration
pyhoca-gui[16667] (x2gosessregistry-pylib) NOTICE: registering X2Go session
pyhoca-xdmcp...
pyhoca-gui[16667] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-gui[16667] (x2gocontrolsession-pylib) NOTICE: connecting to
[session-server]:22
pyhoca-gui[16667] (PyHoca-GUI) NOTICE: [pyhoca-xdmcp - connect] SSH key
authentication has been successful.
pyhoca-gui[16667] (x2gosessregistry-pylib) NOTICE: using already
initially-registered yet-unused session 0e8c5ce6-9b16-11ec-9567-1866dafa946c
pyhoca-gui[16667] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-gui[16667] (x2goterminalsession-pylib) WARN: XDMCP
pyhoca-gui[16667] (PyHoca-GUI) NOTICE: [pyhoca-xdmcp - session failure] The
command ,,XDMCP'' is not available on X2Go server .
pyhoca-gui[16667] (PyHoca-GUI) NOTICE: [pyhoca-xdmcp - session failure] The
session startup failed.


Finally, I will note that if the session is created by x2goclient, then
suspended, both pyhoca-gui and pyhoca-cli can successfully resume the
session created by the x2goclient.


Here are the versions I'm running:


pyhoca-cli --version

pyhoca-cli[13520] - an X2Go command line client written in Python
----------------------------------------------------------------------
developed by Mike Gabriel <m.gabriel@das-netzwerkteam.de>

VERSION: 0.4.0.3





pyhoca-gui --version
/usr/lib/python2.7/site-packages/pyhoca/wxgui/notify.py:27: PyGIWarning:
Notify was imported without specifying a version first. Use
gi.require_version('Notify', '0.7') before import to ensure that the right
version gets loaded.
  from gi.repository import Notify as _Notify

pyhoca-gui[17078] - an X2Go GUI client written in Python
----------------------------------------------------------------------
developed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
sponsored by Dick Kniep <dick.kniep@lindix.nl> (2010-2016)

VERSION: 0.5.0.5
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Thu Mar 28 22:51:09 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.