Hello,

I'm having problems reconnecting to X11rdp sessions. I can't reproduce this
but its occurring quite often.

Log output shows only the following lines, it finds the correct X11rdp
session on display 11 but after that it immediately closes the connection
and the Microsoft RDP client freezes.

2014-12-15T12:42:33.759+01:00 srv1 XRDP-sesman[8213] info:
(8213)(140565769365440)[INFO ] A connection received from: 127.0.0.1 port
46705
2014-12-15T12:42:33.759+01:00 srv1 XRDP[25753] debug:
(25753)(140019385399232)[DEBUG] returnvalue from xrdp_mm_connect 0
2014-12-15T12:42:33.759+01:00 srv1 XRDP-sesman[8213] info:
(8213)(140565769365440)[INFO ] scp thread on sck 8 started successfully
2014-12-15T12:42:33.760+01:00 srv1 XRDP-sesman[8213] notice:
pam_unix(xrdp-sesman:auth): authentication failure; logname= uid=0 euid=0
tty= ruser= rhost=  user=usr1
2014-12-15T12:42:33.769+01:00 srv1 XRDP-sesman[8213] info:
(8213)(140565769144064)[INFO ] ++ reconnected session: username usr1,
display :11.0, session_pid 3526, ip 172.16.51.68:50662 - socket: 8
2014-12-15T12:42:33.770+01:00 srv1 XRDP-sesman[8213] info:
(8213)(140565769144064)[INFO ] An established connection closed to
endpoint: 127.0.0.1:46705 - socket: 8

The process tree looks like this:

    1  8209  8194  1670 ?           -1 S       0:00 /usr/sbin/xrdp
 8209  3500  8194  1670 ?           -1 S       0:30  \_ /usr/sbin/xrdp
 8209 13964  8194  1670 ?           -1 S       0:00  \_ /usr/sbin/xrdp
    1  8213  8194  1670 ?           -1 S       0:00 /usr/sbin/xrdp-sesman
 8213  3526  8194  1670 ?           -1 S       0:00  \_
/usr/sbin/xrdp-sessvc 3528 3527
 3526  3527  8194  1670 ?           -1 S       0:00      \_
/usr/sbin/xrdp-sesman
 3527  3531  8194  1670 ?           -1 S       0:00      |   \_
/usr/bin/ck-xinit-session /usr/bin/ssh-agent /etc/X11/xinit/Xclients
 3531  3579  8194  1670 ?           -1 Sl      0:00      |       \_
/usr/bin/gnome-session
 3579  3580  3580  3580 ?           -1 Ss      0:00      |           \_
/usr/bin/ssh-agent /etc/X11/xinit/Xclients
 3579  3607  8194  1670 ?           -1 S       0:00      |           \_
metacity
 3579  3612  8194  1670 ?           -1 S       0:02      |           \_
gnome-panel
 3579  3622  8194  1670 ?           -1 S       0:15      |           \_
nautilus
 3579  3628  8194  1670 ?           -1 S       0:00      |           \_
/usr/libexec/polkit-gnome-authentication-agent-1
 3526  3528  8194  1670 ?           -1 S       0:44      \_ X11rdp :11
-geometry 1600x900 -depth 24 -bs -ac -nolisten tcp -uds
 3526  3532  8194  1670 ?           -1 Sl      0:00      \_ xrdp-chansrv


xrdp.ini content looks like this

[globals]
# xrdp.ini file version number
ini_version=1

bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=high
allow_channels=true
max_bpp=24
fork=yes

# regulate if the listening socket use socket option tcp_nodelay
# no buffering will be performed in the TCP stack
tcp_nodelay=yes

# regulate if the listening socket use socket option keepalive
# if the network connection disappear without close messages the connection
will be closed
tcp_keepalive=yes

#tcp_send_buffer_bytes=32768
#tcp_recv_buffer_bytes=32768

# when true, userid/password *must* be passed on cmd line
# require_credentials=yes

