Freerdp: "Failed to check FreeRDP file descriptor" with IP-based redirection

Created on 10 Jun 2015  路  30Comments  路  Source: FreeRDP/FreeRDP

Hey everyone,

I am currently building a thin client for my workplace which uses 50 TS (Windows 2008 R2) with IP-based redirection. OS is Ubuntu Mate 15.04 on a Raspberry Pi 2 and on a normal x86 PC.

Everytime I try to connect to our farm it's showing "Welcome!" and after 1-2 seconds it suddenly disconnects with the terminal showing

[21:36:18:978] [2073:2074] [INFO][com.freerdp.client.x11] - Network disconnect!
[21:36:18:978] [2073:2074] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor

This happens with version 1.1.0 from the official repos and with your nightly builds. I didn't use any specific commandline options. I also tried to use the *.rdp file which we use with our Windows clients, no change.

Is there anything I can do to help you track down the problem?

fixed-waiting-test

Most helpful comment

This issue is not closed. The software still doesn't work and this is still an issue for others.

All 30 comments

@der-eismann You can enable debugging logs by setting WLOG_LEVEL=trace. That should help track down the issue.

@akallabeth Doesn't really look promising to me. This is everything with com.freerdp.core.redirection:

[10:43:41:967] [1704:1705] [DEBUG][com.freerdp.core.redirection] - flags: 0x0400, redirFlags: 0x0B0D length: 198, sessionID: 0xC776E04C
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - redirectionFlags = {
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] -  LB_TARGET_NET_ADDRESS
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] -  LB_USERNAME
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] -  LB_DOMAIN
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] -  LB_TARGET_FQDN
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] -  LB_TARGET_NETBIOS_NAME
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] -  LB_TARGET_NET_ADDRESSES
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - }
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - Username: xxxxxxxx
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - Domain: xxx
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - TargetFQDN: WTSMV61.domain.de
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - TargetNetBiosName: WTSMV61
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - TargetNetAddressesCount: 1
[10:43:41:968] [1704:1705] [DEBUG][com.freerdp.core.redirection] - TargetNetAddresses[0]: 141.20.x.xx
[10:43:41:968] [1704:1705] [INFO][com.freerdp.client.x11] - Network disconnect!
[10:43:41:968] [1704:1705] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor

Anything else I can do for you?

What kind of authentication are you using?
Maybe it is an authentication issue. For that you'd need to compile FreeRDP from source with DEBUG_NEGO, DEBUG_NLA, DEBUG_NTLM, DEBUG_REDIR enabled for extended debug logging compiled in.

I tried cmake -DCMAKE_BUILD_TYPE=Debug -WITH_DEBUG_ALL=ON -DWITH_SSE2=ON -DWITH_CUPS=on -DWITH_WAYLAND=off -DWITH_PULSE=on -DCMAKE_INSTALL_PREFIX:PATH=/opt/remmina_devel/freerdp . but I get the same output as before. I'll come into the IRC channel later, maybe someone can help me.

But apart from that it looks like it is the same old issue as #1309... sad, that this still isn't fixed.

I would love to see a fix for this. Broker redirection hasn't been working for a while now.

@der-eismann Could you try with auto-reconnect?

Is there anything new on this issue? I just compiled the latest master build, but I still have to login twice: First when I connect and second when I am redirected.

auto-reconnect also doesn't help.

@der-eismann I am not sure about this particular use case, but I had a similar one: Using RDP through an SSH tunnel. For version 1.1.0-beta1 (the one that is in the Ubuntu Xenial repo), I consistently got kicked off after just a few seconds with the "Failed to check FreeRDP file descriptor" message (even before login when using /sec:rdp). When building my own from the 2.0.0-beta1+android11 tag, I haven't got it at all.

Any news on this? I'm connecting to a TS through RD Gateway (though both are on the same server). SSL on 443. I get disconnected after being inactive in the window for seemingly random periods of time. None of the above suggestions help. Here is the command I'm using to connect.
xfreerdp +toggle-fullscreen /gt:rpc /w:1280 /h:1024 /u:username /p:password /cert-ignore /g:server.company.com:443 /v:server.company.local

