Skip to content

Winapps installer Error 14, unable to connect to flatpak FreeRDP eventhough I can with the test command #840

@kurisu996

Description

@kurisu996

What happened?

So. When I try to install winapps, it throws the error 14 because its unable to connect to my Docker Windows. When I try to connect with this command: flatpak run --command=xfreerdp com.freerdp.FreeRDP /u:"myname" /p:"nope" /v:127.0.0.1 /cert:tofu it works just fine.

Your FreeRDP version and where you got it from

FreeRDP 3.19.0 (flatpak)

Your Linux distribution and version

Pop!_OS 22.04 LTS x86_64 Kernel: Linux 6.17.4-76061704-generic

Your winapps.conf

##################################
#   WINAPPS CONFIGURATION FILE   #
##################################

# INSTRUCTIONS
# - Leading and trailing whitespace are ignored.
# - Empty lines are ignored.
# - Lines starting with '#' are ignored.
# - All characters following a '#' are ignored.

# [WINDOWS USERNAME]
RDP_USER="myname"

# [WINDOWS PASSWORD]
# NOTES:
# - If using FreeRDP v3.9.0 or greater, you *have* to set a password
RDP_PASS="nope"

# [WINDOWS DOMAIN]
# DEFAULT VALUE: '' (BLANK)
RDP_DOMAIN=""

# [WINDOWS IPV4 ADDRESS]
# NOTES:
# - If using 'libvirt', 'RDP_IP' will be determined by WinApps at runtime if left unspecified.
# DEFAULT VALUE:
# - 'docker': '127.0.0.1'
# - 'podman': '127.0.0.1'
# - 'libvirt': '' (BLANK)
RDP_IP="127.0.0.1"

# [VM NAME]
# NOTES:
# - Only applicable when using 'libvirt'
# - The libvirt VM name must match so that WinApps can determine VM IP, start the VM, etc.
# DEFAULT VALUE: 'RDPWindows'
VM_NAME="RDPWindows"

# [WINAPPS BACKEND]
# DEFAULT VALUE: 'docker'
# VALID VALUES:
# - 'docker'
# - 'podman'
# - 'libvirt'
# - 'manual'
WAFLAVOR="docker"

# [DISPLAY SCALING FACTOR]
# NOTES:
# - If an unsupported value is specified, a warning will be displayed.
# - If an unsupported value is specified, WinApps will use the closest supported value.
# DEFAULT VALUE: '100'
# VALID VALUES:
# - '100'
# - '140'
# - '180'
RDP_SCALE="100"

# [MOUNTING REMOVABLE PATHS FOR FILES]
# NOTES:
# - By default, `udisks` (which you most likely have installed) uses /run/media for mounting removable devices.
#   This improves compatibility with most desktop environments (DEs).
# ATTENTION: The Filesystem Hierarchy Standard (FHS) recommends /media instead. Verify your system's configuration.
# - To manually mount devices, you may optionally use /mnt.
# REFERENCE: https://wiki.archlinux.org/title/Udisks#Mount_to_/media
REMOVABLE_MEDIA="/run/media"

# [ADDITIONAL FREERDP FLAGS & ARGUMENTS]
# NOTES:
# - You can try adding /network:lan to these flags in order to increase performance, however, some users have faced issues with this.
#   If this does not work or if it does not work without the flag, you can try adding /nsc and /gfx.
# DEFAULT VALUE: '/cert:tofu /sound /microphone +home-drive'
# VALID VALUES: See https://github.com/awakecoding/FreeRDP-Manuals/blob/master/User/FreeRDP-User-Manual.markdown
RDP_FLAGS="/cert:tofu /sound /microphone +home-drive"

# [DEBUG WINAPPS]
# NOTES:
# - Creates and appends to ~/.local/share/winapps/winapps.log when running WinApps.
# DEFAULT VALUE: 'true'
# VALID VALUES:
# - 'true'
# - 'false'
DEBUG="true"

# [AUTOMATICALLY PAUSE WINDOWS]
# NOTES:
# - This is currently INCOMPATIBLE with 'manual'.
# DEFAULT VALUE: 'off'
# VALID VALUES:
# - 'on'
# - 'off'
AUTOPAUSE="off"

