Windows Remote Desktop/Centos 7 xrdp connection fails with "some problem"

General support questions
Post Reply
BGood
Posts: 18
Joined: 2016/12/25 02:40:14

Windows Remote Desktop/Centos 7 xrdp connection fails with "some problem"

Post by BGood » 2017/01/08 20:00:10

With the help of Centos forum resources, I added GUI (MATE Desktop) support to a dedicated Centos 7 web server (Centos 7 Live DVD - Can Gnome/GUI be installed later? viewtopic.php?f=47&t=60762).

While the MATE desktop is a convenient addition to the main server console, I would also like to provide remote GUI capability to my main workstation which is a Windows 7 desktop. I am trying to connect remotely to the MATE desktop using a Windows Remote Desktop client on the Windows side and xrdp on the Centos side, but am encountering a "some problem" VNC connection error which I think is coming from the Centos side:
xrdp screenshot.jpg
xrdp screenshot.jpg (72.36 KiB) Viewed 41733 times
The components I am using include:

Code: Select all

Windows:	Remote Desktop Connection Shell Version 6.3.9600 (Supports Network Level Authentication and RDP 8.1)
Linux:	CentOS Linux release 7.2.1511 (Core)
Linux:	xrdp.x86_64 version 1:0.9.0-4.el7 from @epel
Linux:	tigervnc.x86_64  version 1.3.1-9.el7  from @base
Linux:	tigervnc-server.x86_64 version 1.3.1-9.el7 from @base
My xdrp.log sequence for the failed session is as follows:

Code: Select all

[20170108-19:19:04] [INFO ] A connection received from: 10.0.0.154 port 51143
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: 10.0.0.154:51143 - socket: 8
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 7
[20170108-19:19:04] [CORE ] WARNING: Invalid x.509 certificate path defined, default path will be used: /etc/xrdp/cert.pem
[20170108-19:19:04] [WARN ] Invalid X.509 certificate path defined, default path will be used: /etc/xrdp/key.pem
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 8
[20170108-19:19:04] [ERROR] Listening socket is in wrong state we terminate listener
[20170108-19:19:04] [INFO ] A connection received from: 10.0.0.154 port 51144
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: 10.0.0.154:51144 - socket: 8
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 7
[20170108-19:19:04] [CORE ] WARNING: Invalid x.509 certificate path defined, default path will be used: /etc/xrdp/cert.pem
[20170108-19:19:04] [WARN ] Invalid X.509 certificate path defined, default path will be used: /etc/xrdp/key.pem
[20170108-19:19:04] [DEBUG] xrdp_00001058_wm_login_mode_event_00000001
[20170108-19:19:04] [WARN ] local keymap file for 0x0409 found and dosen't match built in keymap, using local keymap file
[20170108-19:19:04] [DEBUG] returnvalue from xrdp_mm_connect 0
[20170108-19:19:07] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:08] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:09] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:10] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:11] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:12] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:13] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:14] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:15] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:16] [DEBUG] VNC Error after security negotiation
[20170108-19:19:16] [DEBUG] VNC error before sending share flag
[20170108-19:19:16] [DEBUG] VNC error before receiving server init
[20170108-19:19:16] [DEBUG] VNC error before receiving pixel format
[20170108-19:19:16] [DEBUG] VNC error before receiving name length
[20170108-19:19:16] [DEBUG] VNC error before receiving name
[20170108-19:19:16] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 12
[20170108-19:19:16] [DEBUG] xrdp_mm_module_cleanup
[20170108-19:19:16] [DEBUG] VNC mod_exit
[20170108-19:19:16] [INFO ] An established connection closed to endpoint: 127.0.0.1:3350 - socket: 11
My xrdp-sesman.log sequence for the failed session is as follows:

Code: Select all

[20170108-19:17:18] [WARN ] [init:46] libscp initialized
[20170108-19:17:18] [CORE ] starting sesman with pid 4180
[20170108-19:17:18] [INFO ] listening...
[20170108-19:19:04] [INFO ] A connection received from: 127.0.0.1 port 38634
[20170108-19:19:04] [INFO ] scp thread on sck 8 started successfully
[20170108-19:19:04] [INFO ] ++ created session (access granted): username brian, ip 10.0.0.154:51144 - socket: 8
[20170108-19:19:04] [INFO ] starting Xvnc session...
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 9
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 9
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 9
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 9
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 9
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: 127.0.0.1:38634 - socket: 8
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: NULL:NULL - socket: 7
[20170108-19:19:04] [INFO ] An established connection closed to endpoint: 127.0.0.1:38634 - socket: 8
[20170108-19:19:04] [ERROR] env_set_user: error creating .vnc dir
[20170108-19:19:04] [INFO ] Xvnc :11 -geometry 1280x768 -depth 24 -rfbauth /home/brian/.vnc/sesman_brian_passwd -bs -nolisten tcp -localhost -dpi 96 -depth 24  
[20170108-19:19:05] [INFO ] starting xrdp-sessvc - xpid=4188 - wmpid=4187
[20170108-19:19:05] [INFO ] ++ terminated session:  username brian, display :11.0, session_pid 4186, ip 10.0.0.154:51144 - socket: 8
I would be grateful if a community member more skilled than I (which I suspect is just about everyone) could provide some guidance in resolving this connection problem. I can provide additional .ini configuration information if that would be helpful. Thanks!

BGood
Posts: 18
Joined: 2016/12/25 02:40:14

Re: Windows Remote Desktop/Centos 7 xrdp connection fails with "some problem"

Post by BGood » 2017/01/09 17:21:48

I am not exactly sure how, but I finally was able to connect from the Windows 7 Remote Desktop client into the Centos 7 xrdp MATE desktop and having a remote GUI interface is a great productivity improvement over complete reliance on the command line. For others facing similar obstacles, I think the suggestions in https://new.seei.biz/installing-mate-on-centos-7/ were most helpful.

FAB5FLAVE
Posts: 1
Joined: 2017/08/23 14:58:59

Re: Windows Remote Desktop/Centos 7 xrdp connection fails with "some problem"

Post by FAB5FLAVE » 2017/08/23 15:19:27

Installed xdrp and tigervnc windows RDP connected no problem.

Installed MATE Desktop got the same "some problem" error when trying to connect.

Tried numerous things to get this working like changing port number, reinstalling xdrp and tigervnc etc.....

Eventually resolved the issue by removing xrdp and tigervnc and reinstalling

yum remove xrdp
yum remove tigervnc-server.x86_64
yum remove tigervnc-server-minimal.x86_64
reboot

Reinstalled using

http://www.elinuxbook.com/configure-xrd ... -in-linux/

systemctl start xrdp

Didn't start
systemd[1]: Started xrdp daemon.
systemd[1]: Starting xrdp daemon...
systemd[3144]: Failed at step EXEC spawning /usr/sbin/xrdp: Permission denied
systemd[1]: xrdp.service: main process exited, code=exited, status=203/EXEC
systemd[1]: Unit xrdp.service entered failed state.
systemd[1]: xrdp.service failed.

So ran the following
chcon -t bin_t /usr/sbin/xrdp
chcon -t bin_t /usr/sbin/xrdp-sesman

systemctl start xrdp

WORKED!!

raturi.aman
Posts: 1
Joined: 2018/05/27 10:58:43

Re: Windows Remote Desktop/Centos 7 xrdp connection fails with "some problem"

Post by raturi.aman » 2018/05/27 11:04:56

I'm still facing this error

here is my logs:

xrdp.log

Code: Select all

eymap file
[20180527-10:52:15] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180527-10:52:15] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180527-10:52:15] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180527-10:52:15] [DEBUG] return value from xrdp_mm_connect 0
[20180527-10:52:16] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20180527-10:52:16] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20180527-10:52:16] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20180527-10:52:19] [DEBUG] VNC error 1 after security negotiation
[20180527-10:52:19] [DEBUG] VNC error before sending share flag
[20180527-10:52:19] [DEBUG] VNC error before receiving server init
[20180527-10:52:19] [DEBUG] VNC error before receiving pixel format
[20180527-10:52:19] [DEBUG] VNC error before receiving name length
[20180527-10:52:19] [DEBUG] VNC error before receiving name
[20180527-10:52:19] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20180527-10:52:19] [DEBUG] Closed socket 19 (AF_INET 0.0.0.0:58016)
[20180527-10:52:19] [DEBUG] xrdp_wm_log_msg: some problem
[20180527-10:52:19] [DEBUG] xrdp_mm_module_cleanup
[20180527-10:52:19] [DEBUG] VNC mod_exit
[20180527-10:52:19] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:56478)
[20180527-10:56:21] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180527-10:56:22] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180527-10:56:22] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180527-10:56:22] [DEBUG] return value from xrdp_mm_connect 0
[20180527-10:56:22] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20180527-10:56:22] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20180527-10:56:22] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20180527-10:56:25] [DEBUG] VNC error 1 after security negotiation
[20180527-10:56:25] [DEBUG] VNC error before sending share flag
[20180527-10:56:25] [DEBUG] VNC error before receiving server init
[20180527-10:56:25] [DEBUG] VNC error before receiving pixel format
[20180527-10:56:25] [DEBUG] VNC error before receiving name length
[20180527-10:56:25] [DEBUG] VNC error before receiving name
[20180527-10:56:25] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20180527-10:56:25] [DEBUG] Closed socket 19 (AF_INET 0.0.0.0:58350)
[20180527-10:56:25] [DEBUG] xrdp_wm_log_msg: some problem
[20180527-10:56:25] [DEBUG] xrdp_mm_module_cleanup
[20180527-10:56:25] [DEBUG] VNC mod_exit
[20180527-10:56:25] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:56814)
xrdp-sesman.log

Code: Select all

[20180527-10:52:16] [INFO ] starting Xvnc session...
[20180527-10:52:16] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20180527-10:52:16] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20180527-10:52:16] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20180527-10:52:16] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180527-10:52:16] [INFO ] calling auth_start_session from pid 11858
[20180527-10:52:16] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180527-10:52:16] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180527-10:52:16] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1364x768 -depth 32 -rfbauth /home/datacouch/.vnc/sesman_passwd-datacouch@datacouch:10 -bs -nolisten tcp -localhost -dpi 96  
[20180527-10:52:16] [CORE ] waiting for window manager (pid 11859) to exit
[20180527-10:52:16] [CORE ] window manager (pid 11859) did exit, cleaning up session
[20180527-10:52:16] [INFO ] calling auth_stop_session and auth_end from pid 11858
[20180527-10:52:16] [DEBUG] cleanup_sockets:
[20180527-10:52:16] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_10
[20180527-10:52:16] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20180527-10:52:16] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdpapi_10
[20180527-10:52:16] [INFO ] ++ terminated session:  username datacouch, display :10.0, session_pid 11858, ip 45.64.10.122:64772 - socket: 12
[20180527-10:56:21] [INFO ] A connection received from 127.0.0.1 port 56814
[20180527-10:56:22] [INFO ] ++ created session (access granted): username datacouch, ip 45.64.10.122:64772 - socket: 12
[20180527-10:56:22] [INFO ] starting Xvnc session...
[20180527-10:56:22] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:5910)
[20180527-10:56:22] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6010)
[20180527-10:56:22] [DEBUG] Closed socket 9 (AF_INET 0.0.0.0:6210)
[20180527-10:56:22] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180527-10:56:22] [INFO ] calling auth_start_session from pid 12664
[20180527-10:56:22] [DEBUG] Closed socket 7 (AF_INET 127.0.0.1:3350)
[20180527-10:56:22] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20180527-10:56:22] [INFO ] Xvnc :10 -auth .Xauthority -geometry 1364x768 -depth 32 -rfbauth /home/datacouch/.vnc/sesman_passwd-datacouch@datacouch:10 -bs -nolisten tcp -localhost -dpi 96  
[20180527-10:56:22] [CORE ] waiting for window manager (pid 12667) to exit
[20180527-10:56:22] [CORE ] window manager (pid 12667) did exit, cleaning up session
[20180527-10:56:22] [INFO ] calling auth_stop_session and auth_end from pid 12664
[20180527-10:56:22] [DEBUG] cleanup_sockets:
[20180527-10:56:22] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_10
[20180527-10:56:22] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_10
[20180527-10:56:22] [DEBUG] cleanup_sockets: failed to delete /tmp/.xrdp/xrdpapi_10
[20180527-10:56:22] [INFO ] ++ terminated session:  username datacouch, display :10.0, session_pid 12664, ip 45.64.10.122:64772 - socket: 12

kanedayo
Posts: 1
Joined: 2018/12/30 18:01:15

Re: Windows Remote Desktop/Centos 7 xrdp connection fails with "some problem"

Post by kanedayo » 2018/12/30 18:25:41

I solved the similar problem the way like below:
Thank you so much for your hint.

Code: Select all

# yum groups -y remove "GNOME Desktop"
# yum groups -y install "GNOME Desktop"
# systemctrl restart xrdp

Post Reply