Bug 1130272

Summary: krdc can not connect to windows RDP hosts
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dirk Weber <d_werner>
Component: KDE ApplicationsAssignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bruno, d_werner, fezhang, wbauer
Version: CurrentFlags: bruno: needinfo? (d_werner)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: TW with krdc / freerdp with win10

Description Dirk Weber 2019-03-23 09:41:15 UTC
After the March update of freerdp to freerdp-2.0.0~rc4-lp150.2.3.1 in Leap 15.0 no RDP connections to windows RDP hosts is possible.

See bugs #1129319 and #1130168

As workaround I tried Tumbleweed (snapshot 20190314, but there were no relevant updates in the meantime as far as I can tell).

In Tumbleweed with xfreerdp from package freerdp-2.0.0~rc4-4.1 connections to windows hosts are working without specific options.

But krdc-18.12.3-1.1 can not connect.
After entering the password in the popup window and hitting enter the connection immediately terminates.
Comment 1 Christophe Marin 2019-03-23 10:49:03 UTC
Upstream bug report: https://bugs.kde.org/show_bug.cgi?id=394074
Comment 2 Bruno Friedmann 2019-04-01 19:53:02 UTC
Certainly duplicate of

*** This bug has been marked as a duplicate of bug 1129193 ***
Comment 3 Dirk Weber 2019-04-02 15:31:23 UTC
(In reply to Bruno Friedmann from comment #2)
> Certainly duplicate of
> 
> *** This bug has been marked as a duplicate of bug 1129193 ***

Sorry, I do not think this is a duplicate of bug 129193.

Bug 129193 is for Leap 15.0 and the problem described there seems like a build error (or some library inconsistencies on the affected system, maybe a missing run of ldconfig). 
BTW: the package  freerdp-2.0.0~rc4-lp150.2.3.1.x86_64 works for me in Leap 15.0 *after unsetting the http[s]_proxy variables* (more details in bug 1129319).


*This* bug 1130272 is about Tumbleweed.
In Tumbleweed xfreerdp works fine (i.e. can establish an RDP session).

But krdc does not work.
This is an up to date Tumbleweed installation with no external repos.
Comment 4 Bruno Friedmann 2019-04-02 16:01:07 UTC
Hi Dirk, if you are using Tumbleweed then you can't have the package version you give -lp150 mean leap package

The proper package actually available on Tumbleweed of today is versionned as

2.0.0~rc4-4.1

Perhaps you have to revisit what is installed on your system.

zypper se -si freerdp krdc and the extract of zypper lr -d could help to determine from where you installed those package.

Again a package with -lp150 mean a package builded for Leap 15.0
Comment 5 Dirk Weber 2019-04-02 16:48:58 UTC
Seems I completely failed to make myself clear, sorry.

I have 2 machines, for the sake of clarity let's call them "leap150" and "tumbleweed".

"leap150" is an ordinary Leap 15.0 installation with updates from the official update repositories.

"tumbleweed" is a Tumbleweed installation from the official tumbleweed repositories.

Usually I use "leap150" for my RDP connections, but after the update of "leap150" on March 15 from the official Leap 15.0 update repository to freerdp-2.0.0~rc4-lp150.2.3.1.x86_64 I could no longer establish an RDP connection from "leap150" to the RDP server (a Win10 machine). As I found out today the problem on Leap 15.0 is caused by freerdp suddenly trying to connect through a proxy when an https_proxy is set.
So far the story about Leap 15.0 and "leap150".


As a workaround I tried the connection from my other machine "tumbleweed" to the RDP server. You are right the freerdp version in "tumbleweed" was and is freerdp-2.0.0~rc4-4.1.x86_64. krdc was 18.12.2-1.1 when I first observed the problem and is now 18.12.3-1.1 - the problem still exists.

So *this* bug report is about krdc-18.12.3-1.1.x86_64 from Tumbleweed not able to establish an RDP connection when xfreerdp from freerdp-2.0.0~rc4-4.1.x86_64 from Tumbleweed can.
Comment 6 Bruno Friedmann 2019-04-03 06:00:55 UTC
Created attachment 802031 [details]
TW with krdc / freerdp with win10
Comment 7 Bruno Friedmann 2019-04-03 06:11:28 UTC
> So *this* bug report is about krdc-18.12.3-1.1.x86_64 from Tumbleweed not able to establish an RDP connection when xfreerdp from freerdp-2.0.0~rc4-4.1.x86_64 from Tumbleweed can.

Thank you for the information provided. But as you can see on attachement, TW with freerdp and krdc work well. 

Would you mind to provide the output of 

inxi -G

try to install freerdp-debuginfo kdrc-debuginfo, and run them in debug mode
Comment 8 Wolfgang Bauer 2019-04-03 06:46:10 UTC
(In reply to Bruno Friedmann from comment #7)
> Thank you for the information provided. But as you can see on attachement,
> TW with freerdp and krdc work well. 

Yeah. krdc's RDP code is completely unchanged between 17.12.3 (in Leap 15.0) and 18.12.3 (current Tumbleweed), so it should work the same (or not) with the same freerdp version.

> try to install freerdp-debuginfo kdrc-debuginfo, and run them in debug mode

Not sure what you exactly mean with "debug mode" here.

I would recommend to turn on debug output in krdc (no debuginfo packages needed for that).
I.e. run it like this:
QT_LOGGING_RULES='*=true;qt.*.debug=false' krdc

And then try to connect and provide the konsole output after reproducing the failure.

PS: One particular problem I know about that some users faced is related to the "shared folder" option. Apparently, freerdp errors out if the specified folder doesn't exist, so check krdc's connection settings and try to change/empty the corresponding text box if it's set to a non-existing directory.
See also https://lists.opensuse.org/opensuse-factory/2018-08/msg00199.html .
Comment 9 Dirk Weber 2019-04-03 15:23:35 UTC
(In reply to Wolfgang Bauer from comment #8)
> 
> PS: One particular problem I know about that some users faced is related to
> the "shared folder" option. Apparently, freerdp errors out if the specified
> folder doesn't exist, so check krdc's connection settings and try to
> change/empty the corresponding text box if it's set to a non-existing
> directory.
> See also https://lists.opensuse.org/opensuse-factory/2018-08/msg00199.html .
Thanks, exactly that was the problem. krdc "wanted" to share the directory /media which does not exist on the system.
After clearing the text box the RDP connection was successful.
Thanks a lot and sorry for the noise.