xpra icon
Bug tracker and wiki

Opened 4 months ago

Closed 4 months ago

#2102 closed task (fixed)

sharing, "new connection from same uuid"

Reported by: Nathan Hallquist Owned by: Nathan Hallquist
Priority: minor Milestone: 2.5
Component: server Version: 2.4.x
Keywords: Cc:

Description

I'm trying to share a connection and I'm getting the error message, "new connection from the same uuid". I'm using "ssh".

How do I make this work? I have sharing enabled on the both the client and the server.

If it is not supported with ssh, I offer to update the man page to note this.

Change History (5)

comment:1 Changed 4 months ago by Antoine Martin

Owner: changed from Antoine Martin to Nathan Hallquist

This is meant to prevent the same user from connecting more than once from the same machine. See get_user_uuid()
ie: if the connection is dead, the user might re-connect before the server has had a chance to drop the old connection and we don't want to use sharing in this case (it limits some features).

You can workaround it by specifying XPRA_USER_UUID=whatever xpra attach.

Are you connecting from the same machine?

comment:2 Changed 4 months ago by Nathan Hallquist

I'm connecting from behind a NAT to a proxy to the server. I'm going to guess either the NAT or the proxy alone would be enough to confuse the server into thinking that both sessions are from the same computer.

I'm going to look at how that UUID is calculated and think about how to make sure that both of my clients get a unique UUID from behind a proxy or NAT.

comment:3 Changed 4 months ago by Nathan Hallquist

The two items (HOME and machine_id) going into UUID on windows are empty when run from command prompt in windows. I will fix.

comment:4 Changed 4 months ago by Nathan Hallquist

I found that in win32 get_machine_id was returning blank as was HOME. I believe I have fixed it in r21372. I'm a little new to this. I am requesting that somebody more expert than I inspects the commit.

With this patch I have been able to get screen sharing to work, before this patch I could not get it work (as all my clients are windows).

comment:5 Changed 4 months ago by Antoine Martin

Resolution: fixed
Status: newclosed

Looks good, r21373 just simplifies it a bit.

Note: See TracTickets for help on using tickets.