Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

xrdp connectivity no longer works after apt upgrade in Ubuntu 18.04.1 LTS #76

Closed
adilwali opened this issue Jan 8, 2019 · 23 comments
Closed

Comments

@adilwali
Copy link

adilwali commented Jan 8, 2019

Hey gang! I'm a huge fan of this project, and have been experimenting with coming back to windows after years on Ubuntu.

Context

I'm running Win10 Pro - 17763. I installed the latest Ubuntu 18.04.1 via the "Quick Create" tool. Everything worked perfectly fine for about 2 weeks. Just recently (after the turn of the year), I lost all connectivity to XRDP. The symptoms smell like #49, but I have verified 3x now that autologin is not enabled.

Specifically, the symptoms are as follows:

  • Upon first login, I get kicked back after logging in to the black screen that says "remote video was disconnected."
  • Upon future logins, I get stuck at the blue screen for a long time (5 minutes?). Eventually, I see
login successfully for display 10
started connecting
connection problem, giving up
some problem

I'm pretty deep into this VM, with lots of custom-built cpp packages, which is why I haven't just caved and created a new VM. I'm hoping to make the GUI recoverable. It's worth noting that everything else works. (I usually just SSH in, but sometimes I need the GUI to test the GUI I'm working on.)

Stuff I've Tried

I have tried a couple different things to see if I can get things back into a connectable state.

  • At first, I thought it could be related to the enhanced mode only, so I turned vsock off in the xrdp.ini and attempted to connect from a remote host. No change.
  • I uninstalled xrdp; rebooted; then re-installed it. (To see if a vanilla xrdp would work.) No change.
  • I re-ran this manually: https://github.com/Microsoft/linux-vm-tools/blob/master/ubuntu/18.04/install.sh. No change.
  • I thought it might be because I turned password authentication off (using only an SSH Key to login). Turned that off, and restarted SSHD. No change.

Hypothesis and Open Questions

At this point, I'm down to a couple guesses:

  • I've run sudo apt upgrade somewhere along the way. Is the xorgxrdp or xrdp package somehow modified in the Microsoft image? Maybe I shouldn't have updated packages?
  • Maybe Xorg/Gdm3 are just boinked on my install? Don't know how this would have gotten corrupted along the way.

My Plan Now

I would be very grateful for any guidance you guys might have as to what else I might try. I'm wondering if there is something I don't know (eg, something about the MS Ubuntu build that's different.)

@adilwali
Copy link
Author

adilwali commented Jan 8, 2019

For reference, I'll my sesman.log, xrdp.log, and .xorgxrdp.10.log:

xrdp.log:

[20190108-04:26:43] [INFO ] Socket 12: AF_VSOCK connection received from cid: -1 port: -2147483641
[20190108-04:26:43] [DEBUG] Closed socket 12 (AF_VSOCK cid -1 port 3389)
[20190108-04:26:43] [DEBUG] Closed socket 11 (AF_VSOCK cid -1 port 3389)
[20190108-04:26:43] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20190108-04:26:43] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20190108-04:26:43] [ERROR] Cannot read private key file /etc/xrdp/key.pem: No such file or directory
[20190108-04:26:43] [DEBUG] TLSv1.2 enabled
[20190108-04:26:43] [DEBUG] TLSv1.1 enabled
[20190108-04:26:43] [DEBUG] TLSv1 enabled
[20190108-04:26:43] [DEBUG] Security layer: requested 11, selected 0
[20190108-04:26:43] [DEBUG] Closed socket 12 (AF_VSOCK cid -1 port 3389)
[20190108-04:26:43] [INFO ] Socket 12: AF_VSOCK connection received from cid: -1 port: -2147483640
[20190108-04:26:43] [DEBUG] Closed socket 12 (AF_VSOCK cid -1 port 3389)
[20190108-04:26:43] [DEBUG] Closed socket 11 (AF_VSOCK cid -1 port 3389)
[20190108-04:26:43] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20190108-04:26:43] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20190108-04:26:43] [ERROR] Cannot read private key file /etc/xrdp/key.pem: No such file or directory
[20190108-04:26:43] [DEBUG] TLSv1.2 enabled
[20190108-04:26:43] [DEBUG] TLSv1.1 enabled
[20190108-04:26:43] [DEBUG] TLSv1 enabled
[20190108-04:26:43] [DEBUG] Security layer: requested 0, selected 0
[20190108-04:26:43] [INFO ] connected client computer name: DESKTOP-Q5BLN8V
[20190108-04:26:43] [INFO ] Non-TLS connection established from -1 port -2147483640: encrypted with standard RDP security
[20190108-04:26:43] [DEBUG] xrdp_00002271_wm_login_mode_event_00000001
[20190108-04:26:43] [INFO ] Cannot find keymap file /etc/xrdp/km-a0000409.ini
[20190108-04:26:43] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20190108-04:26:43] [WARN ] local keymap file for 0xa0000409 found and doesn't match built in keymap, using local keymap file
[20190108-04:26:52] [DEBUG] xrdp_wm_log_msg: connecting to sesman ip 127.0.0.1 port 3350
[20190108-04:26:53] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20190108-04:26:53] [DEBUG] xrdp_wm_log_msg: sending login info to session manager, please wait...
[20190108-04:26:53] [DEBUG] return value from xrdp_mm_connect 0
[20190108-04:26:53] [INFO ] xrdp_wm_log_msg: login successful for display 10
[20190108-04:26:53] [DEBUG] xrdp_wm_log_msg: started connecting
[20190108-04:26:57] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:00] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:04] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:07] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:11] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:14] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:18] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:21] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:25] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:28] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:32] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:35] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:39] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:42] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:46] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:49] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:53] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:27:56] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:00] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:03] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:07] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:10] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:14] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:18] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:21] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:25] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:28] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:32] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:35] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:39] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:42] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:46] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:49] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:53] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:28:56] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:00] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:03] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:07] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:10] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:14] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:17] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:21] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:24] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:28] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:31] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:35] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:38] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:42] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:45] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:49] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:52] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:29:56] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:00] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:03] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:07] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:10] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:14] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:17] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:21] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:24] [DEBUG] xrdp_wm_log_msg: connection problem, giving up
[20190108-04:30:24] [DEBUG] Closed socket 23 (AF_UNIX)
[20190108-04:30:24] [DEBUG] xrdp_wm_log_msg: some problem
[20190108-04:30:24] [DEBUG] xrdp_mm_module_cleanup
[20190108-04:30:24] [DEBUG] Closed socket 22 (AF_INET6 ::1 port 59540)

