bug: cannot initiate an RDP session when using installer.sh
ajrossnz opened this issue · 17 comments
OS: Pop!_OS current stable
FreeRDP 3 version is from Flatpak (com.freerdp.FreeRDP 3.7.0 stable user) as Freerdp3 (only v2) is available in Ubuntu/Pop apt base.
Problem: I have tried both Docker installation and libvirt and always get stuck at a remote desktop connection failure when running installer.sh. I have followed all of the readme to the letter, the message I get in the FreeRDP log is as follows, which indicates that the connection is established and then is gracefully terminated. I confirm that the system is in a logged out state and the virt-manager is minimised.
[22:39:37:660] [2:00000003] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0
[22:39:37:660] [2:00000003] [WARN][com.freerdp.crypto] - [verify_cb]: CN = RDPWindows
[22:39:37:660] [2:00000003] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5_parse_name (Configuration file does not specify default realm [-1765328160])
[22:39:37:660] [2:00000003] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5_parse_name (Configuration file does not specify default realm [-1765328160])
[22:39:37:666] [2:00000003] [WARN][com.freerdp.core.license] - [license_read_binary_blob_data]: license binary blob::type BB_ERROR_BLOB, length=0, skipping.
[22:39:38:318] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:39:38:340] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:39:38:340] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[22:39:38:544] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:39:38:544] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[22:39:38:613] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:39:38:613] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[22:39:39:421] [2:00000022] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::DisplayControl:11} OnOpen=(nil), OnClose=0x7f1fbc864f60
[22:39:39:705] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:39:39:731] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:39:39:731] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[22:39:59:088] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[22:40:00:352] [2:00000003] [ERROR][com.freerdp.core] - [rdp_set_error_info]: ERRINFO_LOGOFF_BY_USER [0x0001000C]
[22:40:00:354] [2:00000022] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::DisplayControl:11} OnOpen=(nil), OnClose=0x7f1fbc864f60
[22:39:37:712] [2:00000003] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Local framebuffer format PIXEL_FORMAT_BGRA32
[22:39:37:712] [2:00000003] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Remote framebuffer format PIXEL_FORMAT_BGRA32
[22:39:37:712] [2:0000001d] [INFO][com.freerdp.channels.rdpdr.client] - [devman_load_device_service]: Loading device service drive [home] (static)
[22:39:37:712] [2:00000003] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [static] Loaded fake backend for rdpsnd
[22:39:37:712] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel ainput
[22:39:37:713] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpgfx
[22:39:37:713] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel disp
[22:39:37:713] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpsnd
[22:39:37:030] [2:00000022] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd
[22:39:39:341] [2:00000022] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd
[22:39:39:423] [2:0000001d] [INFO][com.freerdp.channels.rdpdr.client] - [device_announce]: registered [ drive] device #1: home (type=8 id=1)
[22:40:00:352] [2:00000003] [INFO][com.freerdp.core] - [rdp_print_errinfo]: ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off their session on the server.
You are likely using wayland, which is unsupported. The invalid app windows is usually because of that. Switch to X11 instead and try again.
If this doesn't help you might want to check your freerdp certificates and delete old ones.
Pop!_OS doesn't support Wayland (yet), I'm using Xorg.
There are no certificate issues being generated AFAIK, see the log above. I think the main issue is related to the entry : "[22:31:09:651] [2:00000003] [INFO][com.freerdp.client.x11] - [xf_logon_error_info]: Logon Error Info LOGON_WARNING [LOGON_MSG_BUMP_OPTIONS]". The connection is being established, it just logs off after connecting.
Can you check whether autologin is enabled for the VM?
Oh wait, you're using libvirt, correct?
I have the same issue in both docker and libvirt. I only changed to libvirt after not getting any luck with docker.
Can you check whether autologin is enabled for the VM?
I confirm that AutoAdminLogon is set to 0 in the registry. NB this is a brand new install of Windows 11, I just set it up for this purpose and Merged the rdpapps.reg file as instructed.
Trying again, I am still getting the same error:
[17:18:52:446] [2:00000003] [INFO][com.freerdp.core] - [rdp_print_errinfo]: ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off their session on the server.
I´m having the same issue. Pop!_OS 22.04 / Docker. Please find log below (which is very much similar to OP´s).
EDIT: Seems like the issue was signaled to FreeRDP developers too in late June.
[20:32:20:256] [2:00000003] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0
[20:32:20:256] [2:00000003] [WARN][com.freerdp.crypto] - [verify_cb]: CN = DOCKERW-KCFAC4B
[20:32:20:257] [2:00000003] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5_parse_name (Configuration file does not specify default realm [-1765328160])
[20:32:20:257] [2:00000003] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5_parse_name (Configuration file does not specify default realm [-1765328160])
[20:32:20:262] [2:00000003] [WARN][com.freerdp.core.license] - [license_read_binary_blob_data]: license binary blob::type BB_ERROR_BLOB, length=0, skipping.
[20:32:20:425] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:431] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:431] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[20:32:20:433] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:433] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[20:32:20:437] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:437] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[20:32:20:448] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:448] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[20:32:20:515] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:515] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[20:32:20:518] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:20:518] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[20:32:21:142] [2:0000003a] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::DisplayControl:11} OnOpen=(nil), OnClose=0x774f535d2a80
[20:32:21:213] [2:00000003] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[20:32:41:630] [2:00000003] [ERROR][com.freerdp.core] - [rdp_set_error_info]: ERRINFO_LOGOFF_BY_USER [0x0001000C]
[20:32:41:638] [2:0000003a] [WARN][com.freerdp.channels.drdynvc.client] - [check_open_close_receive]: {Microsoft::Windows::RDS::DisplayControl:11} OnOpen=(nil), OnClose=0x774f535d2a80
[20:32:20:286] [2:00000003] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Local framebuffer format PIXEL_FORMAT_BGRA32
[20:32:20:286] [2:00000003] [INFO][com.freerdp.gdi] - [gdi_init_ex]: Remote framebuffer format PIXEL_FORMAT_BGRA32
[20:32:20:291] [2:00000035] [INFO][com.freerdp.channels.rdpdr.client] - [devman_load_device_service]: Loading device service drive [home] (static)
[20:32:20:291] [2:00000003] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [static] Loaded fake backend for rdpsnd
[20:32:20:291] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel ainput
[20:32:20:291] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpgfx
[20:32:20:291] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel disp
[20:32:20:291] [2:00000003] [INFO][com.freerdp.channels.drdynvc.client] - [dvcman_load_addin]: Loading Dynamic Virtual Channel rdpsnd
[20:32:20:388] [2:0000003a] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd
[20:32:21:095] [2:0000003a] [INFO][com.freerdp.channels.rdpsnd.client] - [rdpsnd_load_device_plugin]: [dynamic] Loaded fake backend for rdpsnd
[20:32:21:134] [2:00000035] [INFO][com.freerdp.channels.rdpdr.client] - [device_announce]: registered [ drive] device #1: home (type=8 id=1)
[20:32:41:630] [2:00000003] [INFO][com.freerdp.core] - [rdp_print_errinfo]: ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off their session on the server.
i think that i have same issue, i posted maximum information that can help you to fix it, thanks.
So my understanding is that ...
ERRINFO_LOGOFF_BY_USER (0x0000000C):The disconnection was initiated by the user logging off their session on the server
...occurs no matter what. In fact is a successful connection, terminating after the command is run. Likely there was an error with the powershell script that is running after connection. I had a hard time tracking down the problem too. Eventually manually deleting everything in .local/share/winapps
got it running again
My .local/share/winapps only contained the logs, nothing else. Removing those files still did not help.
This helped tremendously. I'm using Pop OS!, so no 24.04 right now. Built FreeRDP3 from source and I got it to work. Using Wayland, BTW, since I have had issues with X11 and fullscreen apps.
@onlineapps-cloud You are a ray of sunshine for posting that screenshot. Thanks!
I've gone ahead and added the hint of compiling FreeRDP from source to the README. Closing this as resolved since this seems to be a common issue with Flatpak.
It may be interesting to note, that I have been playing around setting this up - haven't tried to do the compiling option suggested yet, but I'm running Debian Bookworm and noticed a FreeRDP3.5.1 in bookworm-backports, I get the same result with the backports version so may not be limited to just flatpak.
Compling freeRDP from source and switching back to X11 worked for me running popOS 22.04. Thank you.
Man am I ever lost. Can someone explain how I can compile and install FreeRDP? I see the codeblock for it on the wiki but I'm unsure what to fill in for toolchain.cmake and install path. And when I hit enter it fails with:
"CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool."
I managed to troubleshoot my way through the rest of it, just stuck on this now.