X2Go Bug report logs - #1347
X2go ERROR 31 on NixOS

version graph

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

Reported by: Jiahui Tang <tangjiahui26@gmail.com>

Date: Fri, 23 Nov 2018 20:00:01 UTC

Severity: normal

Found in version 4.1.2.1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1347; Package x2goclient. (Fri, 23 Nov 2018 20:00:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jiahui Tang <tangjiahui26@gmail.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Fri, 23 Nov 2018 20:00:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

From: Jiahui Tang <tangjiahui26@gmail.com>
To: submit@bugs.x2go.org
Subject: X2go ERROR 31 on NixOS
Date: Fri, 23 Nov 2018 11:55:29 -0800
[Message part 1 (text/plain, inline)]
Package: x2goclient
Version: 4.1.2.1

I am trying to use x2goclient on NixOS, and installed x2go by "nix-env -iA
nixos.x2goclient" and x2goclient can run successfully. However, when I
tried to create a session to connect the terminal of a lxd container I
build before, I got an error looks like this:

Unable to find the sftp-server binary. Neither bundled, nor found in $PATH
> nor additional directories.


In my configuration.nix, I enabled ssh and also sftp by "
services.openssh.enable = true; services.openssh.allowSFTP = true;", so I
believe the sftp-binary was already installed in my system.  By the way,
actually I think I can access to the lxd container's terminal (got the
terminal on my screen), but once I clicked the ok button on the error
pop-up, the session would be aborted.

I am using NixOS 18.09 and X2go client version is 4.1.2.1. Thanks.

Regards,

Jiahui Tang
[Message part 2 (text/html, inline)]

Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1347; Package x2goclient. (Tue, 18 Jun 2019 10:50:03 GMT) (full text, mbox, link).


Acknowledgement sent to Mihai Moldovan <ionic@ionic.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Tue, 18 Jun 2019 10:50:03 GMT) (full text, mbox, link).


Message #10 received at 1347@bugs.x2go.org (full text, mbox, reply):

From: Mihai Moldovan <ionic@ionic.de>
To: 1347@bugs.x2go.org
Subject: Re: Bug#1347: X2go ERROR 31 on NixOS
Date: Tue, 18 Jun 2019 12:38:39 +0200
[Message part 1 (text/plain, inline)]
We expect to find the sftp-server binary in a specific set of directories
(additionally to $PATH).

For NixOS, I added /run/current-system/sw/bin at some point. If you setup a
special environment, i.e., creating something like /run/nixos.x2goclient/
instead of the default current-system name, I'm afraid you'll have to patch X2Go
Client yourself.

Alternatively, is there any way to detect what directory SHALL be used? We can't
and shouldn't scan for all directories under /run, since even if one contains
the binary we're searching for, we won't know if it is the "system snapshot"
that the user INTENDED to use. However, maybe NixOS sets up a special
environment variable we could use for that - and replace the hardcoded
current-system string with the content of the env variable.



Mihai

[signature.asc (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Dec 4 15:02:32 2022; 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.