xrdp-sesman.log

[20190108-04:45:00] [INFO ] shutting down sesman 1
[20190108-04:45:00] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20190108-04:45:01] [DEBUG] libscp initialized
[20190108-04:45:01] [DEBUG] Testing if xrdp-sesman can listen on 127.0.0.1 port 3350.
[20190108-04:45:01] [INFO ] starting xrdp-sesman with pid 1230
[20190108-04:45:01] [DEBUG] Closed socket 5 (AF_INET6 ::1 port 3350)
[20190108-04:45:01] [INFO ] listening to port 3350 on 127.0.0.1
[20190108-04:45:12] [INFO ] A connection received from ::1 port 39142
[20190108-04:45:13] [INFO ] ++ created session (access granted): username merit, ip NULL:NULL - socket: 12
[20190108-04:45:13] [INFO ] starting Xorg session...
[20190108-04:45:13] [DEBUG] Closed socket 9 (AF_INET6 :: port 5910)
[20190108-04:45:13] [DEBUG] Closed socket 9 (AF_INET6 :: port 6010)
[20190108-04:45:13] [DEBUG] Closed socket 9 (AF_INET6 :: port 6210)
[20190108-04:45:13] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20190108-04:45:13] [INFO ] calling auth_start_session from pid 1402
[20190108-04:45:13] [DEBUG] Closed socket 7 (AF_INET6 ::1 port 3350)
[20190108-04:45:13] [DEBUG] Closed socket 8 (AF_INET6 ::1 port 3350)
[20190108-04:45:13] [INFO ] /usr/lib/xorg/Xorg :10 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20190108-04:45:13] [CORE ] waiting for window manager (pid 1415) to exit
[20190108-04:45:14] [CORE ] window manager (pid 1415) did exit, cleaning up session
[20190108-04:45:14] [INFO ] calling auth_stop_session and auth_end from pid 1402
[20190108-04:45:14] [DEBUG] cleanup_sockets:
[20190108-04:45:14] [DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdp_chansrv_audio_out_socket_10
[20190108-04:45:14] [DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdp_chansrv_audio_in_socket_10
[20190108-04:45:14] [DEBUG] cleanup_sockets: deleting /var/run/xrdp/sockdir/xrdpapi_10

.xorg.xrdp.10.log

[    18.056]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    18.056] X Protocol Version 11, Revision 0
[    18.056] Build Operating System: Linux 4.4.0-138-generic x86_64 Ubuntu
[    18.056] Current Operating System: Linux mvm 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64
[    18.056] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.15.0-43-generic root=/dev/sda1 ro quiet splash vt.handoff=1
[    18.056] Build Date: 25 October 2018  04:11:27PM
[    18.056] xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support)
[    18.056] Current version of pixman: 0.34.0
[    18.056]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    18.056] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    18.056] (++) Log file: ".xorgxrdp.10.log", Time: Tue Jan  8 04:45:13 2019
[    18.059] (++) Using config file: "/etc/X11/xrdp/xorg.conf"
[    18.059] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    18.061] (==) ServerLayout "X11 Server"
[    18.061] (**) |-->Screen "Screen (xrdpdev)" (0)
[    18.061] (**) |   |-->Monitor "Monitor"
[    18.062] (**) |   |-->Device "Video Card (xrdpdev)"
[    18.062] (**) |-->Input Device "xrdpMouse"
[    18.062] (**) |-->Input Device "xrdpKeyboard"
[    18.062] (**) Option "DontVTSwitch" "on"
[    18.062] (**) Option "AutoAddDevices" "off"
[    18.062] (**) Not automatically adding devices
[    18.062] (==) Automatically enabling devices
[    18.062] (==) Automatically adding GPU devices
[    18.062] (==) Automatically binding GPU devices
[    18.062] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    18.066] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    18.066]    Entry deleted from font path.
[    18.066] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    18.066]    Entry deleted from font path.
[    18.066] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    18.066]    Entry deleted from font path.
[    18.066] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    18.066]    Entry deleted from font path.
[    18.066] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    18.066]    Entry deleted from font path.
[    18.066] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[    18.066] (==) ModulePath set to "/usr/lib/xorg/modules"
[    18.067] (II) Loader magic: 0x560c25146020
[    18.067] (II) Module ABI versions:
[    18.067]    X.Org ANSI C Emulation: 0.4
[    18.067]    X.Org Video Driver: 23.0
[    18.067]    X.Org XInput driver : 24.1
[    18.067]    X.Org Server Extension : 10.0
[    18.073] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c1
[    18.074] (II) no primary bus or device found
[    18.074] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[    18.074] (II) LoadModule: "dbe"
[    18.074] (II) Module "dbe" already built-in
[    18.074] (II) LoadModule: "ddc"
[    18.074] (II) Module "ddc" already built-in
[    18.074] (II) LoadModule: "extmod"
[    18.074] (II) Module "extmod" already built-in
[    18.074] (II) LoadModule: "glx"
[    18.076] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    18.087] (II) Module glx: vendor="X.Org Foundation"
[    18.087]    compiled for 1.19.6, module version = 1.0.0
[    18.087]    ABI class: X.Org Server Extension, version 10.0
[    18.087] (II) LoadModule: "int10"
[    18.087] (II) Loading /usr/lib/xorg/modules/libint10.so
[    18.088] (II) Module int10: vendor="X.Org Foundation"
[    18.088]    compiled for 1.19.6, module version = 1.0.0
[    18.088]    ABI class: X.Org Video Driver, version 23.0
[    18.088] (II) LoadModule: "record"
[    18.088] (II) Module "record" already built-in
[    18.088] (II) LoadModule: "vbe"
[    18.089] (II) Loading /usr/lib/xorg/modules/libvbe.so
[    18.089] (II) Module vbe: vendor="X.Org Foundation"
[    18.089]    compiled for 1.19.6, module version = 1.1.0
[    18.089]    ABI class: X.Org Video Driver, version 23.0
[    18.089] (II) LoadModule: "xorgxrdp"
[    18.090] (II) Loading /usr/lib/xorg/modules/libxorgxrdp.so
[    18.091] (II) Module XORGXRDP: vendor="X.Org Foundation"
[    18.091]    compiled for 1.19.6, module version = 1.0.0
[    18.091]    ABI class: X.Org Video Driver, version 23.0
[    18.091] xorgxrdpSetup:
[    18.091] (II) LoadModule: "fb"
[    18.091] (II) Loading /usr/lib/xorg/modules/libfb.so
[    18.092] (II) Module fb: vendor="X.Org Foundation"
[    18.092]    compiled for 1.19.6, module version = 1.0.0
[    18.092]    ABI class: X.Org ANSI C Emulation, version 0.4
[    18.092] (II) LoadModule: "xrdpdev"
[    18.092] (II) Loading /usr/lib/xorg/modules/drivers/xrdpdev_drv.so
[    18.093] (II) Module XRDPDEV: vendor="X.Org Foundation"
[    18.093]    compiled for 1.19.6, module version = 1.0.0
[    18.093]    ABI class: X.Org Video Driver, version 23.0
[    18.093] xrdpdevSetup:
[    18.093] (II) LoadModule: "xrdpmouse"
[    18.093] (II) Loading /usr/lib/xorg/modules/input/xrdpmouse_drv.so
[    18.093] (II) Module XRDPMOUSE: vendor="X.Org Foundation"
[    18.093]    compiled for 1.19.6, module version = 1.0.0
[    18.093]    Module class: X.Org XInput Driver
[    18.093]    ABI class: X.Org XInput driver, version 24.1
[    18.093] rdpmousePlug:
[    18.093] (II) LoadModule: "xrdpkeyb"
[    18.094] (II) Loading /usr/lib/xorg/modules/input/xrdpkeyb_drv.so
[    18.094] (II) Module XRDPKEYB: vendor="X.Org Foundation"
[    18.094]    compiled for 1.19.6, module version = 1.0.0
[    18.094]    Module class: X.Org XInput Driver
[    18.094]    ABI class: X.Org XInput driver, version 24.1
[    18.094] rdpkeybPlug:
[    18.094] rdpIdentify:
[    18.094] (II) XRDPDEV: driver for xrdp: XRDPDEV
[    18.094] rdpDriverFunc: op 10
[    18.094] (WW) Falling back to old probe method for XRDPDEV
[    18.094] rdpProbe:
[    18.094] (II) Loading sub module "fb"
[    18.094] (II) LoadModule: "fb"
[    18.094] (II) Loading /usr/lib/xorg/modules/libfb.so
[    18.094] (II) Module fb: vendor="X.Org Foundation"
[    18.094]    compiled for 1.19.6, module version = 1.0.0
[    18.094]    ABI class: X.Org ANSI C Emulation, version 0.4
[    18.094] (II) XRDPDEV(0): using default device
[    18.094] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    18.094] rdpPreInit:
[    18.094] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32
[    18.094] (==) XRDPDEV(0): RGB weight 888
[    18.094] (==) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    18.094] (==) XRDPDEV(0): Default visual is TrueColor
[    18.094] (==) XRDPDEV(0): DPI set to (96, 96)
[    18.094] (II) XRDPDEV(0):   mode "640x480" ok
[    18.094] (II) XRDPDEV(0):   mode "800x600" ok
[    18.094] (--) XRDPDEV(0): Virtual size is 800x600 (pitch 800)
[    18.094] (**) XRDPDEV(0):  Default mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[    18.094] (II) XRDPDEV(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    18.094] (==) Depth 24 pixmap format is 32 bpp
[    18.095] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24
[    18.095] rdpScreenInit: pfbMemory bytes 1920000
[    18.095] rdpScreenInit: pfbMemory 0x7f5697253010
[    18.095] rdpSimdInit: assigning yuv functions
[    18.095] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x00050654 bx 0x00200800 cx 0xfeda3203 dx 0x1f8bfbff
[    18.095] rdpSimdInit: sse2 amd64 yuv functions assigned
[    18.095] rdpXvInit: depth 24
[    18.096] (==) XRDPDEV(0): Backing store enabled
[    18.097] rdpClientConInit: kill disconnected [0] timeout [0] sec
[    18.097]
[    18.097] rdpScreenInit: out
[    18.097] (==) RandR enabled
[    18.101] (II) SELinux: Disabled on system
[    18.102] (II) AIGLX: Screen 0 is not DRI2 capable
[    18.102] (EE) AIGLX: reverting to software rendering
[    18.223] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    18.224] (II) IGLX: Loaded and initialized swrast
[    18.224] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    18.302] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse'
[    18.302] (**) Option "CorePointer"
[    18.302] (**) xrdpMouse: always reports core events
[    18.302] rdpmousePreInit: drv 0x560c252dcfe0 info 0x560c25446130, flags 0x0
[    18.302] (II) XINPUT: Adding extended input device "xrdpMouse" (type: Mouse, id 6)
[    18.302] rdpmouseControl: what 0
[    18.302] rdpmouseDeviceInit:
[    18.302] rdpmouseCtrl:
[    18.302] rdpRegisterInputCallback: type 1 proc 0x7f569762cc60
[    18.302] (**) xrdpMouse: (accel) keeping acceleration scheme 1
[    18.302] (**) xrdpMouse: (accel) acceleration profile 0
[    18.302] (**) xrdpMouse: (accel) acceleration factor: 2.000
[    18.302] (**) xrdpMouse: (accel) acceleration threshold: 4
[    18.302] rdpmouseControl: what 1
[    18.302] rdpmouseDeviceOn:
[    18.302] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard'
[    18.302] (**) Option "CoreKeyboard"
[    18.302] (**) xrdpKeyboard: always reports core events
[    18.302] rdpkeybPreInit: drv 0x560c252dcf50 info 0x560c255b6b50, flags 0x0
[    18.302] (II) XINPUT: Adding extended input device "xrdpKeyboard" (type: Keyboard, id 7)
[    18.302] rdpkeybControl: what 0
[    18.302] rdpkeybDeviceInit:
[    18.314] rdpkeybChangeKeyboardControl:
[    18.314] rdpkeybChangeKeyboardControl: autoRepeat on
[    18.315] rdpRegisterInputCallback: type 0 proc 0x7f5697429530
[    18.315] rdpkeybControl: what 1
[    18.315] rdpkeybDeviceOn:
[    18.320] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/event1)
[    18.320] (II) AutoAddDevices is off - not adding device.
[    18.320] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/js0)
[    18.320] (II) AutoAddDevices is off - not adding device.
[    18.321] (II) config/udev: Adding input device Microsoft Vmbus HID-compliant Mouse (/dev/input/mouse0)
[    18.321] (II) AutoAddDevices is off - not adding device.
[    18.321] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[    18.321] (II) AutoAddDevices is off - not adding device.
[    18.324] rdpSaveScreen:
[    18.324] rdpDeferredRandR:
[    18.324] rdpResizeSession: width 1024 height 768
[    18.324]   calling RRScreenSizeSet
[    18.324] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271 mmHeight 203
[    18.325] rdpRRGetInfo:
[    18.325]   screen resized to 1024x768
[    18.326]   RRScreenSizeSet ok 1
[    18.326] rdpResizeSession: width 1920 height 1200
[    18.326]   calling RRScreenSizeSet
[    18.326] rdpRRScreenSetSize: width 1920 height 1200 mmWidth 508 mmHeight 318
[    18.326] rdpRRGetInfo:
[    18.326]   screen resized to 1920x1200
[    18.329]   RRScreenSizeSet ok 1
[    18.414] rdpInDeferredUpdateCallback:
[    18.414] rdpkeybChangeKeyboardControl:
[    18.414] rdpkeybChangeKeyboardControl: autoRepeat off
[    18.428] rdpClientConGotConnection:
[    18.428] rdpClientConGotConnection: g_sck_accept ok new_sck 7
[    18.428] rdpClientConGotConnection: adding only clientCon
[    18.431] rdpClientConProcessMsgVersion: version 0 0 0 1
[    18.432] rdpClientConProcessScreenSizeMsg: set width 1920 height 1200 bpp 32
[    18.432] rdpClientConProcessScreenSizeMsg: shmemid 32769 shmemptr 0x7f565266a000
[    18.432] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1920 cy 1200
[    18.440] rdpClientConProcessMsgClientInfo:
[    18.440]   got client info bytes 5744
[    18.440]   jpeg support 0
[    18.440]   offscreen support 1
[    18.440]   offscreen size 10485760
[    18.440]   offscreen entries 100
[    18.440] rdpClientConProcessMsgClientInfo: got RFX capture
[    18.440]   cap_width 1920 cap_height 1216
[    18.440] rdpClientConProcessMsgClientInfo: shmemid 65537 shmemptr 0x7f565264c000 bytes 9338880
[    18.440]   client can not do offscreen to offscreen blits
[    18.440]   client can do new(color) cursor
[    18.440]   client can not do multimon
[    18.440] rdpRRSetRdpOutputs: numCrtcs 0 monitorCount 0
[    18.440] rdpRRSetRdpOutputs: add output 0 left 0 top 0 width 1920 height 1200
[    18.440] rdpLoadLayout: keylayout 0xa0000409 variant  display 10
[    18.440] rdpkeybChangeKeyboardControl:
[    18.440] rdpkeybChangeKeyboardControl: autoRepeat on
[    18.441] rdpkeybChangeKeyboardControl:
[    18.441] rdpkeybChangeKeyboardControl: autoRepeat on
[    18.518] rdpClientConProcessMsgClientInput: invalidate x 0 y 0 cx 1919 cy 1199
[    18.541] rdpInDeferredUpdateCallback:
[    18.541] rdpkeybChangeKeyboardControl:
[    18.541] rdpkeybChangeKeyboardControl: autoRepeat off
[    18.541] rdpkeybChangeKeyboardControl:
[    18.541] rdpkeybChangeKeyboardControl: autoRepeat off
[    19.007] rdpmouseControl: what 2
[    19.007] rdpmouseDeviceOff:
[    19.007] rdpkeybControl: what 2
[    19.007] rdpkeybDeviceOff:
[    19.008] rdpkeybControl: what 3
[    19.008] rdpkeybUnInit: drv 0x560c252dcf50 info 0x560c255b6b50, flags 0x0
[    19.008] rdpUnregisterInputCallback: proc 0x7f5697429530
[    19.008] rdpmouseControl: what 3
[    19.008] rdpmouseUnInit: drv 0x560c252dcfe0 info 0x560c25446130, flags 0x0
[    19.008] rdpUnregisterInputCallback: proc 0x7f569762cc60
[    19.009] rdpCloseScreen:
[    19.009] xorgxrdpDownDown:
[    19.009] xorgxrdpDownDown: 1
[    19.009] rdpClientConDeinit:
[    19.009] rdpClientConDeinit: disconnecting only clientCon
[    19.009] rdpClientConDisconnect:
[    19.009] rdpClientConDisconnect: clientCon removed from dev list
[    19.009] rdpClientConDeinit: deleting file /var/run/xrdp/sockdir/xrdp_display_10
[    19.009] rdpClientConDeinit: deleting file /var/run/xrdp/sockdir/xrdp_disconnect_display_10
[    19.010] (II) Server terminated successfully (0). Closing log file.