# [AUTOMATICALLY PAUSE WINDOWS TIMEOUT]
# NOTES:
# - This setting determines the duration of inactivity to tolerate before Windows is automatically paused.
# - This setting is ignored if 'AUTOPAUSE' is set to 'off'.
# - The value must be specified in seconds (to the nearest 10 seconds e.g., '30', '40', '50', etc.).
# - For RemoteApp RDP sessions, there is a mandatory 20-second delay, so the minimum value that can be specified here is '20'.
# - Source: https://techcommunity.microsoft.com/t5/security-compliance-and-identity/terminal-services-remoteapp-8482-session-termination-logic/ba-p/246566
# DEFAULT VALUE: '300'
# VALID VALUES: >=20
AUTOPAUSE_TIME="300"

# [FREERDP COMMAND]
# NOTES:
# - WinApps will attempt to automatically detect the correct command to use for your system.
# DEFAULT VALUE: '' (BLANK)
# VALID VALUES: The command required to run FreeRDPv3 on your system (e.g., 'xfreerdp', 'xfreerdp3', etc.).
FREERDP_COMMAND="flatpak run --command=xfreerdp com.freerdp.FreeRDP"

# [TIMEOUTS]
# NOTES:
# - These settings control various timeout durations within the WinApps setup.
# - Increasing the timeouts is only necessary if the corresponding errors occur.
# - Ensure you have followed all the Troubleshooting Tips in the error message first.

# PORT CHECK
# - The maximum time (in seconds) to wait when checking if the RDP port on Windows is open.
# - Corresponding error: "NETWORK CONFIGURATION ERROR" (exit status 13).
# DEFAULT VALUE: '5'
PORT_TIMEOUT="5"

# RDP CONNECTION TEST
# - The maximum time (in seconds) to wait when testing the initial RDP connection to Windows.
# - Corresponding error: "REMOTE DESKTOP PROTOCOL FAILURE" (exit status 14).
# DEFAULT VALUE: '30'
RDP_TIMEOUT="30"

# APPLICATION SCAN
# - The maximum time (in seconds) to wait for the script that scans for installed applications on Windows to complete.
# - Corresponding error: "APPLICATION QUERY FAILURE" (exit status 15).
# DEFAULT VALUE: '60'
APP_SCAN_TIMEOUT="60"

# WINDOWS BOOT
# - The maximum time (in seconds) to wait for the Windows VM to boot if it is not running, before attempting to launch an application.
# DEFAULT VALUE: '120'
BOOT_TIMEOUT="120"

# FREERDP RAIL HIDEF
# - This option controls the value of the `hidef` option passed to the /app parameter of the FreeRDP command.
# - Setting this option to 'off' may resolve window misalignment issues related to maximized windows.
# DEFAULT VALUE: 'on'
HIDEF="on"

Logs

################################################################################
#                                                                              #
#                            WinApps Install Wizard                            #
#                                                                              #
################################################################################

Q) Install or uninstall WinApps? --> Install
Q) Configure WinApps for the current user 'myname' or the whole system? --> Current User
Q) Automatically install supported applications or choose manually? --> Manual (Default)

WinApps installation already present at /home/myname/.local/bin/winapps-src. Updating...
Bereits aktuell.
Installing WinApps.
Checking for existing conflicting WinApps installations... Done!
Attempting to load WinApps configuration file... Done!
Checking whether dependencies are installed... Done!
Checking container status... Done!
Checking for an open RDP Port on Windows... Done!
Attempting to establish a Remote Desktop connection with Windows... Failed!

ERROR: REMOTE DESKTOP PROTOCOL FAILURE.
FreeRDP failed to establish a connection with Windows.
--------------------------------------------------------------------------------
Please view the log at /home/myname/.local/share/winapps/FreeRDP_Test_20251210_1438_741081903.log.
Troubleshooting Tips:
  - Ensure the user is logged out of Windows prior to initiating the WinApps installation.
  - Ensure the credentials within the WinApps configuration file are correct.
  - Utilise a new certificate by removing relevant certificate(s) in /home/myname/.config/freerdp/server.
  - Try increasing the RDP_TIMEOUT in /home/myname/.config/winapps/winapps.conf.
  - If using 'libvirt', ensure the Windows VM is correctly named as specified within the README.
  - If using 'libvirt', ensure 'Remote Desktop' is enabled within the Windows VM.
  - If using 'libvirt', ensure you have merged 'RDPApps.reg' into the Windows VM's registry.
  - If using 'libvirt', try logging into and back out of the Windows VM within 'virt-manager' prior to initiating the WinApps installation.
