Skip to content
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

bug: cannot initiate an RDP session when using installer.sh #233

Closed
ajrossnz opened this issue Aug 29, 2024 · 17 comments
Closed

bug: cannot initiate an RDP session when using installer.sh #233

ajrossnz opened this issue Aug 29, 2024 · 17 comments
Labels
bug Something isn't working freerdp Issue related to freerdp

Comments

@ajrossnz
Copy link

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.
@oskardotglobal oskardotglobal added the freerdp Issue related to freerdp label Aug 29, 2024
@LDprg
Copy link
Member

LDprg commented Aug 29, 2024

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.

@ajrossnz
Copy link
Author

ajrossnz commented Sep 1, 2024

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.

@oskardotglobal
Copy link
Member

Can you check whether autologin is enabled for the VM?

@oskardotglobal
Copy link
Member

Oh wait, you're using libvirt, correct?

@ajrossnz
Copy link
Author

ajrossnz commented Sep 1, 2024

I have the same issue in both docker and libvirt. I only changed to libvirt after not getting any luck with docker.

@oskardotglobal oskardotglobal added the bug Something isn't working label Sep 1, 2024
@ajrossnz
Copy link
Author

ajrossnz commented Sep 2, 2024

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.

@wobblyhen920
Copy link

wobblyhen920 commented Sep 3, 2024

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.

@onlineapps-cloud
Copy link

i think that i have same issue, i posted maximum information that can help you to fix it, thanks.

@queler
Copy link
Contributor

queler commented Sep 12, 2024

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

@ajrossnz
Copy link
Author

My .local/share/winapps only contained the logs, nothing else. Removing those files still did not help.

@onlineapps-cloud
Copy link

onlineapps-cloud commented Sep 13, 2024

image

@wobblyhen920
Copy link

image

This solved the problem for me too.

@redelacruz
Copy link

redelacruz commented Sep 18, 2024

#233 (comment)

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!

@oskardotglobal
Copy link
Member

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.

@Z-masterNZ
Copy link

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.

@Cxderzz
Copy link

Cxderzz commented Oct 22, 2024

Compling freeRDP from source and switching back to X11 worked for me running popOS 22.04. Thank you.

@Gusfit1
Copy link

Gusfit1 commented Oct 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working freerdp Issue related to freerdp
Projects
None yet
Development

No branches or pull requests

10 participants