Whoo Posted January 12, 2023 Posted January 12, 2023 I have enabled RDP option in armbian-config. It worked before but when I connect and enter my password, after pressing OK on the login screen the rdp tab just closes https://prnt.sc/WQKXky75i28c Can anyone help me? Logs: Jan 12 16:12:40 OrPi systemd[1]: Starting xrdp daemon... Jan 12 16:12:40 OrPi xrdp[4025]: [INFO ] address [0.0.0.0] port [3389] mode 1 Jan 12 16:12:40 OrPi xrdp[4025]: [INFO ] listening to port 3389 on 0.0.0.0 Jan 12 16:12:40 OrPi xrdp[4025]: [INFO ] xrdp_listen_pp done Jan 12 16:12:40 OrPi systemd[1]: xrdp.service: Can't open PID file /run/xrdp/xrdp.pid (yet?) after start: Operation not permitted Jan 12 16:12:41 OrPi systemd[1]: Started xrdp daemon. Jan 12 16:12:42 OrPi xrdp[4026]: [INFO ] starting xrdp with pid 4026 Jan 12 16:12:42 OrPi xrdp[4026]: [INFO ] address [0.0.0.0] port [3389] mode 1 Jan 12 16:12:42 OrPi xrdp[4026]: [INFO ] listening to port 3389 on 0.0.0.0 Jan 12 16:12:42 OrPi xrdp[4026]: [INFO ] xrdp_listen_pp done Jan 12 16:13:01 OrPi xrdp[4026]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.221 port 5054 Jan 12 16:13:01 OrPi xrdp[4031]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem Jan 12 16:13:01 OrPi xrdp[4031]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] libxrdp_force_read: header read error Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] Processing [ITU-T T.125] Connect-Initial failed Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] [MCS Connection Sequence] receive connection request failed Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] xrdp_iso_send: trans_write_copy_s failed Jan 12 16:13:01 OrPi xrdp[4031]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed Jan 12 16:13:01 OrPi xrdp[4026]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.221 port 5056 Jan 12 16:13:01 OrPi xrdp[4032]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem Jan 12 16:13:01 OrPi xrdp[4032]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem Jan 12 16:13:01 OrPi xrdp[4032]: [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] Connected client computer name: DESKTOP-H99GBI6 Jan 12 16:13:02 OrPi xrdp[4032]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored) Jan 12 16:13:02 OrPi xrdp[4032]: [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored) Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x0001041B] Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options [] Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] Non-TLS connection established from ::ffff:192.168.1.221 port 5056: encrypted with standard RDP security Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 10485760 MB cache entries 100 Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3 Jan 12 16:13:02 OrPi xrdp[4032]: [WARN ] xrdp_caps_process_codecs: unknown codec id 5 Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49 Jan 12 16:13:02 OrPi xrdp[4032]: [WARN ] Cannot find keymap file /etc/xrdp/km-0001041b.ini Jan 12 16:13:02 OrPi xrdp[4032]: [WARN ] Cannot find keymap file /etc/xrdp/km-0000041b.ini Jan 12 16:13:02 OrPi xrdp[4032]: [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini Jan 12 16:13:02 OrPi xrdp[4032]: [WARN ] local keymap file for 0x0001041b found and doesn't match built in keymap, using local keymap file Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] connecting to sesman ip 127.0.0.1 port 3350 Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] xrdp_wm_log_msg: sesman connect ok Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] sesman connect ok Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] sending login info to session manager, please wait... Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] xrdp_wm_log_msg: login successful for display 10 Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] login successful for display 10 Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4 Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] started connecting Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] lib_mod_connect: connecting via UNIX socket Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] lib_mod_log_peer: xrdp_pid=4032 connected to X11rdp_pid=4035 X11rdp_uid=1000 X11rdp_gid=1000 client_ip=::ffff:192.168.1.221 client_port=5056 Jan 12 16:13:24 OrPi xrdp[4032]: [INFO ] connected ok System diagnosis information will now be uploaded to https://paste.armbian.com/qezenefafe Please post the URL in the forum where you've been asked for. 0 Quote
atone Posted January 13, 2023 Posted January 13, 2023 21 hours ago, atone said: sudo apt install xorgxrdp Sorry, didn't notice that armbian-config offered to enable RDP and didn't know that it would install xorgxrdp too. 21 hours ago, Whoo said: after pressing OK on the login screen the rdp tab just closes Did you tried to log in with root? 'cause it works for me. So seems to be related to permissions. Added my user to the xrdp group with: usermod -aG xrdp [username] and now I can log in with my user (need to reboot to take effect). But following annoying message (that can be cancelled) appeared: After searching on Google, I followed these indications and now that's solved too. Hope it helps. 0 Quote
Whoo Posted January 13, 2023 Author Posted January 13, 2023 It worked before, I didnt change user groups 0 Quote
Whoo Posted January 13, 2023 Author Posted January 13, 2023 Tried doing it but still the same problem, connection closes after I enter password ecrypt captcha... Jan 13 16:33:46 OrPi xrdp[3980]: [INFO ] xrdp_mm_connect: connect failed trying again... Jan 13 16:33:46 OrPi xrdp[3980]: [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350 Jan 13 16:33:46 OrPi xrdp[3980]: [INFO ] Error connecting to sesman: 127.0.0.1 port: 3350 Jan 13 16:33:46 OrPi xrdp[3980]: [INFO ] connecting to sesman ip 127.0.0.1 port 3350 Jan 13 16:33:48 OrPi xrdp[3704]: [INFO ] xrdp_mm_connect: connect failed trying again... Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_wm_log_msg: Error connecting to sesman: 127.0.0.1 port: 3350 Jan 13 16:33:48 OrPi xrdp[3704]: [INFO ] Error connecting to sesman: 127.0.0.1 port: 3350 Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] libxrdp_set_pointer: xrdp_rdp_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] libxrdp_set_pointer: xrdp_rdp_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_iso_send: trans_write_copy_s failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_mcs_send: xrdp_iso_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_sec_send: xrdp_mcs_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_rdp_send_data: xrdp_sec_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] Sending [MS-RDPBCGR] TS_SHUTDOWN_DENIED_PDU failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] libxrdp_set_pointer: xrdp_rdp_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] libxrdp_set_pointer: xrdp_rdp_send_fastpath failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_sec_recv: xrdp_mcs_recv failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_rdp_recv: xrdp_sec_recv failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] libxrdp_process_data: xrdp_rdp_recv failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_process_data_in: xrdp_process_loop failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] xrdp_iso_send: trans_write_copy_s failed Jan 13 16:33:48 OrPi xrdp[3704]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed Jan 13 16:33:50 OrPi xrdp[3980]: [INFO ] xrdp_mm_connect: connect failed trying again... 0 Quote
Whoo Posted January 13, 2023 Author Posted January 13, 2023 root@OrPi: /home/pi$ systemctl status xrdp ● xrdp.service - xrdp daemon Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2023-01-13 16:34:56 CET; 28s ago Docs: man:xrdp(8) man:xrdp.ini(5) Process: 3999 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS) Process: 4007 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS) Main PID: 4008 (xrdp) Tasks: 1 (limit: 2208) Memory: 816.0K CPU: 343ms CGroup: /system.slice/xrdp.service └─4008 /usr/sbin/xrdp Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] xrdp_wm_log_msg: sesman connect ok Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] sesman connect ok Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] sending login info to session manager, please wait... Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] xrdp_wm_log_msg: login successful for display 10 Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] login successful for display 10 Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4 Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] started connecting Jan 13 16:35:19 OrPi xrdp[4015]: [INFO ] lib_mod_connect: connecting via UNIX socket Jan 13 16:35:20 OrPi xrdp[4015]: [INFO ] lib_mod_log_peer: xrdp_pid=4015 connected to X11rdp_pid=4029 X11rdp_uid=1000 X11rdp_gid=1000 cli> Jan 13 16:35:20 OrPi xrdp[4015]: [INFO ] connected ok lines 1-24/24 (END) 0 Quote
atone Posted January 13, 2023 Posted January 13, 2023 Did you rebooted after adding your user to the group xrdp? Restarting the service xrdp was not enough for me. 0 Quote
Whoo Posted January 13, 2023 Author Posted January 13, 2023 groups pi pi : pi tty disk dialout sudo audio video plugdev games users systemd-journal input netdev bluetooth xrdp 0 Quote
atone Posted January 13, 2023 Posted January 13, 2023 Sorry, don't know how to help further. Hope someone more knowledgeable will. 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.