@adilwali adilwali changed the title xrdp connectivity no longer works after apt upgrade xrdp connectivity no longer works after apt upgrade in Ubuntu 18.04.1 LTS Jan 8, 2019
@adilwali
Copy link
Author

As a brief update, I built xorg from scratch and the problem has persisted.

Xfce4 works in combination with VNC. It seems like it might be a Gnome problem; but nothing in logs jumped out at me in my cursory look.

I'm trying to keep this up-to-date in case it helps someone else!

@tristanl-slalom
Copy link

There's a lot of really great research here @adilwali. Were you ever able to get past it?

I'm hoping to be able to spin up VMs for research into various development, but can't get past the poor video performance on these Hyper-V servers. :(

@billti
Copy link
Member

billti commented Apr 9, 2019

I'm seeing the same problem. Just finished a very stock OS install by booting from the 18.04.2 ISO (which doesn't seem to be on Quick Create yet), and followed the instructions on the wiki for a manual setup.

If I disable "Enhanced Session" on the view menu in Hyper-V client then I can login and connect fine (but obviously not very enhanced an experience). With "Enhanced Session" enabled, after I enter my credentials at the dialog with XOrg selected, it just sits there with a blank blue screen for about 5 mins until I get the error outlined above.

I'll try and attach what looks like the relevant log files. Let me know if there is any other way I can help troubleshoot.

Xorg.1.log
xrdp.log
xrdp-sesman.log
xrdp-chansrv.10.log

@RainCat1998
Copy link

RainCat1998 commented Apr 9, 2019

@adilwali @trisco2001 @billti
The problem seems the same in this post.https://askubuntu.com/questions/1118936/ubuntu-18-04-xrdp-login-then-connection-problem-giving-up-matrox-issue
So I think it is the new HWE kernel which updated in 18.04.2 that causes the problem. The hv_kvp utils in the old script don't support HWE kernel.
In the up-to-date script, you should manaully enable HWE parameter in line 14 and reinstall the script.
HWE="-hwe-18.04"
Everything works fine now.

@billti
Copy link
Member

billti commented Apr 9, 2019

Thanks for taking a look.

That didn't work for me. I tried from the current state (i.e. having already run it as originally documented), uncommenting that line, rerunning ./install.sh, and rebooting with no difference.

I also had a checkpoint on the VM right before doing any xRDP stuff, so I restored to that, modified the script as noted, ran and rebooted - and again got the same behavior.

I also tried adding the packages outlined at http://c-nergy.be/blog/?p=13455 , i.e.

sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04
sudo apt-get update
sudo apt-get install xrdp xorg

..and then running the ./install.sh script and rebooting. Still no luck :-/