--------------------------------------------------------------------------------
/dev/fd/63: Zeile 1659:  8742 Getötet                $FREERDP_COMMAND /cert:tofu /d:"$RDP_DOMAIN" /u:"$RDP_USER" /p:"$RDP_PASS" /scale:"$RDP_SCALE" +auto-reconnect +home-drive /app:program:"C:\Windows\System32\cmd.exe",cmd:"/C type NUL > $TEST_PATH_WIN && tsdiscon" /v:"$RDP_IP" &> "$FREERDP_LOG"
Exiting with status '14'.

[14:38:10:829] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]: Using /p is insecure
[14:38:10:829] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]: Passing credentials or secrets via command line might expose these in the process list
[14:38:10:829] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]: Consider using one of the following (more secure) alternatives:
[14:38:10:829] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]:   - /args-from: pipe in arguments from stdin, file or file descriptor
[14:38:10:829] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]:   - /from-stdin pass the credential via stdin
[14:38:10:829] [2:00000002] [WARN][com.freerdp.client.common.cmdline] - [warn_credential_args]:   - set environment variable FREERDP_ASKPASS to have a gui tool query for credentials
[14:38:10:831] [2:00000004] [WARN][com.freerdp.client.x11] - [load_map_from_xkbfile]:     : keycode: 0x08 -> no RDP scancode found
[14:38:10:831] [2:00000004] [WARN][com.freerdp.client.x11] - [load_map_from_xkbfile]:     : keycode: 0x5d -> no RDP scancode found
[14:38:10:831] [2:00000004] [WARN][com.freerdp.client.x11] - [load_map_from_xkbfile]: MDSW: keycode: 0xcb -> no RDP scancode found
[14:38:10:897] [2:00000004] [WARN][com.freerdp.crypto] - [verify_cb]: Certificate verification failure 'self-signed certificate (18)' at stack position 0
[14:38:10:897] [2:00000004] [WARN][com.freerdp.crypto] - [verify_cb]: CN = WIN-FFK84T2BKAA
[14:38:10:897] [2:00000004] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5_parse_name (Konfigurationsdatei gibt keinen Standard-Realm an [-1765328160])
[14:38:10:897] [2:00000004] [ERROR][com.winpr.sspi.Kerberos] - [kerberos_AcquireCredentialsHandleA]: krb5_parse_name (Konfigurationsdatei gibt keinen Standard-Realm an [-1765328160])
[14:38:11:086] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:091] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:091] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:38:11:112] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:112] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:38:11:127] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:127] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:38:11:143] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:143] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:38:11:155] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:155] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:38:11:169] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_get_window]: xf_Pointer: Invalid appWindow
[14:38:11:169] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_Pointer_Set]: handle=0
[14:38:11:488] [2:00000007] [ERROR][TODO] - [xf_rail_server_system_param]: TODO: implement
[14:38:11:488] [2:00000007] [ERROR][TODO] - [xf_rail_server_system_param]: TODO: implement
[14:38:11:504] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ARC_BEGAN && WINDOW_ORDER_FIELD_DESKTOP_HOOKED
[14:38:11:505] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:505] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:516] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:516] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:517] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:517] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:520] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:520] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:521] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:521] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:522] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:522] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:538] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:538] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:11:544] [2:00000007] [ERROR][TODO] - [xf_rail_server_language_bar_info]: TODO: implement
[14:38:11:544] [2:00000004] [ERROR][TODO] - [xf_rail_notify_icon_common]: TODO: implement
[14:38:11:544] [2:00000004] [ERROR][TODO] - [xf_rail_notify_icon_common]: TODO: implement
[14:38:11:623] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:11:623] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:12:128] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:12:128] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:12:208] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:12:209] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:12:223] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:12:223] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER
[14:38:12:238] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ACTIVE_WND
[14:38:12:238] [2:00000004] [WARN][com.freerdp.client.x11] - [xf_rail_monitored_desktop]: TODO: implement WINDOW_ORDER_FIELD_DESKTOP_ZORDER

Terms

  • I am running the latest version.
  • To the best of my knowledge, this is a bug and not a setup nor a FreeRDP problem.
  • I have checked for duplicate issues.
  • I agree to follow this project's Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions