Vnc error 1 after security negotiation

Vnc error 1 after security negotiation Short story: Can not get xrdp via VNC working due to VNC error «VNC error 1 after security negotiation» Yes, I have spent a day looking at / trying all the other online suggestions, with no success. No offense to any of the suggestions, but they seem to […]

Содержание

  1. Vnc error 1 after security negotiation
  2. CentOS
  3. Windows Remote Desktop/Centos 7 xrdp connection fails with «some problem»
  4. Windows Remote Desktop/Centos 7 xrdp connection fails with «some problem»
  5. Re: Windows Remote Desktop/Centos 7 xrdp connection fails with «some problem»
  6. Re: Windows Remote Desktop/Centos 7 xrdp connection fails with «some problem»
  7. Connection refused #1718
  8. Comments

Vnc error 1 after security negotiation

Short story: Can not get xrdp via VNC working due to VNC error «VNC error 1 after security negotiation»

Yes, I have spent a day looking at / trying all the other online suggestions, with no success. No offense to any of the suggestions, but they seem to be really random on getting to the root cause of the problem and are using older versions of the software (but interesting that the same problem has been around for awhile)

Long story: Clean install of Raspbain 2018.11

Linux raspberrypi 4.14.83v7-aufs #1 SMP Wed Nov 28 22:52:43 CET 2018 armv7l GNU/Linux

Changes from new install based on the minimal info from this site to run xrdp as there is a conflict with install vnc server:
sudo apt-get purge realvnc-vnc-server
sudo apt-get install tightvncserver
sudo apt-get install xrdp

Based on the xrdp website architecture information I can test out the xrdp -> libxup -> X11rdp path is working. (See attachment)

This session works so xrdp, sesman and X11 is working. Now if we try xrdp with vnc. we get an error (See attachments)

Looking at the logfile /var/logs/xrdp.log gives us some indication of what might be happening:

[20181229-14:06:33] [INFO ] starting xrdp with pid 19399
[20181229-14:06:33] [INFO ] listening to port 3389 on 0.0.0.0
[20181229-14:13:21] [INFO ] A connection received from: ::ffff:192.168.2.220 port 54992
[20181229-14:13:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.161 port 3389)
[20181229-14:13:21] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20181229-14:13:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20181229-14:13:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20181229-14:13:21] [DEBUG] Security layer: requested 11, selected 0
[20181229-14:13:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.161 port 3389)
[20181229-14:13:21] [INFO ] A connection received from: ::ffff:192.168.2.220 port 54993
[20181229-14:13:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.161 port 3389)
[20181229-14:13:21] [ERROR] Listening socket is in wrong state, terminating listener
[20181229-14:13:21] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20181229-14:13:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20181229-14:13:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20181229-14:13:21] [DEBUG] Security layer: requested 0, selected 0
[20181229-14:13:22] [DEBUG] xrdp_00005328_wm_login_mode_event_00000001
[20181229-14:13:22] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20181229-14:13:22] [WARN ] local keymap file for 0x00000409 found and doesn’t match built in keymap, using local keymap file
[20181229-14:14:15] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20181229-14:14:16] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20181229-14:14:16] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait.
[20181229-14:14:16] [DEBUG] return value from xrdp_mm_connect 0
[20181229-14:14:16] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20181229-14:14:16] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20181229-14:14:16] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5911
[20181229-14:14:19] [DEBUG] VNC error 1 after security negotiation
[20181229-14:14:19] [DEBUG] VNC error before sending share flag
[20181229-14:14:19] [DEBUG] VNC error before receiving server init
[20181229-14:14:19] [DEBUG] VNC error before receiving pixel format
[20181229-14:14:19] [DEBUG] VNC error before receiving name length
[20181229-14:14:19] [DEBUG] VNC error before receiving name
[20181229-14:14:19] [DEBUG] xrdp_wm_log_msg: VNC error — problem connecting
[20181229-14:14:19] [DEBUG] Closed socket 17 (AF_INET6 :: port 39136)
[20181229-14:14:20] [DEBUG] xrdp_wm_log_msg: some problem
[20181229-14:14:20] [DEBUG] xrdp_mm_module_cleanup
[20181229-14:14:20] [DEBUG] VNC mod_exit

Just to check that everything is listening on the right ports

pi@raspberrypi:/var/log $ netstat —listen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:5911 0.0.0.0:* LISTEN
tcp6 0 0 localhost:3350 [::]:* LISTEN
tcp6 0 0 [::]:3389 [::]:* LISTEN

Any suggestions on either using a different VNC server or how to get further debug information for tightvncserver to get to the root cause of what is going on here?

Источник

CentOS

The Community ENTerprise Operating System

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

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:

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

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

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

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

Источник

Connection refused #1718

[20201110-17:18:50] [INFO ] Socket 11: AF_INET connection received from 10.242.25.190 port 62373
[20201110-17:18:50] [DEBUG] Closed socket 11 (AF_INET 10.242.48.203:3389)
[20201110-17:18:50] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:3389)
[20201110-17:18:50] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20201110-17:18:50] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20201110-17:18:50] [DEBUG] TLSv1.3 enabled
[20201110-17:18:50] [DEBUG] TLSv1.2 enabled
[20201110-17:18:50] [DEBUG] Security layer: requested 3, selected 1
[20201110-17:18:50] [INFO ] connected client computer name: HIH-L-4407.loca
[20201110-17:18:50] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0xc0800000
[20201110-17:18:50] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20201110-17:18:50] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20201110-17:18:51] [INFO ] TLS connection established from 10.242.25.190 port 62373: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20201110-17:18:51] [DEBUG] xrdp_0000fcd5_wm_login_mode_event_00000001
[20201110-17:18:51] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20201110-17:18:51] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20201110-17:18:51] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20201110-17:18:51] [WARN ] local keymap file for 0x00000804 found and doesn’t match built in keymap, using local keymap file
[20201110-17:19:03] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20201110-17:19:03] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20201110-17:19:03] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait.
[20201110-17:19:03] [DEBUG] return value from xrdp_mm_connect 0
[20201110-17:19:03] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20201110-17:19:03] [DEBUG] xrdp_wm_log_msg: started connecting
[20201110-17:19:07] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:11] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:14] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:18] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:21] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:25] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:28] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:32] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:35] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:38] [INFO ] Socket 11: AF_INET connection received from 10.242.25.190 port 62494
[20201110-17:19:38] [DEBUG] Closed socket 11 (AF_INET 10.242.48.203:3389)
[20201110-17:19:38] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:3389)
[20201110-17:19:38] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20201110-17:19:38] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20201110-17:19:38] [DEBUG] TLSv1.3 enabled
[20201110-17:19:38] [DEBUG] TLSv1.2 enabled
[20201110-17:19:38] [DEBUG] Security layer: requested 3, selected 1
[20201110-17:19:38] [INFO ] connected client computer name: HIH-L-4407.loca
[20201110-17:19:38] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0xc0800000
[20201110-17:19:38] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20201110-17:19:38] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20201110-17:19:39] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:39] [INFO ] TLS connection established from 10.242.25.190 port 62494: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20201110-17:19:39] [DEBUG] xrdp_0000fcf7_wm_login_mode_event_00000001
[20201110-17:19:39] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20201110-17:19:39] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20201110-17:19:39] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20201110-17:19:39] [WARN ] local keymap file for 0x00000804 found and doesn’t match built in keymap, using local keymap file
[20201110-17:19:42] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:43] [DEBUG] Closed socket 11 (AF_INET 10.242.48.203:3389)
[20201110-17:19:43] [DEBUG] xrdp_mm_module_cleanup
[20201110-17:19:46] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:49] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:53] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:19:53] [INFO ] Socket 11: AF_INET connection received from 10.242.25.190 port 62534
[20201110-17:19:53] [DEBUG] Closed socket 11 (AF_INET 10.242.48.203:3389)
[20201110-17:19:53] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:3389)
[20201110-17:19:53] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20201110-17:19:53] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20201110-17:19:53] [DEBUG] TLSv1.3 enabled
[20201110-17:19:53] [DEBUG] TLSv1.2 enabled
[20201110-17:19:53] [DEBUG] Security layer: requested 3, selected 1
[20201110-17:19:53] [INFO ] connected client computer name: HIH-L-4407.loca
[20201110-17:19:53] [INFO ] adding channel item name rdpdr chan_id 1004 flags 0xc0800000
[20201110-17:19:53] [INFO ] adding channel item name rdpsnd chan_id 1005 flags 0xc0000000
[20201110-17:19:53] [INFO ] adding channel item name cliprdr chan_id 1006 flags 0xc0a00000
[20201110-17:19:54] [INFO ] TLS connection established from 10.242.25.190 port 62534: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384
[20201110-17:19:55] [DEBUG] xrdp_0000fd02_wm_login_mode_event_00000001
[20201110-17:19:55] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20201110-17:19:55] [INFO ] Cannot find keymap file /etc/xrdp/km-00000804.ini
[20201110-17:19:55] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20201110-17:19:55] [WARN ] local keymap file for 0x00000804 found and doesn’t match built in keymap, using local keymap file
[20201110-17:19:56] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:00] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:02] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20201110-17:20:02] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5900
[20201110-17:20:02] [DEBUG] xrdp_wm_log_msg: VNC tcp connected
[20201110-17:20:02] [DEBUG] xrdp_wm_log_msg: VNC security level is 0 (1 = none, 2 = standard)
[20201110-17:20:02] [DEBUG] VNC Server will disconnect
[20201110-17:20:02] [DEBUG] VNC error 1 after security negotiation
[20201110-17:20:02] [DEBUG] VNC error before sending share flag
[20201110-17:20:02] [DEBUG] VNC error before receiving server init
[20201110-17:20:02] [DEBUG] VNC error before receiving pixel format
[20201110-17:20:02] [DEBUG] VNC error before receiving name length
[20201110-17:20:02] [DEBUG] VNC error before receiving name
[20201110-17:20:02] [DEBUG] xrdp_wm_log_msg: VNC error — problem connecting
[20201110-17:20:02] [DEBUG] Closed socket 17 (AF_INET 127.0.0.1:62930)
[20201110-17:20:02] [DEBUG] xrdp_wm_log_msg: some problem
[20201110-17:20:02] [ERROR] xrdp_wm_log_msg: Error connecting to: 127.0.0.1
[20201110-17:20:02] [DEBUG] xrdp_mm_module_cleanup
[20201110-17:20:02] [DEBUG] VNC mod_exit
[20201110-17:20:02] [DEBUG] return value from xrdp_mm_connect 1
[20201110-17:20:03] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:07] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:10] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:14] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:17] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:21] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:25] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:28] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:32] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:35] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:39] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:42] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:46] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:49] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:53] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:20:56] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:00] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:03] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:07] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:10] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:14] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:17] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:21] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:24] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:28] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:32] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:35] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:39] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:42] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:46] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:49] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:53] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:21:56] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:00] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:03] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:07] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:10] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:14] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:17] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:21] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:24] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:28] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:31] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:34] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20201110-17:22:34] [DEBUG] Closed socket 18 (AF_UNIX)
[20201110-17:22:34] [DEBUG] xrdp_wm_log_msg: some problem
[20201110-17:22:34] [DEBUG] xrdp_mm_module_cleanup
[20201110-17:22:34] [DEBUG] Closed socket 17 (AF_INET 127.0.0.1:62908)
[20201110-17:22:34] [DEBUG] Closed socket 11 (AF_INET 10.242.48.203:3389)
[20201110-17:22:35] [DEBUG] xrdp_mm_module_cleanup

The text was updated successfully, but these errors were encountered:

The VNC module currently only supports the «VNC authentication» method, or no authentication at all. This message indicates the VNC module and the VNC server could not agree on a security type:-

How are you starting the VNC server? Are you able to change the security type it’s using?

Источник

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

Comments

@kristiandrucker

Hi, I have xrdp 0.9.1 on ubuntu 16.04 and I want to connect to kvm vm via vnc using xrdp. When I’m connecting I get

VNC error - problem connecting
some error

Here is the log:

[20170531-09:28:33] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20170531-09:28:33] [DEBUG] xrdp_wm_log_msg: VNC connecting to localhost 5901
[20170531-09:28:36] [DEBUG] VNC error 1 after security negotiation
[20170531-09:28:36] [DEBUG] VNC error before sending share flag
[20170531-09:28:36] [DEBUG] VNC error before receiving server init
[20170531-09:28:36] [DEBUG] VNC error before receiving pixel format
[20170531-09:28:36] [DEBUG] VNC error before receiving name length
[20170531-09:28:36] [DEBUG] VNC error before receiving name
[20170531-09:28:36] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20170531-09:28:36] [DEBUG] Closed socket 16 (AF_INET6 :: port 33870)
[20170531-09:28:36] [DEBUG] xrdp_wm_log_msg: some problem
[20170531-09:28:36] [ERROR] xrdp_wm_log_msg: Error connecting to: localhost
[20170531-09:28:36] [DEBUG] xrdp_mm_module_cleanup
[20170531-09:28:36] [DEBUG] VNC mod_exit
[20170531-09:28:36] [DEBUG] return value from xrdp_mm_connect 1

The vnc server should be working, because I was able to connect to it via vnc client.

Please may you help me?

@metalefty

Can you try uncomment delay_ms in xrdp.ini?

@kristiandrucker

@metalefty I did and the same error. This is the section, everything else should be default.

[Xvnc]
name=Xvnc
lib=libvnc.so
username=
password=ask
ip=127.0.0.1
port=ask
#xserverbpp=24
delay_ms=2000

@dean-hunter

I am getting the same error on Fedora 24, 25 and 26 beta.

@metalefty

@dean-hunter

Regarding xorgxrdp, there is no such file /etc/X11/Xwrapper.config.

Regarding SELinux, xrdp-selinux had not been installed. However, the problem persists after installing and restarting the machine.

Regarding #755, I never see a desktop so there is no opportunity to use the clipboard.

@dean-hunter

I did update sesman.ini as recommended by #755, but the problem persists.

@dean-hunter

I guess I should mention that I have these versions installed:
tigervnc-server-minimal.x86_64 1.8.0-1.fc26
xorgxrdp.x86_64 0.2.2-1.fc26
xrdp.x86_64 1:0.9.2-12.fc26
xrdp-selinux.x86_64 1:0.9.2-12.fc26

@metalefty

I meant VNC part of README.Fedora. You can ignore other parts. Thanks for version info.

@dean-hunter

I did update the Xvnc stanza of /etc/xrdp/sesman.ini, but the problem persists.

[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96
param=-AcceptCutText=0
param=-SendCutText=0
param=-SendPrimary=0
param=-SetPrimary=0

@siepkes

Same as above on CentOS 7.3 (fully patched).

TigerVNC’s version is 1.3.1 on CentOS 7 so the above fixes don’y apply since the Fedora readme indicates it’s for TigerVNC >= 1.8.0. Trying to use them results in a Unrecognized option: -SendPrimary=0.

@metalefty

OK, it turned out that this issue is not identical to #755. Let’s forget everything about #755.

@dean-hunter

Is there any other information you need to help resolve this issue?

@grishin-a

Ubuntu 16.04.2 LTS xrdp 0.9.2

[20170714-15:47:21] [INFO ] xrdp_wm_log_msg: login successful for display 12
[20170714-15:47:21] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20170714-15:47:21] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5912
[20170714-15:47:24] [DEBUG] VNC error 1 after security negotiation
[20170714-15:47:24] [DEBUG] VNC error before sending share flag
[20170714-15:47:24] [DEBUG] VNC error before receiving server init
[20170714-15:47:24] [DEBUG] VNC error before receiving pixel format
[20170714-15:47:24] [DEBUG] VNC error before receiving name length
[20170714-15:47:24] [DEBUG] VNC error before receiving name
[20170714-15:47:24] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20170714-15:47:24] [DEBUG] Closed socket 25 (AF_INET 0.0.0.0:42388)
[20170714-15:47:24] [DEBUG] xrdp_wm_log_msg: some problem
[20170714-15:47:24] [DEBUG] xrdp_mm_module_cleanup
[20170714-15:47:24] [DEBUG] VNC mod_exit
[20170714-15:47:24] [DEBUG] Closed socket 24 (AF_INET 127.0.0.1:40894)
[20170714-15:47:31] [DEBUG] Closed socket 12 (AF_INET 192.168.125.18:3389)
[20170714-15:47:31] [DEBUG] xrdp_mm_module_cleanup
[20170714-15:47:32] [ERROR] Listening socket is in wrong state, terminating list
ener

https://pastebin.com/u54NN1Wp
Fedora 26 xrdp 0.9.3
firewall/selinux disabled

[20170714-15:39:06] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170714-15:39:06] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20170714-15:39:06] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20170714-15:39:09] [DEBUG] VNC error 1 after security negotiation
[20170714-15:39:09] [DEBUG] VNC error before sending share flag
[20170714-15:39:09] [DEBUG] VNC error before receiving server init
[20170714-15:39:09] [DEBUG] VNC error before receiving pixel format
[20170714-15:39:09] [DEBUG] VNC error before receiving name length
[20170714-15:39:09] [DEBUG] VNC error before receiving name
[20170714-15:39:09] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20170714-15:39:09] [DEBUG] Closed socket 25 (AF_INET 0.0.0.0:50184)
[20170714-15:39:09] [DEBUG] xrdp_wm_log_msg: some problem
[20170714-15:39:09] [DEBUG] xrdp_mm_module_cleanup
[20170714-15:39:09] [DEBUG] VNC mod_exit
[20170714-15:39:09] [DEBUG] Closed socket 24 (AF_INET 127.0.0.1:56708)

https://pastebin.com/fSSJgc9f
On Ubuntu at least Xorg session is working
On Fedora 26 i unsuccessfully tried xrdp 0.9.1, 0.9.2, 0.9.3 — Xorg or Xvnc sessions not working, at least for me.
UPD:
After some more experimenting I’ve found what causing this errors.
Steps to reproduce(I’m using Fedora with «clean» MATE+Lightdm setup):
Install fresh fedora server w/o GUI.
$ sudo dnf groupinstall ‘base-x’ ‘fonts’
$ sudo dnf install mate-desktop mate-control-center mate-terminal mate-settings-daemon caja caja-open-terminal mate-polkit mate-session-manager lightdm-gtk lightdm mate-menus mate-themes mate-panel marco oddjob-mkhomedir xrdp xrdp-selinux
$ sudo authconfig —enablemkhomedir —update
With this setup I stumbled upon:

  • old bug with xrdp mkhomedir and selinux(fast check: nonexisting homedir and setenforce 0)
  • /etc/X11/xinit/Xclients is not spawning mate-session properly

It is not sufficient to install xrdp-selinux package, you should patch, recompile and reinstall xrdp policy:
$ cd /usr/share/doc/xrdp-selinux/
$ sudo cp xrdp.te{,.old}
$ sudo cat << EOF > xrdp.patch

+++ xrdp.te	2017-07-18 12:52:23.413395457 +0300
@@ -4,6 +4,8 @@
         type unconfined_service_t;
         type unconfined_t;
         type xserver_exec_t;
+        type oddjob_t;
+        type oddjob_mkhomedir_exec_t;
         class process transition;
         class file entrypoint;
 }
@@ -11,7 +13,12 @@
 #============= unconfined_service_t ==============
 
 allow unconfined_service_t unconfined_t:process transition;
+allow unconfined_service_t oddjob_mkhomedir_exec_t:file entrypoint;
 
 #============= unconfined_t ==============
 
 allow unconfined_t xserver_exec_t:file entrypoint;
+
+#============= oddjob_t ==============
+
+allow oddjob_t unconfined_service_t:process transition;
 No newline at end of file
EOF

$ sudo patch xrdp.te xrdp.patch
$ sudo checkmodule -M -m -o xrdp.mod xrdp.te
$ sudo semodule_package -o xrdp.pp -m xrdp.mod
$ sudo semodule -i xrdp.pp
Eliminating this two conditions gives me working xrdp with Xvnc session, but much faster Xorg session still gives me [DEBUG] Closed socket 25 (AF_UNIX) errors.
To make Xorg session working properly I have to make additional Xorg.wrap rights adjustments.
After that I have fully working xrdp setup on Fedora 26:
$ sudo rpm -qa | egrep «rdp|^selin»
selinux-policy-3.13.1-260.1.fc26.noarch
selinux-policy-targeted-3.13.1-260.1.fc26.noarch
xrdp-0.9.2-12.fc26.x86_64
xrdp-selinux-0.9.2-12.fc26.x86_64
selinux-policy-minimum-3.13.1-260.1.fc26.noarch
xorgxrdp-0.2.2-1.fc26.x86_64

@dean-hunter

@grishin-a So you started with Fedora 26 Server and added the Mate desktop and Xrdp with the above modifications and it works. I am starting with Fedora 26 Workstation with the default Gnome desktop and adding Xrdp. Do you have any suggestions on what might be missing from my installation?

It sounds like oddjob-mkhomedir creates the home directory for a user when it does not exist. It is not installed with Fedora 26 Workstation. I am only logging-in to Xrdp using local users that I know exist. Do you know whether oddjob-mkhomedir is required in this situation?

@grishin-a

@dean-hunter Sorry for late reply.
No, you don’t need oddjob-mkhomedir if you are absolutely sure your user have existing homedir.
Just tried xrdp with clean Fedora26 Worstation (Gnome desktop)install on virtual machine. It works with both Xorg and Xvnc sessions.
$ sudo rpm -qa | egrep ‘rdp|vnc’
tigervnc-server-minimal-1.8.0-1.fc26.x86_64
tigervnc-license-1.8.0-1.fc26.noarch
gvnc-0.7.1-1.fc26.x86_64
xrdp-0.9.2-12.fc26.x86_64
xorgxrdp-0.2.3-1.fc26.x86_64
gtk-vnc2-0.7.1-1.fc26.x86_64
Can you try to create a new user and connect?
$ sudo useradd -m test
$ sudo echo 123 | passwd —stdin test
$ sudo systemctl stop firewalld; iptables -F
Connect via rdp(I’m using remmina 1.1.0 client) using Xvnc session.
If you want to connect using Xorg session you need to modify Xwrapper.config

@kaustav1996

I am creating a VM in https://my.vultr.com/ . OS :- Ubuntu 17.04
image
getting this error.
the script I run after logging into the terminal of the VM is :—
sudo apt-get update; sudo apt-get -y install lxde ubuntu-gnome-desktop tightvncserver xrdp ; echo lxsession -s LXDE -e LXDE > ~/.xsession ; echo sudo /etc/init.d/xrdp restart ;
.
.
This script works fine for ubuntu 16.04 and ubuntu 14,04. can you tell me what I am doing wrong?

@metalefty

I reproduced the issue. Please wait patiently until the bug is fixed. Not to use VNC is a workaround.

@abrown

@metalefty

I haven’t been able to start work on this issue yet because VNC baked session is discouraged now.
This doesn’t mean we decided that we won’t fix the issue. Request by more users or sponsorship will raise the priority.

@abrown

Not sure if I understand «VNC baked sessions»; perhaps you could explain further? Is @grishin-a’s patch above the fix?

@metalefty

There was a typo, «VNC backed sessions».

@metalefty

His patch fixes home directory creation. It doesn’t fix the connection issue to VNC.

@Turgon-Aran-Gondolin

Any update by now? I encountered the same connection issue to VNC in Fedora 26 with default Gnome Desktop.

@abrown

@metalefty what is the connection issue to VNC? If you describe in more detail perhaps one of us could take a look

@metalefty

Something’s failing lib_mod_connect() in vnc/vnc.c. As the log says, it looks like an issue in security negotiation.I tried to reproduce the issue again but can’t reproduce for me now.

I’d appreciate if someone provides repro.

@metalefty

@abrown The error occurs in this block.

if (error == 0)
{
in_uint32_be(s, i);
g_sprintf(text, «VNC security level is %d (1 = none, 2 = standard)«, i);
v->server_msg(v, text, 0);
if (i == 1) /* none */
{
check_sec_result = 0;
}
else if (i == 2) /* dec the password and the server random */
{
init_stream(s, 8192);
error = trans_force_read_s(v->trans, s, 16);
if (error == 0)
{
init_stream(s, 8192);
if (v->got_guid)
{
char guid_str[64];
g_bytes_to_hexstr(v->guid, 16, guid_str, 64);
rfbHashEncryptBytes(s->data, guid_str);
}
else
{
rfbEncryptBytes(s->data, v->password);
}
s->p += 16;
s_mark_end(s);
error = trans_force_write_s(v->trans, s);
check_sec_result = 1; // not needed
}
}
else if (i == 0)
{
log_message(LOG_LEVEL_DEBUG, «VNC Server will disconnect«);
error = 1;
}
else
{
log_message(LOG_LEVEL_DEBUG, «VNC unsupported security level«);
error = 1;
}
}
}

@benkillin

I experience this issue.

The way I have to require the xrdp server to be configured is to have the following parameters in the config file:

crypt_level=fips
security_layer=rdp

Maybe with those parameters you can reproduce the error.

@marcospedreiro

I know I’m probably an obscure use case, but I’m getting a similar issue with Alpine Linux on Virtualbox. I hope that this info is helpful in finding the root cause of the error. It’s also possible that I’m doing something wrong in which case please let me know.

I am able to get the login prompt, but when I try to login I get the error dialogue:

xrdp_login_error

System Details

  • Host machine is Windows 10
  • Alpine Linux version: alpine-virt-3.7.0-x86_64
  • Virtualbox version: 5.2.4r119785
  • Virtualbox extensions version: 5.2.4r119785

I followed instructions here: https://wiki.alpinelinux.org/wiki/Remote_Desktop_Server

apk add xrdp
apk add xrdp-sesman
apk add vino
# cat  /etc/xrdp/xrdp.ini

[globals]
bitmap_cache=yes
bitmap_compression=yes
port=3389
crypt_level=low
channel_code=1
max_bpp=24

[xrdp1]
name=Vino
lib=libvnc.so
ip=127.0.0.1
port=5900
username=ask
password=ask

In my home directory I have tried with both files:

# cat .Xclients
#!/bin/sh
XFCE="$(which xfce4-session 2>/dev/null)"
exec "$XFCE"
# cat .xsession
xfce4-session

I used ufw to allow inbound traffic on ports 22, 3389, 3350, and 5900

In the /etc/xrdp/startwm.sh script I added:

# cat /etc/xrdp/startwm.sh
#!/bin/sh

#start the window manager
wm_start()
{
# ...removed for brevity... 
  # el
  if [ -r /etc/X11/xinit/Xsession ]; then
    xfce4-session ## <- this is what I added
    . /etc/X11/xinit/Xsession
    exit 0
  fi
# ...removed for brevity... 

Logs

# cat /var/log/xrdp.log
[20171223-17:15:31] [INFO ] Socket 12: AF_INET connection received from <ip> port 61045
[20171223-17:15:31] [DEBUG] Closed socket 12 (AF_INET <ip>:3389)
[20171223-17:15:31] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20171223-17:15:31] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20171223-17:15:31] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20171223-17:15:31] [DEBUG] TLSv1.2 enabled
[20171223-17:15:31] [DEBUG] TLSv1.1 enabled
[20171223-17:15:31] [DEBUG] TLSv1 enabled
[20171223-17:15:31] [DEBUG] Security layer: requested 11, selected 1
[20171223-17:15:33] [INFO ] connected client computer name: <name>
[20171223-17:15:33] [INFO ] TLS connection established from <ip> port 61045: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA
[20171223-17:15:33] [DEBUG] xrdp_00000a22_wm_login_mode_event_00000001
[20171223-17:15:33] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20171223-17:15:33] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20171223-17:15:33] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20171223-17:15:37] [DEBUG] Closed socket 18 (AF_INET 0.0.0.0:37178)
[20171223-17:15:41] [DEBUG] Closed socket 18 (AF_INET 0.0.0.0:37184)
[20171223-17:15:45] [DEBUG] Closed socket 18 (AF_INET 0.0.0.0:37190)
[20171223-17:15:49] [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350
[20171223-17:15:49] [DEBUG] Closed socket 18 (AF_INET 0.0.0.0:37196)
[20171223-17:15:49] [DEBUG] return value from xrdp_mm_connect 1
[20171223-17:15:49] [DEBUG] Closed socket 12 (AF_INET <ip>:3389)
[20171223-17:15:49] [DEBUG] xrdp_mm_module_cleanup
[20171223-17:15:49] [ERROR] Listening socket is in wrong state, terminating listener
[20171223-17:15:49] [CORE ] shutting down log subsystem...
[20171223-17:19:01] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20171223-17:19:01] [CORE ] shutting down log subsystem...

There are no seemingly useful messages in /var/log/xrdp-sesman.log but I did find logs in the /sesman.log file:

[20171223-22:19:30] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20171223-22:19:30] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5900
[20171223-22:19:33] [DEBUG] VNC error 1 after security negotiation
[20171223-22:19:33] [DEBUG] VNC error before sending share flag
[20171223-22:19:33] [DEBUG] VNC error before receiving server init
[20171223-22:19:33] [DEBUG] VNC error before receiving pixel format
[20171223-22:19:33] [DEBUG] VNC error before receiving name length
[20171223-22:19:33] [DEBUG] VNC error before receiving name
[20171223-22:19:33] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20171223-22:19:33] [DEBUG] Closed socket 16 (AF_INET 0.0.0.0:47422)
[20171223-22:19:33] [DEBUG] xrdp_wm_log_msg: some problem
[20171223-22:19:33] [ERROR] xrdp_wm_log_msg: Error connecting to: 127.0.0.1
[20171223-22:19:33] [DEBUG] xrdp_mm_module_cleanup
[20171223-22:19:33] [DEBUG] VNC mod_exit
[20171223-22:19:33] [DEBUG] return value from xrdp_mm_connect 1
[20171223-22:19:49] [DEBUG] Closed socket 11 (AF_INET <ip>:3389)
[20171223-22:19:49] [DEBUG] xrdp_mm_module_cleanup

@Jared-Harrington-Gibbs

Seems like this is related to issue #847

I had the same error and was able to get xrdp running on kali by simply moving to lxde.

apt install lxde xrdp tigervnc-standalone-server                                                                                                               
sudo update-alternatives --config x-session-manager
  #chose lxsession
service xrdp-sesman start
service xrdp start

Not ideal but better than nothing.
Hope this helps someone like it helped me. :)

Simplified from https://forums.kali.org/showthread.php?34751-How-to-set-up-xrdp-on-the-AWS-Kali-image

@ristillu

I had the same error as the OP but the fortunate position of having two nearly identical servers, one exhibiting the problem and one not. They are both Gigabyte Brix running Centos 7. I set up my xrdp according to this article https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-xrdp-on-centos-7-rhel-7.html
I narrowed my problem down (from this thread and thanks to the previous poster ^) to a Gnome issue. Working server has this list of Gnome packages:

Installed Packages
gnome-abrt.x86_64                                                           0.3.4-8.el7                                           @base  
gnome-bluetooth.x86_64                                                      1:3.20.1-1.el7                                        @base  
gnome-bluetooth-libs.x86_64                                                 1:3.20.1-1.el7                                        @base  
gnome-boxes.x86_64                                                          3.22.4-4.el7                                          @base  
gnome-calculator.x86_64                                                     3.22.3-1.el7                                          @base  
gnome-classic-session.noarch                                                3.26.2-3.el7                                          @base  
gnome-clocks.x86_64                                                         3.22.1-1.el7                                          @base  
gnome-color-manager.x86_64                                                  3.22.2-2.el7                                          @base  
gnome-contacts.x86_64                                                       3.22.1-1.el7                                          @base  
gnome-desktop3.x86_64                                                       3.22.2-2.el7                                          @base  
gnome-dictionary.x86_64                                                     3.20.0-1.el7                                          @base  
gnome-dictionary-libs.x86_64                                                3.20.0-1.el7                                          @base  
gnome-disk-utility.x86_64                                                   3.22.1-1.el7                                          @base  
gnome-font-viewer.x86_64                                                    3.22.0-1.el7                                          @base  
gnome-getting-started-docs.noarch                                           3.22.0-1.el7                                          @base  
gnome-icon-theme.noarch                                                     3.12.0-1.el7                                          @base  
gnome-icon-theme-extras.noarch                                              3.12.0-1.el7                                          @base  
gnome-icon-theme-legacy.noarch                                              3.12.0-1.el7                                          @base  
gnome-icon-theme-symbolic.noarch                                            3.12.0-2.el7                                          @base  
gnome-initial-setup.x86_64                                                  3.22.1-5.el7                                          @base  
gnome-keyring.x86_64                                                        3.20.0-3.el7                                          @base  
gnome-keyring-pam.x86_64                                                    3.20.0-3.el7                                          @base  
gnome-menus.x86_64                                                          3.13.3-3.el7                                          @base  
gnome-online-accounts.x86_64                                                3.26.2-1.el7                                          @base  
gnome-packagekit.x86_64                                                     3.22.1-2.el7                                          @base  
gnome-packagekit-common.x86_64                                              3.22.1-2.el7                                          @base  
gnome-packagekit-installer.x86_64                                           3.22.1-2.el7                                          @base  
gnome-packagekit-updater.x86_64                                             3.22.1-2.el7                                          @base  
gnome-python2.x86_64                                                        2.28.1-14.el7                                         @base  
gnome-python2-canvas.x86_64                                                 2.28.1-14.el7                                         @base  
gnome-screenshot.x86_64                                                     3.22.0-1.el7                                          @base  
gnome-session.x86_64                                                        3.26.1-11.el7                                         @base  
gnome-session-xsession.x86_64                                               3.26.1-11.el7                                         @base  
gnome-settings-daemon.x86_64                                                3.26.2-9.el7                                          @base  
gnome-shell.x86_64                                                          3.26.2-5.el7                                          @base  
gnome-shell-extension-alternate-tab.noarch                                  3.26.2-3.el7                                          @base  
gnome-shell-extension-apps-menu.noarch                                      3.26.2-3.el7                                          @base  
gnome-shell-extension-common.noarch                                         3.26.2-3.el7                                          @base  
gnome-shell-extension-launch-new-instance.noarch                            3.26.2-3.el7                                          @base  
gnome-shell-extension-places-menu.noarch                                    3.26.2-3.el7                                          @base  
gnome-shell-extension-top-icons.noarch                                      3.26.2-3.el7                                          @base  
gnome-shell-extension-user-theme.noarch                                     3.26.2-3.el7                                          @base  
gnome-shell-extension-window-list.noarch                                    3.26.2-3.el7                                          @base  
gnome-software.x86_64                                                       3.22.7-5.el7                                          @base  
gnome-system-log.x86_64                                                     1:3.9.90-3.el7                                        @base  
gnome-system-monitor.x86_64                                                 3.22.2-3.el7                                          @base  
gnome-terminal.x86_64                                                       3.22.1-2.el7                                          @base  
gnome-terminal-nautilus.x86_64                                              3.22.1-2.el7                                          @base  
gnome-themes-standard.x86_64                                                3.22.2-1.el7                                          @base  
gnome-tweak-tool.noarch                                                     3.22.0-1.el7                                          @base  
gnome-user-docs.noarch                                                      3.22.0-1.el7                                          @base  
gnome-video-effects.noarch                                                  0.4.3-1.el7                                           @base  
gnome-weather.noarch                                                        3.26.0-1.el7                                          @base``` 

and the non-working server had:

Installed Packages
gnome-bluetooth.x86_64                                                    1:3.20.1-1.el7                                      @base  
gnome-bluetooth-libs.x86_64                                               1:3.20.1-1.el7                                      @base  
gnome-desktop3.x86_64                                                     3.22.2-2.el7                                        @base  
gnome-icon-theme.noarch                                                   3.12.0-1.el7                                        @base  
gnome-icon-theme-legacy.noarch                                            3.12.0-1.el7                                        @base  
gnome-keyring.x86_64                                                      3.20.0-3.el7                                        @base  
gnome-keyring-pam.x86_64                                                  3.20.0-3.el7                                        @base  
gnome-online-accounts.x86_64                                              3.22.5-1.el7                                        @base  
gnome-session.x86_64                                                      3.22.3-4.el7                                        @base  
gnome-settings-daemon.x86_64                                              3.22.2-5.el7                                        @base  
gnome-shell.x86_64                                                        3.22.3-17.el7                                       @base  
gnome-themes-standard.x86_64                                              3.22.2-1.el7                                        @base  

That must be because they are both headless and when configuring I must have installed a full Gnome group to one and just a minimal one (to configure Xfce and x2go) on the broken one.

I then thought gnome-classic-session looked like a promising omission so I installed it and the list on the broken server now looked like this, with dependencies pulled in:

Installed Packages
gnome-bluetooth.x86_64                                             1:3.20.1-1.el7                              @base  
gnome-bluetooth-libs.x86_64                                        1:3.20.1-1.el7                              @base  
gnome-classic-session.noarch                                       3.26.2-3.el7                                @base  
gnome-desktop3.x86_64                                              3.22.2-2.el7                                @base  
gnome-icon-theme.noarch                                            3.12.0-1.el7                                @base  
gnome-icon-theme-legacy.noarch                                     3.12.0-1.el7                                @base  
gnome-keyring.x86_64                                               3.20.0-3.el7                                @base  
gnome-keyring-pam.x86_64                                           3.20.0-3.el7                                @base  
gnome-menus.x86_64                                                 3.13.3-3.el7                                @base  
gnome-online-accounts.x86_64                                       3.22.5-1.el7                                @base  
gnome-session.x86_64                                               3.22.3-4.el7                                @base  
gnome-settings-daemon.x86_64                                       3.22.2-5.el7                                @base  
gnome-shell.x86_64                                                 3.26.2-5.el7                                @base  
gnome-shell-extension-alternate-tab.noarch                         3.26.2-3.el7                                @base  
gnome-shell-extension-apps-menu.noarch                             3.26.2-3.el7                                @base  
gnome-shell-extension-common.noarch                                3.26.2-3.el7                                @base  
gnome-shell-extension-launch-new-instance.noarch                   3.26.2-3.el7                                @base  
gnome-shell-extension-places-menu.noarch                           3.26.2-3.el7                                @base  
gnome-shell-extension-top-icons.noarch                             3.26.2-3.el7                                @base  
gnome-shell-extension-window-list.noarch                           3.26.2-3.el7                                @base  
gnome-themes-standard.x86_64                                       3.22.2-1.el7                                @base  

Now after trying to connect (from a Windows box on the LAN) the RDP connection just died, but logging in to the broken server afterwards gave:

[user@host log]$ sudo cat xrdp.log
...
[20180522-22:43:08] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20180522-22:43:08] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC tcp connected
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC security level is 2 (1 = none, 2 = standard)
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC password ok
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC sending share flag
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC receiving server init
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC receiving pixel format
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC receiving name length
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC receiving name
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC sending pixel format
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC sending encodings
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC sending framebuffer update request
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC sending cursor
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: VNC connection complete, connected ok
[20180522-22:43:10] [INFO ] The following channel is allowed: rdpdr (0)
[20180522-22:43:10] [INFO ] The following channel is allowed: rdpsnd (1)
[20180522-22:43:10] [INFO ] The following channel is allowed: cliprdr (2)
[20180522-22:43:10] [INFO ] The following channel is allowed: drdynvc (3)
[20180522-22:43:10] [DEBUG] The allow channel list now initialized for this session
[20180522-22:43:10] [DEBUG] xrdp_wm_log_msg: connected ok
[20180522-22:43:10] [DEBUG] xrdp_mm_connect_chansrv: chansrv connect successful
[20180522-22:43:10] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:53214)
[20180522-22:43:10] [DEBUG] Closed socket 20 (AF_UNIX)
[20180522-22:43:10] [DEBUG] Closed socket 12 (AF_INET 10.11.12.55:3389)
[20180522-22:43:10] [DEBUG] xrdp_mm_module_cleanup
[20180522-22:43:10] [DEBUG] VNC mod_exit
[20180522-22:43:10] [DEBUG] Closed socket 19 (AF_INET 127.0.0.1:46278)

So now it was getting past the OP’s (and my original) security error. I upgraded/installed a few individual packages, like:

gnome-session-xsession
gnome-settings-daemon
gnome-initial-setup
gnome-themes-standard
gnome-terminal

and got it to start up but it’s got a full black background, no menus and no terminal option. I’m logging in to it via ssh and the xrdp.log is the same as above, i.e. working. I think the artifacts I’m seeing are Gnome artifacts now. I will install
sudo yum groupinstall 'Server with GUI'
on this machine and cross my fingers rather than continuing to try to piecemeal install what is required but that’ll have to wait until I can bring down the services that are running on the machine without disturbing the dependent clients too much.

@hzhu212

[SOLVED]

I got the same error in CentOS 7.5 with Xfce desktop. I had struggled for several days with no result.

1

Recently, I found a solution coincidentally. I created a CentOS 7.5 virtual machine with «minimal» installation. Then I installed xrdp and started xrdp service, without realizing that I didn’t have any desktop environment. When I attempted to connect the vm from my Windows, I got definitely the same error stated above.

Soon, I found my stupid mistake, followed by a strange thing: whether installing a desktop environment or not, xrdp always throws the same error. I realized the cause of this issue is not a bug of xrdp, tigervnc-server or Xfce, but the fact that xrdp doesn’t know what desktop environment to start, let alone how to start. It’s the real problem, and we can fix it easily.

Here were my steps:

# generate a file called .xsession in your home directory, and set default desktop
echo "xfce4-session" > ~/.xsession

# enable execute
chmod a+x ~/.xsession

# restart xrdp service
systemctl restart xrdp

# Hint: It works too if you replace `.xsession` with `.Xclients`

Now, xrdp works perfectly with Xfce and openbox.


Finally, where did I get these names? like ~/.xsession and ~/.Xclients?

Well, I found all these in the following scripts:

  • startwm.sh
  • Xsession
  • Xclients

Hint: you have to search the location of these files for different platforms

For example, the last part of /etc/X11/xinit/Xsession in CentOS 7.5 says:

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
    exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
    exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
    exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients"
else
    # should never get here; failsafe fallback
    exec -l $SHELL -c "xsm"
fi

Apparently, X11 will search $HOME/.xsession and $HOME/.Xclients for desktop environments.

mechgt, inarighas, xiandew, juliovn, speedpacer, mervynzhang, swvajanyatek, Android0x7, berenddeboer, Birdchen, and hyj-kim reacted with thumbs up emoji
TonyApuzzo, Steffen911, qiaohaijun, myallxiami, jbeetz, sizious, inarighas, xiandew, juliovn, mervynzhang, and whbean reacted with hooray emoji

@whbean

Thank you hzhu212, not only for the fix but also for the clear explanation of what the problem was. Most helpful.

@penghzhang

Hi metalefty ,
I have followed hzhu212’s steps, but this issue still exist on my system, the log file shows below information:
[20190817-03:14:17] [INFO ] xrdp_wm_log_msg: login successful for display 13
[20190817-03:14:17] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20190817-03:14:17] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5913
[20190817-03:14:20] [DEBUG] VNC error 1 after security negotiation
[20190817-03:14:20] [DEBUG] VNC error before sending share flag
[20190817-03:14:20] [DEBUG] VNC error before receiving server init
[20190817-03:14:20] [DEBUG] VNC error before receiving pixel format
[20190817-03:14:20] [DEBUG] VNC error before receiving name length
[20190817-03:14:20] [DEBUG] VNC error before receiving name
[20190817-03:14:20] [DEBUG] xrdp_wm_log_msg: VNC error — problem connecting
Could help me further?
Thanks!

@Android0x7

[SOLVED]

I got the same error in CentOS 7.5 with Xfce desktop. I had struggled for several days with no result.

1

Recently, I found a solution coincidentally. I created a CentOS 7.5 virtual machine with «minimal» installation. Then I installed xrdp and started xrdp service, without realizing that I didn’t have any desktop environment. When I attempted to connect the vm from my Windows, I got definitely the same error stated above.

Soon, I found my stupid mistake, followed by a strange thing: whether installing a desktop environment or not, xrdp always throws the same error. I realized the cause of this issue is not a bug of xrdp, tigervnc-server or Xfce, but the fact that xrdp doesn’t know what desktop environment to start, let alone how to start. It’s the real problem, and we can fix it easily.

Here were my steps:

# generate a file called .xsession in your home directory, and set default desktop
echo "xfce4-session" > ~/.xsession

# enable execute
chmod a+x ~/.xsession

# restart xrdp service
systemctl restart xrdp

# Hint: It works too if you replace `.xsession` with `.Xclients`

Now, xrdp works perfectly with Xfce and openbox.

Finally, where did I get these names? like ~/.xsession and ~/.Xclients?

Well, I found all these in the following scripts:

  • startwm.sh
  • Xsession
  • Xclients

Hint: you have to search the location of these files for different platforms

For example, the last part of /etc/X11/xinit/Xsession in CentOS 7.5 says:

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
    exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
    exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
    exec -l $SHELL -c "$CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients"
else
    # should never get here; failsafe fallback
    exec -l $SHELL -c "xsm"
fi

Apparently, X11 will search $HOME/.xsession and $HOME/.Xclients for desktop environments.

Great Man …
~/.xsession did the trick for me !

@anandbibek

Not sure if this would apply for a lot of people, but I was having the following errors is log

[20200625-23:04:05] [INFO ] A connection received from 127.0.0.1 port 52386
[20200625-23:04:05] [INFO ] ++ created session (access granted): username root, ip 195.233.142.182:65160 - socket: 12
[20200625-23:04:05] [INFO ] starting Xvnc session...
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:5911)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6011)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6211)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:5922)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6022)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6222)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:5923)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6023)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6223)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:5933)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6033)
[20200625-23:04:05] [DEBUG] Closed socket 10 (AF_INET 0.0.0.0:6233)
[20200625-23:04:05] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20200625-23:04:05] [INFO ] calling auth_start_session from pid 23121
[20200625-23:04:05] [DEBUG] Closed socket 8 (AF_INET 127.0.0.1:3350)
[20200625-23:04:05] [DEBUG] Closed socket 9 (AF_INET 127.0.0.1:3350)
[20200625-23:04:05] [INFO ] Xvnc :33 -auth .Xauthority -geometry 1920x1080 -depth 8 -rfbauth /root/.vnc/sesman_passw@Tooling-Server:33 -bs -nolisten tcp -localhost -dpi 96
[20200625-23:04:15] [ERROR] X server for display 33 startup timeout
[20200625-23:04:15] [CORE ] waiting for window manager (pid 23123) to exit
[20200625-23:04:15] [ERROR] X server for display 33 startup timeout
[20200625-23:04:15] [ERROR] another Xserver might already be active on display 33 - see log
[20200625-23:04:15] [DEBUG] aborting connection...
[20200625-23:04:15] [CORE ] window manager (pid 23123) did exit, cleaning up session
[20200625-23:04:15] [INFO ] calling auth_stop_session and auth_end from pid 23121
[20200625-23:04:15] [DEBUG] cleanup_sockets:
[20200625-23:04:15] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdp_chansrv_socket_33
[20200625-23:04:15] [DEBUG] cleanup_sockets: deleting /tmp/.xrdp/xrdpapi_33
[20200625-23:04:15] [INFO ] ++ terminated session:  username root, display :33.0, session_pid 23121, ip 195.233.142.182:65160 - socket: 12

Apparently the value -depth 8 was causing the error. Found out that my Windows RDP setting was getting set to «Low Bandwidth» setting and color depth was being set at 8. Changed to default 32 and issue was solved.

@roisnir

In my case, none of the above solutions worked.
my log looked like this:

[20200905-15:23:54] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20200905-15:23:57] [DEBUG] VNC error 1 after security negotiation
[20200905-15:23:57] [DEBUG] VNC error before sending share flag
[20200905-15:23:57] [DEBUG] VNC error before receiving server init
[20200905-15:23:57] [DEBUG] VNC error before receiving pixel format
[20200905-15:23:57] [DEBUG] VNC error before receiving name length
[20200905-15:23:57] [DEBUG] VNC error before receiving name
[20200905-15:23:57] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20200905-15:23:57] [DEBUG] Closed socket 19 (AF_INET6 ::ffff:127.0.0.1 port 59500)
[20200905-15:23:57] [DEBUG] xrdp_wm_log_msg: some problem
[20200905-15:23:57] [DEBUG] xrdp_mm_module_cleanup
[20200905-15:23:57] [DEBUG] VNC mod_exit

Solved after changing param=Xvnc to vncserver in /etc/xrdp/sesman.ini:

[Xvnc]
param=vncserver
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96

Short story: Can not get xrdp via VNC working due to VNC error «VNC error 1 after security negotiation»

Yes, I have spent a day looking at / trying all the other online suggestions, with no success. No offense to any of the suggestions, but they seem to be really random on getting to the root cause of the problem and are using older versions of the software (but interesting that the same problem has been around for awhile)

Long story: Clean install of Raspbain 2018.11

Linux raspberrypi 4.14.83v7-aufs #1 SMP Wed Nov 28 22:52:43 CET 2018 armv7l GNU/Linux

Changes from new install based on the minimal info from this site to run xrdp as there is a conflict with install vnc server:
sudo apt-get purge realvnc-vnc-server
sudo apt-get install tightvncserver
sudo apt-get install xrdp

Based on the xrdp website architecture information I can test out the xrdp -> libxup -> X11rdp path is working. (See attachment)

This session works so xrdp, sesman and X11 is working. Now if we try xrdp with vnc… we get an error (See attachments)

Looking at the logfile /var/logs/xrdp.log gives us some indication of what might be happening:

[20181229-14:06:33] [INFO ] starting xrdp with pid 19399
[20181229-14:06:33] [INFO ] listening to port 3389 on 0.0.0.0
[20181229-14:13:21] [INFO ] A connection received from: ::ffff:192.168.2.220 port 54992
[20181229-14:13:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.161 port 3389)
[20181229-14:13:21] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20181229-14:13:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20181229-14:13:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20181229-14:13:21] [DEBUG] Security layer: requested 11, selected 0
[20181229-14:13:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.161 port 3389)
[20181229-14:13:21] [INFO ] A connection received from: ::ffff:192.168.2.220 port 54993
[20181229-14:13:21] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:192.168.2.161 port 3389)
[20181229-14:13:21] [ERROR] Listening socket is in wrong state, terminating listener
[20181229-14:13:21] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20181229-14:13:21] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20181229-14:13:21] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20181229-14:13:21] [DEBUG] Security layer: requested 0, selected 0
[20181229-14:13:22] [DEBUG] xrdp_00005328_wm_login_mode_event_00000001
[20181229-14:13:22] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20181229-14:13:22] [WARN ] local keymap file for 0x00000409 found and doesn’t match built in keymap, using local keymap file
[20181229-14:14:15] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20181229-14:14:16] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20181229-14:14:16] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait…
[20181229-14:14:16] [DEBUG] return value from xrdp_mm_connect 0
[20181229-14:14:16] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20181229-14:14:16] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20181229-14:14:16] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5911
[20181229-14:14:19] [DEBUG] VNC error 1 after security negotiation
[20181229-14:14:19] [DEBUG] VNC error before sending share flag
[20181229-14:14:19] [DEBUG] VNC error before receiving server init
[20181229-14:14:19] [DEBUG] VNC error before receiving pixel format
[20181229-14:14:19] [DEBUG] VNC error before receiving name length
[20181229-14:14:19] [DEBUG] VNC error before receiving name
[20181229-14:14:19] [DEBUG] xrdp_wm_log_msg: VNC error — problem connecting
[20181229-14:14:19] [DEBUG] Closed socket 17 (AF_INET6 :: port 39136)
[20181229-14:14:20] [DEBUG] xrdp_wm_log_msg: some problem
[20181229-14:14:20] [DEBUG] xrdp_mm_module_cleanup
[20181229-14:14:20] [DEBUG] VNC mod_exit

Just to check that everything is listening on the right ports

pi@raspberrypi:/var/log $ netstat —listen
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:5911 0.0.0.0:* LISTEN
tcp6 0 0 localhost:3350 [::]:* LISTEN
tcp6 0 0 [::]:3389 [::]:* LISTEN

Any suggestions on either using a different VNC server or how to get further debug information for tightvncserver to get to the root cause of what is going on here?

Hi,

Im trying to connect to my Debian machine from my Windows host but I cant get it to work, I have installed both xrdp and x11vnc. I don’t know the reason as to why I can’t connect. The machine is listening on the TCP ports.

xrdp.log:

Code: Select all

dave@hal9000:/var/log$ sudo cat xrdp.log
[20180219-19:34:37] [INFO ] starting xrdp with pid 2189
[20180219-19:34:37] [INFO ] listening to port 3389 on 0.0.0.0
[20180219-19:34:52] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55533
[20180219-19:34:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:34:52] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:34:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:34:53] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:34:53] [DEBUG] Security layer: requested 11, selected 0
[20180219-19:34:53] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:34:53] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:34:54] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55534
[20180219-19:34:54] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:34:54] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:34:54] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:34:54] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:34:54] [DEBUG] Security layer: requested 0, selected 0
[20180219-19:34:54] [DEBUG] xrdp_000009d7_wm_login_mode_event_00000001
[20180219-19:34:54] [INFO ] Loading keymap file /etc/xrdp/km-0000041d.ini
[20180219-19:34:54] [WARN ] local keymap file for 0x0000041d found and doesn't match built in keymap, using local keymap file
[20180219-19:35:08] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180219-19:35:08] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180219-19:35:08] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180219-19:35:08] [DEBUG] return value from xrdp_mm_connect 0
[20180219-19:35:08] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20180219-19:35:08] [DEBUG] xrdp_wm_log_msg: started connecting
[20180219-19:35:12] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:15] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:19] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:22] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:26] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:29] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:33] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:36] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:40] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:44] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:47] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:51] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:54] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:35:58] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:01] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:05] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:08] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:12] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:15] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:19] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:22] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:26] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:29] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:33] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:36] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:40] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:43] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:47] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:50] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:54] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:36:57] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:01] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:04] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:08] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:11] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:15] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:18] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:22] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:25] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:29] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:32] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:36] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:39] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55550
[20180219-19:37:39] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:37:39] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:37:39] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:37:39] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:37:39] [DEBUG] Security layer: requested 11, selected 0
[20180219-19:37:39] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:37:39] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:37:39] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:41] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55551
[20180219-19:37:41] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:37:41] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:37:41] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:37:41] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:37:41] [DEBUG] Security layer: requested 0, selected 0
[20180219-19:37:41] [DEBUG] xrdp_00000a3a_wm_login_mode_event_00000001
[20180219-19:37:41] [INFO ] Loading keymap file /etc/xrdp/km-0000041d.ini
[20180219-19:37:41] [WARN ] local keymap file for 0x0000041d found and doesn't match built in keymap, using local keymap file
[20180219-19:37:43] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:46] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:50] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:53] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:37:57] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:00] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:04] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:07] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:11] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:15] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:18] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:22] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:25] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:29] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:32] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:35] [INFO ] A connection received from: ::ffff:172.10.88.6 port 57082
[20180219-19:38:35] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:35] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:38:35] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:38:35] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:38:35] [DEBUG] Security layer: requested 0, selected 0
[20180219-19:38:35] [DEBUG] return value from xrdp_mm_connect 0
[20180219-19:38:35] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:35] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:35] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:38:35] [DEBUG] Closed socket 16 (AF_INET6 ::ffff:172.10.88.6 port 57082)
[20180219-19:38:35] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:38:35] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:38:36] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:39] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20180219-19:38:39] [DEBUG] Closed socket 17 (AF_UNIX)
[20180219-19:38:39] [DEBUG] xrdp_wm_log_msg: some problem
[20180219-19:38:39] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:38:39] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 51520)
[20180219-19:38:39] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:39] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:38:39] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:38:52] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55557
[20180219-19:38:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:52] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:38:52] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:38:52] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:38:52] [DEBUG] Security layer: requested 11, selected 0
[20180219-19:38:52] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:52] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:38:53] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55558
[20180219-19:38:53] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:38:53] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:38:53] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:38:53] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:38:53] [DEBUG] Security layer: requested 0, selected 0
[20180219-19:38:53] [DEBUG] xrdp_00000a62_wm_login_mode_event_00000001
[20180219-19:38:53] [INFO ] Loading keymap file /etc/xrdp/km-0000041d.ini
[20180219-19:38:53] [WARN ] local keymap file for 0x0000041d found and doesn't match built in keymap, using local keymap file
[20180219-19:43:56] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180219-19:43:57] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180219-19:43:57] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180219-19:43:57] [DEBUG] return value from xrdp_mm_connect 0
[20180219-19:43:57] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20180219-19:43:57] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20180219-19:43:57] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20180219-19:44:00] [DEBUG] VNC error 1 after security negotiation
[20180219-19:44:00] [DEBUG] VNC error before sending share flag
[20180219-19:44:00] [DEBUG] VNC error before receiving server init
[20180219-19:44:00] [DEBUG] VNC error before receiving pixel format
[20180219-19:44:00] [DEBUG] VNC error before receiving name length
[20180219-19:44:00] [DEBUG] VNC error before receiving name
[20180219-19:44:00] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20180219-19:44:00] [DEBUG] Closed socket 17 (AF_INET6 :: port 40824)
[20180219-19:44:00] [DEBUG] xrdp_wm_log_msg: some problem
[20180219-19:44:00] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:44:00] [DEBUG] VNC mod_exit
[20180219-19:44:00] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 51526)
[20180219-19:47:42] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20180219-19:47:42] [DEBUG] xrdp_wm_log_msg: VNC connecting to 172.10.88.6 3350
[20180219-19:47:45] [DEBUG] VNC error 1 after security negotiation
[20180219-19:47:45] [DEBUG] VNC error before sending share flag
[20180219-19:47:45] [DEBUG] VNC error before receiving server init
[20180219-19:47:45] [DEBUG] VNC error before receiving pixel format
[20180219-19:47:45] [DEBUG] VNC error before receiving name length
[20180219-19:47:45] [DEBUG] VNC error before receiving name
[20180219-19:47:45] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20180219-19:47:45] [DEBUG] Closed socket 16 (AF_INET6 :: port 57536)
[20180219-19:47:45] [DEBUG] xrdp_wm_log_msg: some problem
[20180219-19:47:45] [ERROR] xrdp_wm_log_msg: Error connecting to: 172.10.88.6
[20180219-19:47:45] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:47:45] [DEBUG] VNC mod_exit
[20180219-19:47:45] [DEBUG] return value from xrdp_mm_connect 1
[20180219-19:47:51] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:47:51] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:47:51] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:48:07] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55674
[20180219-19:48:07] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:48:07] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:48:07] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:48:07] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:48:07] [DEBUG] Security layer: requested 11, selected 0
[20180219-19:48:07] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:48:07] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:48:08] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55675
[20180219-19:48:08] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:48:08] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:48:08] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:48:08] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:48:08] [DEBUG] Security layer: requested 0, selected 0
[20180219-19:48:08] [DEBUG] xrdp_00000cbd_wm_login_mode_event_00000001
[20180219-19:48:08] [INFO ] Loading keymap file /etc/xrdp/km-0000041d.ini
[20180219-19:48:08] [WARN ] local keymap file for 0x0000041d found and doesn't match built in keymap, using local keymap file
[20180219-19:48:30] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180219-19:48:31] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180219-19:48:31] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180219-19:48:31] [DEBUG] return value from xrdp_mm_connect 0
[20180219-19:48:32] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20180219-19:48:32] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:48:32] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 51540)
[20180219-19:48:56] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:48:56] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:48:56] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:49:01] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:50:24] [INFO ] starting xrdp with pid 654
[20180219-19:50:24] [INFO ] listening to port 3389 on 0.0.0.0
[20180219-19:50:34] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55696
[20180219-19:50:34] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:50:34] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:50:34] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:50:34] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:50:34] [DEBUG] Security layer: requested 11, selected 0
[20180219-19:50:34] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:50:34] [ERROR] Listening socket is in wrong state, terminating listener
[20180219-19:50:35] [INFO ] A connection received from: ::ffff:172.10.88.2 port 55697
[20180219-19:50:35] [DEBUG] Closed socket 12 (AF_INET6 ::ffff:172.10.88.6 port 3389)
[20180219-19:50:35] [DEBUG] Closed socket 11 (AF_INET6 :: port 3389)
[20180219-19:50:35] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20180219-19:50:35] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20180219-19:50:35] [DEBUG] Security layer: requested 0, selected 0
[20180219-19:50:35] [DEBUG] xrdp_000004aa_wm_login_mode_event_00000001
[20180219-19:50:35] [INFO ] Loading keymap file /etc/xrdp/km-0000041d.ini
[20180219-19:50:35] [WARN ] local keymap file for 0x0000041d found and doesn't match built in keymap, using local keymap file
[20180219-19:50:51] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180219-19:50:52] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180219-19:50:52] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180219-19:50:52] [DEBUG] return value from xrdp_mm_connect 0
[20180219-19:50:54] [INFO ] xrdp_wm_log_msg: login failed for display 0
[20180219-19:50:54] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:50:54] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 34254)
[20180219-19:51:32] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20180219-19:51:32] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20180219-19:51:32] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20180219-19:51:32] [DEBUG] return value from xrdp_mm_connect 0
[20180219-19:51:32] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20180219-19:51:32] [DEBUG] xrdp_wm_log_msg: VNC started connecting
[20180219-19:51:32] [DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
[20180219-19:51:35] [DEBUG] VNC error 1 after security negotiation
[20180219-19:51:35] [DEBUG] VNC error before sending share flag
[20180219-19:51:36] [DEBUG] VNC error before receiving server init
[20180219-19:51:36] [DEBUG] VNC error before receiving pixel format
[20180219-19:51:36] [DEBUG] VNC error before receiving name length
[20180219-19:51:36] [DEBUG] VNC error before receiving name
[20180219-19:51:36] [DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
[20180219-19:51:36] [DEBUG] Closed socket 17 (AF_INET6 :: port 43916)
[20180219-19:51:36] [DEBUG] xrdp_wm_log_msg: some problem
[20180219-19:51:36] [DEBUG] xrdp_mm_module_cleanup
[20180219-19:51:36] [DEBUG] VNC mod_exit
[20180219-19:51:36] [DEBUG] Closed socket 16 (AF_INET6 ::1 port 34268)

xrdp-sesman.log:

Code: Select all

dave@hal9000:/var/log$ sudo cat xrdp-sesman.log
[20180219-19:34:35] [DEBUG] libscp initialized
[20180219-19:34:35] [INFO ] starting xrdp-sesman with pid 2177
[20180219-19:34:35] [INFO ] listening to port 3350 on 127.0.0.1
[20180219-19:35:08] [INFO ] A connection received from ::1 port 51520
[20180219-19:35:08] [INFO ] ++ created session (access granted): username dave, ip 0.0.0.0:55534 - socket: 12
[20180219-19:35:08] [INFO ] starting Xorg session...
[20180219-19:35:08] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20180219-19:35:08] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20180219-19:35:08] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20180219-19:35:08] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20180219-19:35:08] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20180219-19:35:08] [INFO ] Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp
[20180219-19:35:18] [ERROR] X server for display 10 startup timeout
[20180219-19:35:18] [INFO ] starting xrdp-sessvc - xpid=2534 - wmpid=2533
[20180219-19:35:18] [ERROR] X server for display 10 startup timeout
[20180219-19:35:18] [ERROR] another Xserver might already be active on display 10 - see log
[20180219-19:35:18] [DEBUG] aborting connection...
[20180219-19:35:18] [INFO ] ++ terminated session:  username dave, display :10.0, session_pid 2532, ip 0.0.0.0:55534 - socket: 12
[20180219-19:43:56] [INFO ] A connection received from ::1 port 51526
[20180219-19:43:57] [INFO ] ++ created session (access granted): username dave, ip 0.0.0.0:55558 - socket: 12
[20180219-19:43:57] [INFO ] starting Xvnc session...
[20180219-19:43:57] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20180219-19:43:57] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20180219-19:43:57] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20180219-19:43:57] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20180219-19:43:57] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20180219-19:43:57] [INFO ] Xvnc :10 -auth .Xauthority -geometry 3440x1440 -depth 32 -rfbauth /home/dave/.vnc/sesman_dave_passwd:10 -bs -nolisten tcp -localhost -dpi 96
[20180219-19:43:57] [CORE ] error starting X server - user dave - pid 3131
[20180219-19:43:57] [DEBUG] errno: 2, description: No such file or directory
[20180219-19:43:57] [DEBUG] execve parameter list size: 17
[20180219-19:43:57] [DEBUG]         argv[0] = Xvnc
[20180219-19:43:57] [DEBUG]         argv[1] = :10
[20180219-19:43:57] [DEBUG]         argv[2] = -auth
[20180219-19:43:57] [DEBUG]         argv[3] = .Xauthority
[20180219-19:43:57] [DEBUG]         argv[4] = -geometry
[20180219-19:43:57] [DEBUG]         argv[5] = 3440x1440
[20180219-19:43:57] [DEBUG]         argv[6] = -depth
[20180219-19:43:57] [DEBUG]         argv[7] = 32
[20180219-19:43:57] [DEBUG]         argv[8] = -rfbauth
[20180219-19:43:57] [DEBUG]         argv[9] = /home/dave/.vnc/sesman_dave_passwd:10
[20180219-19:43:57] [DEBUG]         argv[10] = -bs
[20180219-19:43:57] [DEBUG]         argv[11] = -nolisten
[20180219-19:43:57] [DEBUG]         argv[12] = tcp
[20180219-19:43:57] [DEBUG]         argv[13] = -localhost
[20180219-19:43:57] [DEBUG]         argv[14] = -dpi
[20180219-19:43:57] [DEBUG]         argv[15] = 96
[20180219-19:43:57] [DEBUG]         argv[16] = (null)
[20180219-19:44:07] [ERROR] X server for display 10 startup timeout
[20180219-19:44:07] [INFO ] starting xrdp-sessvc - xpid=3131 - wmpid=3130
[20180219-19:44:07] [ERROR] X server for display 10 startup timeout
[20180219-19:44:07] [ERROR] another Xserver might already be active on display 10 - see log
[20180219-19:44:07] [DEBUG] aborting connection...
[20180219-19:44:07] [INFO ] ++ terminated session:  username dave, display :10.0, session_pid 3129, ip 0.0.0.0:55558 - socket: 12
[20180219-19:48:30] [INFO ] A connection received from ::1 port 51540
[20180219-19:48:32] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20180219-19:49:01] [INFO ] shutting down sesman 1
[20180219-19:49:01] [WARN ] receiving SIGHUP 1
[20180219-19:49:01] [CORE ] shutting down log subsystem...
[20180219-19:49:01] [INFO ] configuration reloaded, log subsystem restarted
[20180219-19:49:01] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20180219-19:50:22] [DEBUG] libscp initialized
[20180219-19:50:22] [INFO ] starting xrdp-sesman with pid 627
[20180219-19:50:22] [INFO ] listening to port 3350 on 127.0.0.1
[20180219-19:50:51] [INFO ] A connection received from ::1 port 34254
[20180219-19:50:54] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20180219-19:51:32] [INFO ] A connection received from ::1 port 34268
[20180219-19:51:32] [INFO ] ++ created session (access granted): username dave, ip 0.0.0.0:55697 - socket: 12
[20180219-19:51:32] [INFO ] starting Xvnc session...
[20180219-19:51:32] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20180219-19:51:32] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20180219-19:51:32] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20180219-19:51:32] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20180219-19:51:32] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20180219-19:51:32] [INFO ] Xvnc :10 -auth .Xauthority -geometry 3440x1440 -depth 32 -rfbauth /home/dave/.vnc/sesman_dave_passwd:10 -bs -nolisten tcp -localhost -dpi 96
[20180219-19:51:32] [CORE ] error starting X server - user dave - pid 1600
[20180219-19:51:33] [DEBUG] errno: 2, description: No such file or directory
[20180219-19:51:33] [DEBUG] execve parameter list size: 17
[20180219-19:51:33] [DEBUG]         argv[0] = Xvnc
[20180219-19:51:33] [DEBUG]         argv[1] = :10
[20180219-19:51:33] [DEBUG]         argv[2] = -auth
[20180219-19:51:33] [DEBUG]         argv[3] = .Xauthority
[20180219-19:51:33] [DEBUG]         argv[4] = -geometry
[20180219-19:51:33] [DEBUG]         argv[5] = 3440x1440
[20180219-19:51:33] [DEBUG]         argv[6] = -depth
[20180219-19:51:33] [DEBUG]         argv[7] = 32
[20180219-19:51:33] [DEBUG]         argv[8] = -rfbauth
[20180219-19:51:33] [DEBUG]         argv[9] = /home/dave/.vnc/sesman_dave_passwd:10
[20180219-19:51:33] [DEBUG]         argv[10] = -bs
[20180219-19:51:33] [DEBUG]         argv[11] = -nolisten
[20180219-19:51:33] [DEBUG]         argv[12] = tcp
[20180219-19:51:33] [DEBUG]         argv[13] = -localhost
[20180219-19:51:33] [DEBUG]         argv[14] = -dpi
[20180219-19:51:33] [DEBUG]         argv[15] = 96
[20180219-19:51:33] [DEBUG]         argv[16] = (null)
[20180219-19:51:43] [ERROR] X server for display 10 startup timeout
[20180219-19:51:43] [ERROR] X server for display 10 startup timeout
[20180219-19:51:43] [INFO ] starting xrdp-sessvc - xpid=1600 - wmpid=1599
[20180219-19:51:43] [ERROR] another Xserver might already be active on display 10 - see log
[20180219-19:51:43] [DEBUG] aborting connection...
[20180219-19:51:43] [INFO ] ++ terminated session:  username dave, display :10.0, session_pid 1598, ip 0.0.0.0:55697 - socket: 12
dave@hal9000:/var/log$

Netstat -l:

Code: Select all

dave@hal9000:/var/log$ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 localhost:smtp          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN
tcp6       0      0 localhost:smtp          [::]:*                  LISTEN
tcp6       0      0 [::]:3389               [::]:*                  LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
tcp6       0      0 localhost:3350          [::]:*                  LISTEN
udp        0      0 0.0.0.0:43335           0.0.0.0:*
udp        0      0 0.0.0.0:mdns            0.0.0.0:*
udp        0      0 0.0.0.0:bootpc          0.0.0.0:*
udp        0      0 0.0.0.0:1900            0.0.0.0:*
udp6       0      0 [::]:53584              [::]:*
udp6       0      0 [::]:mdns               [::]:*
raw6       0      0 [::]:ipv6-icmp          [::]:*                  7
Active UNIX domain sockets (only servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ACC ]     STREAM     LISTENING     15104    /run/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     25192    /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     22591    /tmp/.ICE-unix/693
unix  2      [ ACC ]     STREAM     LISTENING     18395    /tmp/.X11-unix/X1024
unix  2      [ ACC ]     STREAM     LISTENING     19220    /run/user/1000/pulse/native
unix  2      [ ACC ]     STREAM     LISTENING     11186    /tmp/ssh-FBYJ1rlvvmr2/agent.1241
unix  2      [ ACC ]     STREAM     LISTENING     25238    /tmp/.ICE-unix/1241
unix  2      [ ACC ]     STREAM     LISTENING     22551    /run/user/118/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     25237    @/tmp/.ICE-unix/1241
unix  2      [ ACC ]     STREAM     LISTENING     1307     /run/lvm/lvmetad.socket
unix  2      [ ACC ]     STREAM     LISTENING     22556    /run/user/118/pulse/native
unix  2      [ ACC ]     STREAM     LISTENING     1310     /run/systemd/journal/stdout
unix  2      [ ACC ]     STREAM     LISTENING     22559    /run/user/118/bus
unix  2      [ ACC ]     STREAM     LISTENING     25191    @/tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     22561    /run/user/118/gnupg/S.gpg-agent.ssh
unix  2      [ ACC ]     STREAM     LISTENING     22564    /run/user/118/gnupg/S.gpg-agent
unix  2      [ ACC ]     STREAM     LISTENING     22566    /run/user/118/gnupg/S.gpg-agent.extra
unix  2      [ ACC ]     STREAM     LISTENING     22568    /run/user/118/gnupg/S.gpg-agent.browser
unix  2      [ ACC ]     STREAM     LISTENING     25132    /var/run/minissdpd.sock
unix  2      [ ACC ]     STREAM     LISTENING     1330     /run/systemd/fsck.progress
unix  2      [ ACC ]     STREAM     LISTENING     1332     /run/lvm/lvmpolld.socket
unix  2      [ ACC ]     STREAM     LISTENING     20320    @/tmp/dbus-UfzVMsQcvB
unix  2      [ ACC ]     SEQPACKET  LISTENING     1351     /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     25185    @/tmp/dbus-6ofjyHR1
unix  2      [ ACC ]     STREAM     LISTENING     18245    @/tmp/dbus-lxvYA6gm
unix  2      [ ACC ]     STREAM     LISTENING     11869    /var/run/avahi-daemon/socket
unix  2      [ ACC ]     STREAM     LISTENING     11872    /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     23907    /run/user/1000/systemd/private
unix  2      [ ACC ]     STREAM     LISTENING     18249    @/tmp/dbus-DUt4Gudv
unix  2      [ ACC ]     STREAM     LISTENING     23912    /run/user/1000/gnupg/S.gpg-agent.extra
unix  2      [ ACC ]     STREAM     LISTENING     23915    /run/user/1000/gnupg/S.gpg-agent.ssh
unix  2      [ ACC ]     STREAM     LISTENING     13163    /var/run/bumblebee.socket
unix  2      [ ACC ]     STREAM     LISTENING     23917    /run/user/1000/gnupg/S.gpg-agent
unix  2      [ ACC ]     STREAM     LISTENING     23919    /run/user/1000/gnupg/S.gpg-agent.browser
unix  2      [ ACC ]     STREAM     LISTENING     23921    /run/user/1000/bus
unix  2      [ ACC ]     STREAM     LISTENING     22590    @/tmp/.ICE-unix/693
unix  2      [ ACC ]     STREAM     LISTENING     22647    /run/user/118/wayland-0
unix  2      [ ACC ]     STREAM     LISTENING     11177    /run/user/1000/keyring/control
unix  2      [ ACC ]     STREAM     LISTENING     23750    /var/run/NetworkManager/private-dhcp
unix  2      [ ACC ]     STREAM     LISTENING     19850    @/tmp/dbus-hOFBHWJFqv
unix  2      [ ACC ]     STREAM     LISTENING     18248    @/tmp/dbus-N9OBLlTV
unix  2      [ ACC ]     STREAM     LISTENING     18394    @/tmp/.X11-unix/X1024
unix  2      [ ACC ]     STREAM     LISTENING     25186    @/tmp/dbus-7hAWJESu
unix  2      [ ACC ]     STREAM     LISTENING     22245    /run/user/1000/keyring/pkcs11
unix  2      [ ACC ]     STREAM     LISTENING     18246    @/tmp/dbus-EdXm47V8
unix  2      [ ACC ]     STREAM     LISTENING     22249    /run/user/1000/keyring/ssh

The error message upon connecting to the linux machine is just «some problem» :D

Цитата
Сообщение от _sg2
Посмотреть сообщение

они ещё и на юх посылают

Никто вас никуда не посылал. Просто вы задаёте странные вопросы со странным упорством, не взирая на мои ответы.

Цитата
Сообщение от _sg2
Посмотреть сообщение

Им помочь пытаешься

Есть пословица мудрая: «Благими намерениями вымощена дорога в ад». Я ценю, что вы ради меня заморочились, поставили и запустили у себя всю эту байду. Но фразой «а вот у меня заработало», ей-Богу, вы мне никак не помогли. Пока что вы только тратите моё время на странные расспросы, что меня и раздражает.

Впрочем, я, безусловно от части не прав, так как не полностью описал проблему. Я написал, что у меня не работает, но не написал, зачем мне это надо. Не думал, что с этим могут возникнуть такие проблемы. Исправляюсь: я не могу настроить удалённый рабочий стол. Когда я подключаюсь к удалённому серверу по RDP, при попытке авторизации я вижу это:

VNC сервер не запускается

. Там написано, что проблема c VNC. Поэтому я и написал, что у меня проблема с VNC.

Но вы тоже хороши:

Цитата
Сообщение от _sg2
Посмотреть сообщение

Из этой ваше фразы и понимаешь, что вы к VNC-серверу зачем-то ломитесь по RDP

Уверен, что никто другой бы эту фразу так не понял. Но даже если допустить такой абсурд, что это меняет в сути проблемы? Проблема в том, что VNC сервер не запускается, о чём я совершенно ясно писал изначально. Не важно, пытаюсь я к нему подключиться по RDP, HTTP, USB, или какими-нибудь ещё более извращёнными методами. Проблема лишь в том, что он изначально не запускается, а не в том, что я с ним потом собираюсь делать. Ну почему такие элементарные вещи надо разжёвывать?

Цитата
Сообщение от _sg2
Посмотреть сообщение

Дык установите его и подключайтесь! Кто ж не даёт.

Ёперный театр, да как бы я мог увидеть то, что представил на скриншоте, если бы у меня не был установлен этот несчастный XRDP?!! Конечно я его установил первым делом! И это именно он на скриншоте ругается на VNC. А логи, что я представил, вы очевидно, не удосужились почитать. Там целый лог от XRDP. Если он его пишет, значит, наверное, он установлен?

Цитата
Сообщение от _sg2
Посмотреть сообщение

Системное администрирование — наука точная…

Честное слово, не хочу вас обижать. Но вот сейчас уже до истерического смеха просто. Надеюсь, связь между моим истерическим смехом и вашей фразой не придётся разжёвывать как все предыдущие.

Автор Palamar, 11 сентября 2017, 12:36:51

« назад — далее »

0 Пользователи и 1 гость просматривают эту тему.

Установил на debian 9 xrdp,для подключения с виндовых машин.
Пытаюсь подключится,не получается vnc error problem connection
Подскажите куда смотеть?

Sep 11 12:27:06 proxmox xrdp-sesman[1083]: (1083)(140701857793344)[INFO ] starting Xvnc session...
Sep 11 12:27:06 proxmox xrdp-sesman[1083]: (1083)(140701857793344)[DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
Sep 11 12:27:06 proxmox xrdp-sesman[1083]: (1083)(140701857793344)[DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
Sep 11 12:27:06 proxmox xrdp-sesman[1083]: (1083)(140701857793344)[DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
Sep 11 12:27:06 proxmox xrdp-sesman[1083]: (1083)(140701857793344)[DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
Sep 11 12:27:06 proxmox xrdp-sesman[23714]: (23714)(140701857793344)[DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
Sep 11 12:27:06 proxmox xrdp[23688]: (23688)(140710137502528)[INFO ] xrdp_wm_log_msg: login successful for display 10
Sep 11 12:27:06 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] xrdp_wm_log_msg: VNC started connecting
Sep 11 12:27:06 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] xrdp_wm_log_msg: VNC connecting to 127.0.0.1 5910
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[INFO ] Xvnc :10 -auth .Xauthority -geometry 1400x1050 -depth                                            32 -rfbauth /home/user/.vnc/sesman_user_passwd:10 -bs -nolisten tcp -localhost -dpi 96
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[CORE ] error starting X server - user user - pid 23716
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG] errno: 2, description: No such file or directory
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG] execve parameter list size: 17
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[0] = Xvnc
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[1] = :10
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[2] = -auth
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[3] = .Xauthority
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[4] = -geometry
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[5] = 1400x1050
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[6] = -depth
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[7] = 32
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[8] = -rfbauth
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[9] = /home/user/.vnc/sesman_user_passwd:                                           10
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[10] = -bs
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[11] = -nolisten
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[12] = tcp
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[13] = -localhost
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[14] = -dpi
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[15] = 96
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG]         argv[16] = (null)
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC error 1 after security negotiation
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC error before sending share flag
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC error before receiving server init
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC error before receiving pixel format
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC error before receiving name length
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC error before receiving name
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] xrdp_wm_log_msg: VNC error - problem connecting
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] Closed socket 17 (AF_INET6 :: port 48724)
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] xrdp_wm_log_msg: some problem
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] xrdp_mm_module_cleanup
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] VNC mod_exit
Sep 11 12:27:10 proxmox xrdp[23688]: (23688)(140710137502528)[DEBUG] Closed socket 16 (AF_INET6 ::1 port 33052)
Sep 11 12:27:16 proxmox xrdp-sesman[23714]: (23714)(140701857793344)[ERROR] X server for display 10 startup timeout
Sep 11 12:27:16 proxmox xrdp-sesman[23714]: (23714)(140701857793344)[INFO ] starting xrdp-sessvc - xpid=23716 - wmpid=23715
Sep 11 12:27:16 proxmox xrdp-sesman[23715]: (23715)(140701857793344)[ERROR] X server for display 10 startup timeout
Sep 11 12:27:17 proxmox xrdp-sesman[23732]: (23732)(140701857793344)[ERROR] another Xserver might already be active on display 10 - see log
Sep 11 12:27:17 proxmox xrdp-sesman[23732]: (23732)(140701857793344)[DEBUG] aborting connection...
Sep 11 12:27:17 proxmox xrdp-sesman[1083]: (1083)(140701857793344)[INFO ] ++ terminated session:  username user, display :10.0, session_pid 23714, ip 0.0.0.0:58288 - socket: 12
Sep 11 12:28:00 proxmox systemd[1]: Starting Proxmox VE replication runner...


дайте совет где копать,неделю мучаюсь.


Цитата: Palamar от 11 сентября 2017, 12:36:51Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[INFO ] Xvnc :10 -auth .Xauthority -geometry 1400×1050 -depth                                            32 -rfbauth /home/user/.vnc/sesman_user_passwd:10 -bs -nolisten tcp -localhost -dpi 96
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[CORE ] error starting X server — user user — pid 23716
Sep 11 12:27:07 proxmox xrdp-sesman[23716]: (23716)(140701857793344)[DEBUG] errno: 2, description: No such file or directory

ругается на отсутствие файла /home/user/.vnc/sesman_user_passwd


Цитата: endru от 20 сентября 2017, 07:33:24ругается на отсутствие файла /home/user/.vnc/sesman_user_passwd

там есть такой файл sesman_user_passwd:10

во что при подключении в логе xrdp

[20170916-19:09:31] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20170916-19:09:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:09:31] [DEBUG] xrdp_wm_log_msg: some problem
[20170916-19:09:31] [DEBUG] xrdp_mm_module_cleanup
[20170916-19:09:31] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:60904)
[20170916-19:16:14] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170916-19:16:14] [CORE ] shutting down log subsystem...
[20170916-19:16:14] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:16:14] [DEBUG] xrdp_mm_module_cleanup
[20170916-19:16:14] [ERROR] Listening socket is in wrong state, terminating listener
[20170916-19:16:14] [CORE ] shutting down log subsystem...
[20170916-19:16:14] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20170916-19:16:14] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
[20170916-19:16:16] [INFO ] starting xrdp with pid 1784
[20170916-19:16:16] [INFO ] listening to port 3389 on 0.0.0.0
[20170916-19:17:26] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170916-19:17:26] [CORE ] shutting down log subsystem...
[20170916-19:17:33] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20170916-19:17:33] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
[20170916-19:17:35] [INFO ] starting xrdp with pid 1818
[20170916-19:17:35] [INFO ] listening to port 3389 on 0.0.0.0
[20170916-19:18:27] [INFO ] Socket 12: AF_INET connection received from 192.168.100.96 port 65295
[20170916-19:18:27] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:18:27] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170916-19:18:27] [WARN ] X.509 certificate should use absolute path, using default instead: /etc/xrdp/cert.pem
[20170916-19:18:27] [WARN ] X.509 key file should use absolute path, using default instead: /etc/xrdp/key.pem
[20170916-19:18:27] [DEBUG] TLSv1.2 enabled
[20170916-19:18:27] [DEBUG] TLSv1.1 enabled
[20170916-19:18:27] [DEBUG] TLSv1 enabled
[20170916-19:18:27] [DEBUG] Security layer: requested 3, selected 1
[20170916-19:18:27] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:18:27] [INFO ] Socket 12: AF_INET connection received from 192.168.100.96 port 65296
[20170916-19:18:27] [ERROR] Listening socket is in wrong state, terminating listener
[20170916-19:18:28] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:18:28] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170916-19:18:28] [CORE ] shutting down log subsystem...
[20170916-19:18:28] [WARN ] X.509 certificate should use absolute path, using default instead: /etc/xrdp/cert.pem
[20170916-19:18:28] [WARN ] X.509 key file should use absolute path, using default instead: /etc/xrdp/key.pem
[20170916-19:18:28] [DEBUG] TLSv1.2 enabled
[20170916-19:18:28] [DEBUG] TLSv1.1 enabled
[20170916-19:18:28] [DEBUG] TLSv1 enabled
[20170916-19:18:28] [DEBUG] Security layer: requested 3, selected 1
[20170916-19:18:28] [INFO ] connected client computer name: ADMIN2
[20170916-19:18:28] [INFO ] TLS connection established from 192.168.100.96 port 65296: TLSv1 with cipher ECDHE-RSA-AES256-SHA
[20170916-19:18:28] [DEBUG] xrdp_00000729_wm_login_mode_event_00000001
[20170916-19:18:28] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170916-19:18:28] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20170916-19:18:44] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170916-19:18:44] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170916-19:18:44] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170916-19:18:44] [DEBUG] return value from xrdp_mm_connect 0
[20170916-19:18:45] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170916-19:18:45] [DEBUG] xrdp_wm_log_msg: started connecting
[20170916-19:18:48] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:18:52] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:27:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:27:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:03] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:10] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:14] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:17] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:21] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:24] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:28] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:35] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:39] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:42] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:46] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:49] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:53] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:56] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20170915-08:28:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170915-08:28:56] [DEBUG] xrdp_wm_log_msg: some problem
[20170915-08:28:56] [DEBUG] xrdp_mm_module_cleanup


Цитата: Palamar от 20 сентября 2017, 20:38:24там есть такой файл sesman_user_passwd:10

1) именно с :10 ? оно здесь лишнее!
2) нужно проверить что есть права на чтение этого файла.
3) netstan -ntl
4) iptables-save
5) где вообще конфигурационный файл? по логам не гадаю.


Цитата: endru от 21 сентября 2017, 04:34:251) именно с :10 ? оно здесь лишнее!
2) нужно проверить что есть права на чтение этого файла.
3) netstan -ntl
4) iptables-save
5) где вообще конфигурационный файл? по логам не гадаю.

1)переименовал
2)права дал
3)

root@archive:/home/user/.vnc# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
tcp        0      0 127.0.0.1:3350          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:3389            0.0.0.0:*               LISTEN     
tcp6       0      0 :::22                   :::*                    LISTEN 

5)как я понял это /etc/xrdp/xrdp.ini

ставил разные xrdp,на данный момент стоит версия из github
https://github.com/neutrinolabs/xrdp

log после изменения параметров какие вы написали выше

20170916-19:30:59] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20170916-19:30:59] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
[20170916-19:31:01] [INFO ] starting xrdp with pid 1991
[20170916-19:31:01] [INFO ] listening to port 3389 on 0.0.0.0
[20170916-19:32:56] [INFO ] Socket 12: AF_INET connection received from 192.168.100.90 port 56991
[20170916-19:32:56] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:32:56] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170916-19:32:56] [WARN ] X.509 certificate should use absolute path, using default instead: /etc/xrdp/cert.pem
[20170916-19:32:56] [WARN ] X.509 key file should use absolute path, using default instead: /etc/xrdp/key.pem
[20170916-19:32:56] [DEBUG] TLSv1.2 enabled
[20170916-19:32:56] [DEBUG] TLSv1.1 enabled
[20170916-19:32:56] [DEBUG] TLSv1 enabled
[20170916-19:32:56] [DEBUG] Security layer: requested 11, selected 1
[20170916-19:32:56] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:32:56] [ERROR] Listening socket is in wrong state, terminating listener
[20170916-19:32:56] [CORE ] shutting down log subsystem...
[20170916-19:33:29] [INFO ] Socket 12: AF_INET connection received from 192.168.100.90 port 57033
[20170916-19:33:29] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170916-19:33:29] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170916-19:33:30] [WARN ] X.509 certificate should use absolute path, using default instead: /etc/xrdp/cert.pem
[20170916-19:33:30] [WARN ] X.509 key file should use absolute path, using default instead: /etc/xrdp/key.pem
[20170916-19:33:30] [DEBUG] TLSv1.2 enabled
[20170916-19:33:30] [DEBUG] TLSv1.1 enabled
[20170916-19:33:30] [DEBUG] TLSv1 enabled
[20170916-19:33:30] [DEBUG] Security layer: requested 11, selected 1
[20170916-19:33:30] [INFO ] connected client computer name: KSV
[20170916-19:33:30] [INFO ] TLS connection established from 192.168.100.90 port 57033: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384
[20170916-19:33:30] [DEBUG] xrdp_000007ce_wm_login_mode_event_00000001
[20170916-19:33:30] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170916-19:33:30] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20170916-19:33:44] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170916-19:33:44] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170916-19:33:44] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170916-19:33:44] [DEBUG] return value from xrdp_mm_connect 0
[20170916-19:33:44] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170916-19:33:44] [DEBUG] xrdp_wm_log_msg: started connecting
[20170916-19:33:48] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:33:51] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:33:55] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:33:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:02] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:09] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:13] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:16] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:20] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:24] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:27] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:34] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:38] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:41] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:45] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:49] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:52] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:34:59] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:03] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:06] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:10] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:14] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:17] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:21] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:24] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:28] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:31] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:35] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:38] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:42] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:46] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:49] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:53] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:35:56] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:00] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:03] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:07] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:11] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:14] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:18] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:21] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:25] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:28] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:32] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:36] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:39] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:43] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:46] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:50] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:53] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:36:57] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:00] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:04] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:08] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:11] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:15] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:18] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20170916-19:37:18] [DEBUG] Closed socket 19 (AF_UNIX)
[20170916-19:37:18] [DEBUG] xrdp_wm_log_msg: some problem
[20170916-19:37:18] [DEBUG] xrdp_mm_module_cleanup
[20170916-19:37:18] [DEBUG] Closed socket 18 (AF_INET 127.0.0.1:60910)
[20170918-07:51:15] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170918-07:51:15] [DEBUG] xrdp_mm_module_cleanup
[20170918-07:51:15] [ERROR] Listening socket is in wrong state, terminating listener
[20170918-07:51:15] [CORE ] shutting down log subsystem...
[20170921-08:48:29] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170921-08:48:29] [CORE ] shutting down log subsystem...
[20170921-08:48:29] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20170921-08:48:29] [DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
[20170921-08:48:31] [INFO ] starting xrdp with pid 5958
[20170921-08:48:31] [INFO ] listening to port 3389 on 0.0.0.0
[20170921-08:48:55] [INFO ] Socket 12: AF_INET connection received from 192.168.100.96 port 58048
[20170921-08:48:55] [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389)
[20170921-08:48:56] [WARN ] X.509 certificate should use absolute path, using default instead: /etc/xrdp/cert.pem
[20170921-08:48:56] [WARN ] X.509 key file should use absolute path, using default instead: /etc/xrdp/key.pem
[20170921-08:48:56] [DEBUG] TLSv1.2 enabled
[20170921-08:48:55] [DEBUG] Closed socket 12 (AF_INET 192.168.100.151:3389)
[20170921-08:48:56] [DEBUG] TLSv1.1 enabled
[20170921-08:48:56] [DEBUG] TLSv1 enabled
[20170921-08:48:56] [DEBUG] Security layer: requested 3, selected 1
[20170921-08:48:57] [INFO ] connected client computer name: admin
[20170921-08:48:57] [INFO ] TLS connection established from 192.168.100.96 port 58048: TLSv1 with cipher ECDHE-RSA-AES256-SHA
[20170921-08:48:57] [DEBUG] xrdp_0000174d_wm_login_mode_event_00000001
[20170921-08:48:57] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20170921-08:48:57] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20170921-08:48:57] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170921-08:48:57] [WARN ] local keymap file for 0x00000000 found and doesn't match built in keymap, using local keymap file
[20170921-08:49:06] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20170921-08:49:06] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20170921-08:49:07] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20170921-08:49:07] [DEBUG] return value from xrdp_mm_connect 0
[20170921-08:49:07] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20170921-08:49:07] [DEBUG] xrdp_wm_log_msg: started connecting


Ещё раз что-то выложите без соответствующих тегов — сразу в

жбан

бан!


service xrdp status
● xrdp.service - xrdp daemon
   Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-09-21 09:59:19 EEST; 2min 27s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
  Process: 721 ExecStop=/usr/local/sbin/xrdp $XRDP_OPTIONS --kill (code=exited, status=0/SUCCESS)
  Process: 729 ExecStart=/usr/local/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 730 (xrdp)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/xrdp.service
           └─730 /usr/local/sbin/xrdp

Сен 21 09:59:18 archive systemd[1]: Starting xrdp daemon...
Сен 21 09:59:18 archive xrdp[729]: (729)(140650966923008)[DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
Сен 21 09:59:18 archive xrdp[729]: (729)(140650966923008)[DEBUG] Closed socket 7 (AF_INET 0.0.0.0:3389)
Сен 21 09:59:18 archive systemd[1]: xrdp.service: PID file /var/run/xrdp.pid not readable (yet?) after start: No such file or directory
Сен 21 09:59:19 archive systemd[1]: Started xrdp daemon.
Сен 21 09:59:20 archive xrdp[730]: (730)(140650966923008)[INFO ] starting xrdp with pid 730
Сен 21 09:59:20 archive xrdp[730]: (730)(140650966923008)[INFO ] listening to port 3389 on 0.0.0.0

заметил тут

xrdp.service: PID file /var/run/xrdp.pid not readable (yet?) after start: No such file or directory

не было прав на запись,установил права на файл 644,после рестарта xrdp права снова 600,почему?


Цитата: Palamar от 21 сентября 2017, 10:04:24
не было прав на запись,установил права на файл 644,после рестарта xrdp права снова 600,почему?

это pid файл, на него должны быть права только те что выставляются при запуске, менять их не нужно.
pid файл нужен для фоновых программ, чтобы избежать повторного запуска и корректно завершать текущий процесс. обычно внутри такого файла записан текущий PID процесса.

права выставляются только на конфигурационные файлы, и то если они необходимы.

показывай конфиг /etc/default/xrdp и /etc/xrdp/xrdp.ini

и обрати внимание на ошибки:

Цитата: Palamar от 21 сентября 2017, 08:54:20[20170921-08:48:57] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20170921-08:48:57] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170921-08:48:57] [WARN ] local keymap file for 0x00000000 found and doesn’t match built in keymap, using local keymap file

вообще по логам не вижу проблем. до сих пор не получается подключиться?


Цитата: endru от 21 сентября 2017, 11:31:44[20170921-08:48:57] [INFO ] Cannot find keymap file /etc/xrdp/km-00000000.ini
[20170921-08:48:57] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20170921-08:48:57] [WARN ] local keymap file for 0x00000000 found and doesn’t match built in keymap, using local keymap file

этих файлов нету

запустил

dpkg-reconfigure xserver-xorg-legacy поставил кто угодно,стояло только пользователи из консоли
Переустановил xrdp,поставил из репозитория и всё завилось.Спасибо большое за помощь.


  • Русскоязычное сообщество Debian GNU/Linux


  • Общие вопросы

  • xrdp не могу подключиться

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 39453 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!

Понравилась статья? Поделить с друзьями:
  • Volvo xc90 ошибка dem p188914
  • Vmwgfx error failed to send host log message
  • Volvo xc90 ошибка 9c03
  • Vmware ошибка при запуске виртуальной машины
  • Vmware как изменить размер диска