Admittedly I don't know much about how this stuff works, so I'm just throwing crap at the wall and hoping some of it sticks. Let me know if you want the logs again from any of the above attempts.

@billti
Copy link
Member

billti commented Apr 9, 2019

Digging through everything I could find again, I noticed the xorgxrdp package wasn't installed, (even though xrdp and xorg were as per the blog). Running sudo apt-get install xorgxrdp installed it from the martinx repository, and rebooting I am now able to connect with an Enhanced Session via xrdp.

So it seems not as simple as that one change to the script, but it is the issue outlined in the blog posts.

@RainCat1998
Copy link

RainCat1998 commented Apr 10, 2019

Digging through everything I could find again, I noticed the xorgxrdp package wasn't installed, (even though xrdp and xorg were as per the blog). Running sudo apt-get install xorgxrdp installed it from the martinx repository, and rebooting I am now able to connect with an Enhanced Session via xrdp.

So it seems not as simple as that one change to the script, but it is the issue outlined in the blog posts.

@billti
Your answer is correct. I checked this problem again and I found that my kernel wasn't HWE version because I just "upgrade" from 18.04.1 to 18.04.2. So I did a clean reinstall using ubuntu 18.04.2 image and followed these steps.

  1. uncomment HWE="-hwe-18.04" in the script.
  2. add Unofficial xrdp packages repository.
    sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04
    sudo apt-get update
    adduser xrdp ssl-cert
  3. run install.sh
  4. intall xrdpxorg package
    sudo apt install xorgxrdp