bulk_compression=yes

# You can set the PAM error text in a gateway setup (MAX 256 chars)
#pamerrortxt=change your password according to policy at http://url
#new_cursors=no
#nego_sec_layer=0
allow_multimon=true

#
# configure login screen
#

# top level window background color in RGB format
ls_top_window_bg_color=003399

# width and height of login screen
ls_width=350
ls_height=430

# login screen background color in RGB format
ls_bg_color=ffffff

# logo
ls_logo_filename=/usr/share/logo.bmp
ls_logo_x_pos=35
ls_logo_y_pos=55

# for positioning labels such as username, password etc
ls_label_x_pos=30
ls_label_width=60

# for positioning text and combo boxes next to above labels
ls_input_x_pos=110
ls_input_width=210

# y pos for first label and combo box
ls_input_y_pos=220

# OK button
ls_btn_ok_x_pos=142
ls_btn_ok_y_pos=370
ls_btn_ok_width=85
ls_btn_ok_height=30

# Cancel button
ls_btn_cancel_x_pos=237
ls_btn_cancel_y_pos=370
ls_btn_cancel_width=85
ls_btn_cancel_height=30

[Logging]
EnableSyslog=1
SyslogLevel=DEBUG

[channels]
# Channel names not listed here will be blocked by XRDP.
# You can block any channel by setting its value to false.
# IMPORTANT! All channels are not supported in all use
# cases even if you set all values to true.
# You can override these settings on each session type
# These settings are only used if allow_channels=true
rdpdr=true
rdpsnd=true
drdynvc=true
cliprdr=true
rail=true
xrdpvr=true

# for debugging xrdp, in section xrdp1, change port=-1 to this:
# port=/tmp/.xrdp/xrdp_display_10

# for debugging xrdp, add following line to section xrdp1
# chansrvport=/tmp/.xrdp/xrdp_chansrv_socket_7210

[xrdp1]
name=sesman-X11rdp
lib=libxup.so
username=ask
password=ask
ip=127.0.0.1
port=-1
xserverbpp=24
code=10

# You can override the common channel settings for each session type
#channel.rdpdr=true
#channel.rdpsnd=true
#channel.drdynvc=true
#channel.cliprdr=true
#channel.rail=true
#channel.xrdpvr=true


Content of sesman.ini:

[Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=1
UserWindowManager=startwm.sh
DefaultWindowManager=startwm.sh

[Security]
AllowRootLogin=1
MaxLoginRetry=4
TerminalServerUsers=tsusers
TerminalServerAdmins=tsadmins
# When AlwaysGroupCheck = false access will be permitted
# if the group TerminalServerUsers is not defined.
AlwaysGroupCheck = false

[Sessions]
X11DisplayOffset=10
MaxSessions=50
# if 1, true, or yes, kill session after 60 seconds
KillDisconnected=0
# if not zero, the seconds without mouse or keyboard input before disconnect
# not complete yet
IdleTimeLimit=0
# if not zero, the seconds before a disconnected session is killed
# min 60 seconds
DisconnectedTimeLimit=0

[Logging]
EnableSyslog=1
SyslogLevel=DEBUG

[X11rdp]
param1=-bs
param2=-ac
param3=-nolisten
param4=tcp
param5=-uds

[Xvnc]
param1=-bs
param2=-ac
param3=-nolisten
param4=tcp
param5=-localhost
param6=-dpi
param7=96

[Chansrv]
# drive redirection, defaults to xrdp_client if not set
FuseMountName=thinclient_drives


I have to kill the X11rdp thats making trouble and a new Session is
created. It is not possible to reconnect to this session any more.
Is there any info i can provide to make debugging easier?

Used software is xrdp 0.8.0 running on rhel6.3. Connected via Windows 7 RDP
client.


BR,
Lionel
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
xrdp-devel mailing list
xrdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xrdp-devel

Reply via email to