@slonkak Not sure if this is helping with these, but adding +heartbeat may prevent idle connections.

Any update on this?

Sorry guys, I quit the company and haven't worked on this project since. For me this issue can be closed.

This issue is not closed. The software still doesn't work and this is still an issue for others.

@slonkak What version are you on? 1.1-series or 2.0-rc?

2.0.0-rc1

I confirm this bug
freerdp 2.0.0~git201804121352 / Ubuntu 17.10
wifi
win10

Fix in #4548

I Also have this bug. (Network disconnect! [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor).
It depends on the environment i work in. For me it happens at a specific customer site. Other environments i do not suffer from the bug.
If i work within the RDP session no problems. However when i leave it idle for less than a minute the session stops and i receive the error as above.
I tried auto-reconnect but than it hangs when i leave it idle and i have to start the session again.
I tried +heartbeat also no success.
I tried recompile with TCP_TIMEOUT > 9000 I went up to 20000 . No difference.
Could this be caused by certain ports being blocked by firewall or so?

The recompile i used freerdp master zip from today. Is the suggested fix 4548 in there?

I just ran a git pull from the master, recompiled, and tested. Still died:
[10:12:34:924] [11262:11263] [ERROR][com.freerdp.core.rdp] - rdp_check_fds: tsg_check_event_handles() - -1
[10:12:34:924] [11262:11263] [ERROR][com.freerdp.core] - freerdp_check_fds() failed - 0
[10:12:34:924] [11262:11263] [INFO][com.freerdp.client.x11] - Network disconnect!
[10:12:34:924] [11262:11263] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor

@slonkak @janneman001 Wrong branch, you have to apply pull #4548

When will things be merged with the master? Other people having this problem are just going to click "download" from the main site and not get these updates...

@slonkak whenever the review process is done (aka other devs have time to test)

thnks @akallabeth i will apply pull and recompile. Next friday i will test it at the customer site.

I compiled with #4548 pulled in. Same as i did with master.This to do a quick test. When i try to connect i get segfault.

Ah, best don't activate sound/microphone, the fixes for that one are in another pull

I do not use sound/mic. Segfault happens at startup/connect.

The redirection issue is fixed with #4548. Any non related issues discussed here, please create a new one if they are still an issue.

Since this has been merged into the master, I pulled the master again and tested. Still broken.

xfreerdp +toggle-fullscreen /gt:rpc /w:1280 /h:1024 /u:myusername /p:mypassword /cert-ignore /g:server.external.com:443 /v:server.internal.local

[11:56:59:344] [20699:20700] [INFO][com.freerdp.client.common.cmdline] - loading channelEx cliprdr [11:57:01:344] [20699:20700] [INFO][com.freerdp.core.gateway.tsg] - TS Gateway Connection Success [11:57:02:559] [20699:20700] [INFO][com.freerdp.gdi] - Local framebuffer format PIXEL_FORMAT_BGRX32 [11:57:02:559] [20699:20700] [INFO][com.freerdp.gdi] - Remote framebuffer format PIXEL_FORMAT_RGB16 [11:57:02:571] [20699:20700] [INFO][com.winpr.clipboard] - initialized POSIX local file subsystem [12:14:10:465] [20699:20700] [ERROR][com.freerdp.core.rdp] - rdp_check_fds: tsg_check_event_handles() - -1 [12:14:10:465] [20699:20700] [ERROR][com.freerdp.core] - freerdp_check_fds() failed - 0 [12:14:10:465] [20699:20700] [INFO][com.freerdp.client.x11] - Network disconnect! [12:14:10:465] [20699:20700] [ERROR][com.freerdp.client.x11] - Failed to check FreeRDP file descriptor [12:14:10:465] [20699:20700] [ERROR][com.freerdp.core.gateway.tsg] - rpc_write failed!

See my investigation here:
https://github.com/FreeRDP/FreeRDP/issues/2802#issuecomment-385308710
In short, xfreerdp don't sent any data to server when minimized without group policy set to "check connection" on server-side.

Was this page helpful?
0 / 5 - 0 ratings