Maybe it's the best way to solve the problem. It will be better if someone can update the script.

@Kraziken
Copy link

Just did a clean install of 18.04.2 and not having luck with connection.

You mentioned uncomment HWE"= -hwe-18.04" in the script. Can you note location to edit? Sorry new to Ubuntu

@RainCat1998
Copy link

Just did a clean install of 18.04.2 and not having luck with connection.

You mentioned uncomment HWE"= -hwe-18.04" in the script. Can you note location to edit? Sorry new to Ubuntu

line 14 of the install.sh script.

@steven-qi
Copy link

steven-qi commented Apr 19, 2019

Wow, just got my xrdp & enhanced session back for ubuntu 19.10, which was broken by an upgrade from 18.10.

@albadokhon
Copy link

albadokhon commented Apr 24, 2019

Digging through everything I could find again, I noticed the xorgxrdp package wasn't installed, (even though xrdp and xorg were as per the blog). Running sudo apt-get install xorgxrdp installed it from the martinx repository, and rebooting I am now able to connect with an Enhanced Session via xrdp.

So it seems not as simple as that one change to the script, but it is the issue outlined in the blog posts.

This worked for me. I had to install the below dependencies as well:
sudo apt-get install xorg-video-abi-23 xserver-xorg-core

Once that's done i executed this:
sudo apt-get install xorgxrdp

