Hello list,
This is an older problem I sent to this list a few months ago IIRC. I have two Debian versions which I run in Debian Trixie (Testing):
4.1.0.3-7+deb12u1 4.1.0.6-1.1+b1
The 4.1.0.6-1.1+b1 version is the actual version in Debian Trixie. The 4.1.0.3-7+deb12u1 version is about a year old. What happened:
When upgrading to 4.1.0.6-1.1+b1 session suspend does not work anymore. When I suspend the session, the GUI says "suspending" and finally shows "suspended". When resuming, no screen appears and when retrying to connect, the GUI says "session already running, to forcefully resume it, suspend it first"
Downgrading to 4.1.0.3-7+deb12u1 resolves the issue. I run a custom desktop:
/usr/bin/ssh-agent /usr/bin/wmaker
Any ideas?
Richard.
-- richard lucassen http://contact.xaq.nl/
On Wed, 18 Sep 2024 08:25:51 +0200 richard lucassen <mailinglists@xaq.nl> wrote:
This is an older problem I sent to this list a few months ago IIRC. I have two Debian versions which I run in Debian Trixie (Testing):
4.1.0.3-7+deb12u1 4.1.0.6-1.1+b1
The 4.1.0.6-1.1+b1 version is the actual version in Debian Trixie. The 4.1.0.3-7+deb12u1 version is about a year old. What happened:
When upgrading to 4.1.0.6-1.1+b1 session suspend does not work anymore. When I suspend the session, the GUI says "suspending" and finally shows "suspended". When resuming, no screen appears and when retrying to connect, the GUI says "session already running, to forcefully resume it, suspend it first"
Downgrading to 4.1.0.3-7+deb12u1 resolves the issue. I run a custom desktop:
/usr/bin/ssh-agent /usr/bin/wmaker
I'm trying to find out what happens using version 4.1.0.6, but when reconnecting, the client crashes:
x2go-DEBUG-../src/sshmasterconnection.cpp:2112> Creating new channel.
x2go-DEBUG-../src/sshmasterconnection.cpp:2125> New channel: 0x7f4fd4048900
x2go-DEBUG-../src/sshmasterconnection.cpp:2200> Executing remote: "bash -l -c 'echo \"X2GODATABEGIN:e8395175-ac6e-4f94-ab81-7d0832f37976\"; export PATH=\"/usr/local/bin:/usr/bin:/bin\";export TERM=\"dumb\"; x2gocmdexitmessage richard-50-1727637688_stDwmaker_dp24; echo \"X2GODATAEND:e8395175-ac6e-4f94-ab81-7d0832f37976\";'"
x2go-DEBUG-../src/sshmasterconnection.cpp:2210> "ssh_channel_open_session failed": "Received SSH_MSG_DISCONNECT: 2:ieof packet referred to nonexistent channel 0"
x2go-DEBUG-../src/sshmasterconnection.cpp:1976> Connection to channel went wrong. x2go-DEBUG-../src/sshprocess.cpp:478> I/O error: "ssh_channel_open_session failed."" - Received SSH_MSG_DISCONNECT: 2:ieof packet referred to nonexistent channel 0" (3). Segmentation fault
BTW: Is it possible to set up a connection to x2goserver, not through ssh?
R.
-- richard lucassen http://contact.xaq.nl/
On Sun, 29 Sep 2024 22:01:17 +0200 richard lucassen <mailinglists@xaq.nl> wrote:
[..]
From syslog:
authpriv.info: Sep 29 22:06:38 sshd-session[18121]: pam_unix(sshd:session): session opened for user richard(uid=1001) by richard(uid=0)
user.notice: Sep 29 22:06:43 /usr/bin/x2goresume-session: client 10.241.32.92 has successfully resumed session with ID richard-50-1727639642_stDwmaker_dp24
auth.err: Sep 29 22:06:44 sshd-session[18135]: error: connect_to localhost port 31169: failed.
auth.info: Sep 29 22:06:44 sshd-session[18135]: channel_by_id: 0: bad id: channel free
auth.info: Sep 29 22:06:44 sshd-session[18135]: Disconnecting user richard 10.241.32.92 port 46732: ieof packet referred to nonexistent channel 0
authpriv.info: Sep 29 22:06:44 sshd-session[18121]: pam_unix(sshd:session): session closed for user richard
user.warn: Sep 29 22:07:15 /usr/bin/x2gosetkeyboard: /home/richard/.x2go/C-richard-50-1727639642_stDwmaker_dp24/keyboard did not appear within 30s after agent startup
ssh is still running:
1616 ? Ss 0:00 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups 4962 ? Ss 0:00 \_ sshd-session: richard [priv] 4969 ? S 0:00 \_ sshd-session: richard@notty
But the listening port has disappeared:
# ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 4096 0.0.0.0:54287 0.0.0.0:*
LISTEN 0 4096 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 4096 [::]:42063 [::]:*
LISTEN 0 4096 [::]:111 [::]:*
LISTEN 0 128 [::]:22 [::]:*
23132 ? Ss 0:00 \_ sshd-session: richard [priv] 23138 ? S 0:00 \_ sshd-session: richard@notty
It runs on port 127.0.0.1:57431
ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 4096 0.0.0.0:54287 0.0.0.0:*
LISTEN 0 4096 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 0.0.0.0:22 0.0.0.0:*
LISTEN 0 128 127.0.0.1:57431 0.0.0.0:*
LISTEN 0 4096 [::]:42063 [::]:*
LISTEN 0 128 [::1]:57431 [::]:*
LISTEN 0 4096 [::]:111 [::]:*
LISTEN 0 128 [::]:22 [::]:*
user.notice: Sep 29 22:17:30 /usr/bin/x2goumount-session[24148]: successfully unmounted "/tmp/.x2go-richard/media/disk/_home_richard_x2go"
user.notice: Sep 29 22:17:31 /usr/bin/x2gosuspend-session: session with ID richard-50-1727640825_stDwmaker_dp24 has been suspended successfully
The ssh notty session on port 127.0.0.1:57431 has disappeared. That's OK I think.
syslog:
authpriv.info: Sep 29 22:21:30 sshd-session[24354]: pam_unix(sshd:session): session opened for user richard(uid=1001) by richard(uid=0)
user.notice: Sep 29 22:21:35 /usr/bin/x2goresume-session: client 10.241.32.92 has successfully resumed session with ID richard-50-1727640825_stDwmaker_dp24
auth.err: Sep 29 22:21:36 sshd-session[24360]: error: connect_to localhost port 57429: failed.
auth.info: Sep 29 22:21:36 sshd-session[24360]: channel_by_id: 0: bad id: channel free
auth.info: Sep 29 22:21:36 sshd-session[24360]: Disconnecting user richard 10.241.32.92 port 46648: ieof packet referred to nonexistent channel 0
authpriv.info: Sep 29 22:21:36 sshd-session[24354]: pam_unix(sshd:session): session closed for user richard
Anyone some hints to debug this? I have the idea that somewhere the X tunneling via ssh fails. That's why I'd like to know if it's possible to connect directly to x2goserver. I'm working through a wireguard tunnel, I do not need encryption.
R.
-- richard lucassen http://contact.xaq.nl/