Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display in connection string not honoured when trying to attach to a running session #3331

Closed
subjut opened this issue Oct 28, 2021 · 3 comments
Labels
bug Something isn't working proxy

Comments

@subjut
Copy link

subjut commented Oct 28, 2021

I have a xpra (4.2.3) proxy server running on Ubuntu 20.04 as a system service configured to be connected to with ssl and the self signed default certificate. With the Windows client (x86_64_4.3-r29365), the display option in the connection string is not honored when attaching to a running session. Instead a new session is started with a different display, usually the first available.

This is the sequence of commands used:

xpra start ssl://test:password@[IP]:[PORT]/5 --start-child=xterm --ssl-server-verify-mode=none

This works fine and the xterm window is shown.

xpra list then shows

Found the following xpra sessions:
/run/user/1001/xpra:
     LIVE session at :5
/run/xpra:
     LIVE session at :20  [this is the proxy server]
/run/test/.xpra:
     LIVE session at :5

After disconnecting the windows client, not closing the xterm window, I run:

xpra attach ssl://test:password@[IP]:[PORT]/5 --ssl-server-verify-mode=none

xpra list:

Found the following xpra sessions:
/run/user/1001/xpra:
     LIVE session at :1
     LIVE session at :5
/run/xpra:
     LIVE session at :20  [this is the proxy server]
/run/test/.xpra:
     LIVE session at :1
     LIVE session at :5

I have also tested this from a remote Ubuntu vm running the latest xpra version from the repository (4.2.3-r12) with the same results.
This raises the problem, that there is no way to reconnect to the session at display :5 after disconnecting and leaving the xterm window open.

@totaam totaam added bug Something isn't working proxy labels Oct 29, 2021
@totaam totaam changed the title Dispaly in connection string not honored when attatching to running session Display in connection string not honoured when trying to attach to a running session Oct 29, 2021
@totaam
Copy link
Collaborator

totaam commented Oct 29, 2021

Works for me with master and 4.2.x on Fedora.
Worked with master on Ubuntu. Will try 4.2.x later.

@subjut
Copy link
Author

subjut commented Oct 30, 2021

If it helps, this is the proxy service config:

/usr/bin/xpra proxy :20 --daemon=no \
    --tcp-auth=${TCP_AUTH} \
    --ssl-cert=/etc/xpra/ssl-cert.pem --ssl=on --ssl-auth=sys \
    --bind-ssl=0.0.0.0:[PORT] --auth=${AUTH} --socket-dirs=/run/xpra --socket-permissions=666 \
    --log-dir=/var/log --pidfile=/run/xpra/proxy.pid --debug=${DEBUG}

@totaam
Copy link
Collaborator

totaam commented Oct 31, 2021

Also works for me on Ubuntu 20.04 with a default config, fresh install:

  • 4.2.3-r28496 (build from current 4.2.x branch)
  • 4.3-r30283 from beta repo

The bug only occurs with 4.2.3-r12-2 from the stable repo

This is the same bug discussed in #3276 - already fixed.

@totaam totaam closed this as completed Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working proxy
Projects
None yet
Development

No branches or pull requests

2 participants