Bug 429690 - KDE Connect detects phones but won't detect other computers
Summary: KDE Connect detects phones but won't detect other computers
Status: RESOLVED DUPLICATE of bug 424606
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-26 14:28 UTC by Mauro
Modified: 2022-01-12 11:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro 2020-11-26 14:28:10 UTC
I have two desktop with Kubuntu and one smartphone, all are equipped with kdeconnect.

Until Kubuntu 20.04 all devices were paired and each one could see the other.

Since Kubuntu 20.10, desktops can see the smartphone, the smartphone can see both the desktops, but one desktop can't see the other desktop and vice-versa.

I tried to purge kdeconnect, same result.

One curious thing: if I try to search for new devices from one desktop, it seems to find the other one, as for an instant its name shows in the list, but it disappears immediately!
Comment 1 Mauro 2021-02-26 15:17:10 UTC
Proposed solution:
https://askubuntu.com/a/1319494/32230
Comment 2 Daniel Tang 2021-03-02 22:46:42 UTC
SUMMARY

I can't connect two Linux computers together. Both of the computers connect fine to my Android though.

STEPS TO REPRODUCE
1. Open the device list
2. Click refresh

OBSERVED RESULT

The other computer doesn't show up in the list.
Sometimes it appears for a split second then disappears.

When running `kdeconnectd` from the command line, I get the following errors logged:

```
kdeconnect.core: Disconnecting due to fatal SSL Error:  "The issuer certificate of a locally looked up certificate could not be found"
kdeconnect.core: Disconnecting due to fatal SSL Error:  "No certificates could be verified"
```

EXPECTED RESULT

Each computer should show up and appear properly on the other computer.

ANALYSIS

If I patch the code to also ignore `QSslError::UnableToGetLocalIssuerCertificate` and `QSslError::UnableToVerifyFirstCertificate`, the computers pair and connect properly. However, they stop working after `kdeconnectd` is stopped and restarted on any of them. When clicking refresh a bunch of times during the initial pairing, I see a lot of messages about the key being different for the same device.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 21.04
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.12.2
kdeconnect-kde: Git 44a7fc226fcd35bd082d78836ad2a3787ccde5b9
Comment 3 Mauro 2021-03-03 05:49:48 UTC
@Daniel Tang: can you try the above proposal?
Comment 4 Daniel Tang 2021-03-03 21:44:48 UTC
> Proposed solution:

That is more like a hack rather than a solution.

> can you try the above proposal?

I tried it and it works. openssl-1.1.1h was missing so I used openssl-1.1.1j.

However, I downgraded the packages right after confirming that they work. I don't want to break everything else on my machine. I also don't know the security implications of installing a cryptography package from an untrusted source like a PPA

> It will definitely solved in 21.04

I am on 21.04. We're already in Feature Freeze and this bug still isn't fixed
Comment 5 Daniel Tang 2021-03-11 03:07:24 UTC
On or before 2020-03-09, openssl-1.1.1j reached the main Ubuntu 21.04 repo. KDE Connect now works properly between my two Linux computers now.

@Mauro: Did the update also reach you?
Comment 6 Mauro 2021-03-11 11:03:28 UTC
 @Daniel no, because I'm NOT on 21.04 yet. As I wrote, I'm on 20.10 and the only package that is available for me via PPA is the one I proposed.
Comment 7 Riccardo Robecchi 2022-01-12 11:48:42 UTC
Marking this as a duplicate of 424606 as the symptoms and solution match.

*** This bug has been marked as a duplicate of bug 424606 ***