I also changed the HWE parameter to HWE="-hwe-18.04" but not sure if it made any difference.

You may modify it in your next commit or at least for my Ubuntu edition (18.04.2).

@mswezey23
Copy link

@albadokhon

I ran into the same issue converting my already manually installed Ubuntu to an xrdp session.

I follow your steps and it worked!

@0x7878
Copy link

0x7878 commented May 23, 2019

@albadokhon

Tank you! It works like a charm!

PS: It's not necessary to edit the HWE parameter.

@maald
Copy link

maald commented Jul 25, 2019

just in case someone is looking for more info http://c-nergy.be/blog/?p=13390 "Issues with xRDP and Ubuntu 18.04.2 – How to fix it".

@flashflexpro
Copy link

Still not working on 12/22/2019, and with everything( docker minikube ... ) locked in hyper-v ...

@gotqn
Copy link

gotqn commented Jan 24, 2020

Not working with 18.04.03....

@hongwen000
Copy link

Same problem in Archlinux, no clue why xrdp drops connection as soon as it connects...

@tsluyter
Copy link

tsluyter commented Feb 3, 2020

Had the same issue with Kali Linux, another Debian derivative. In my case, switching to XFCE4 provided the fasted work-around. I didn't mind, because Gnome wasn't very important to me.

Followed these instructions on the Kali FAQ.

