net/xrdp: Issue(s) with Channels/Clipboard.

Janky Jay, III jankyj at unfs.us
Fri Feb 15 18:31:41 UTC 2019


Hi All,

	So, I noticed this quite a while back but it didn't bother me too much.
However, my curiosity has gotten the best of me and now I want to find
out what's going on.

	I'm running net/xrdp (version 0.9.9,1 installed via pkg) on two
different, headless FBSD 11.2-Rp9 systems and they're behaving
differently with 100% identical configurations. On both, the xrdp and
sesman services start without any errors at all. However, on one of the
systems upon authentication during login, I get the below errors in the
xrdp.log file:

[DEBUG] xrdp_wm_log_msg: connected ok
[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[DEBUG] Closed socket 20 (AF_UNIX)
[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[DEBUG] Closed socket 20 (AF_UNIX)
[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[DEBUG] Closed socket 20 (AF_UNIX)
[ERROR] xrdp_mm_connect_chansrv: connect failed trying again...
[ERROR] xrdp_mm_connect_chansrv: error in trans_connect chan

	This is very similar to the issue reported at
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231210 but the issue
was closed with "works as expected". Apparently, that's not the case on
all systems?

	This also causes the connection to take 16 seconds to open XFCE4 once
it finally gives up on channels. I see 4 errors so I'm guessing there's
a 4 second timeout between attempts. Something similar to the
issue/recommendation reported at
https://github.com/neutrinolabs/xrdp/issues/1288. I've tried the
recommended disallowing of channels to see if it would connect faster
but it does nothing. Still attempts the connections to "chansrv" and
takes 16 seconds.

	What is even more strange is that for about 3-4 months or so, this
system began connecting to channels like normal and and worked liked the
other. Then, suddenly, stopped connecting one day (I'm not sure when it
stopped but it would've been in the last 2 months or so?).

	On the system that works without any issues, I see the "chansrv"
connection successful after authentication and login is immediate:

[DEBUG] xrdp_wm_log_msg: connected ok
[DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful

	All software is up-to-date on both systems and, as mentioned before,
configuration files are absolutely identical. So, I'm curious as to why
one is able to connect to channels while the other is not? If anyone has
any ideas or wants additional info/logs/etc... I'm all ears and will be
more than happy to provide any additional details.

Regards,
Janky Jay, III



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20190215/143993c9/attachment.sig>


More information about the freebsd-ports mailing list