Also possibly related, a report of this issue to the xrdp team by someone else.

@valentinvsbg
Copy link

Digging through everything I could find again, I noticed the xorgxrdp package wasn't installed, (even though xrdp and xorg were as per the blog). Running sudo apt-get install xorgxrdp installed it from the martinx repository, and rebooting I am now able to connect with an Enhanced Session via xrdp.
So it seems not as simple as that one change to the script, but it is the issue outlined in the blog posts.

This worked for me. I had to install the below dependencies as well:
sudo apt-get install xorg-video-abi-23 xserver-xorg-core

Once that's done i executed this:
sudo apt-get install xorgxrdp

I also changed the HWE parameter to HWE="-hwe-18.04" but not sure if it made any difference.

You may modify it in your next commit or at least for my Ubuntu edition (18.04.2).

I've tried the steps from above without the one with HWE parameter. Everything is working just fine!!! Thank you @albadokhon

@popboy126
Copy link

sudo apt-get install xorgxrdp

Digging through everything I could find again, I noticed the xorgxrdp package wasn't installed, (even though xrdp and xorg were as per the blog). Running sudo apt-get install xorgxrdp installed it from the martinx repository, and rebooting I am now able to connect with an Enhanced Session via xrdp.
So it seems not as simple as that one change to the script, but it is the issue outlined in the blog posts.

This worked for me. I had to install the below dependencies as well:
sudo apt-get install xorg-video-abi-23 xserver-xorg-core

Once that's done i executed this:
sudo apt-get install xorgxrdp

I also changed the HWE parameter to HWE="-hwe-18.04" but not sure if it made any difference.

You may modify it in your next commit or at least for my Ubuntu edition (18.04.2).

this works fine for me. Uncommet HWE couldn't receive any good news.

@heurekus
Copy link

heurekus commented Jan 4, 2021

Installing xorgxrdp as suggested above also did the trick for me in Ubuntu 20.04. Thanks for the tip!

@cwilhit
Copy link
Contributor

cwilhit commented Jan 28, 2021

This repo is being archived, so closing this issue.

@cwilhit cwilhit closed this as completed Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests