Bug 424606 - KDE Connect unable to detect other computers and transfer files in Ubuntu 20.04-based (and possibly later) distros
Summary: KDE Connect unable to detect other computers and transfer files in Ubuntu 20....
Status: RESOLVED UPSTREAM
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 1.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
: 427321 429413 429690 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-07-24 11:52 UTC by ascaris
Modified: 2023-02-01 14:53 UTC (History)
6 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 ascaris 2020-07-24 11:52:43 UTC
SUMMARY

I first noticed this when I upgraded my Kubuntu 18.04 installation to 20.04 (via 19.10, since this was months ago and I was not willing to wait for July as Ubuntu suggested). After the upgrade, I was unable to use KDE Connect to send files to or from the Kubuntu 20.04 PC (via the Dolphin "Send to [device] via KDE Connect" context menu option) from my Neon (User, 18.04 base) PCs. The file transfer progress meter would appear on the destination PC, but the transfer never took place. The progress meter would just stick around, showing 0% progress, until closed.

I tried the kdeconnect-cli utility too, with the same result.

Additionally, the pairings between PCs were no longer persistent. All I had to do to unpair them was to close the KDE Connect dialog or even refresh the view of KDE Connect devices on the LAN. I managed to get it to be somewhat more persistent by deleting the KDE Connect config data, but it would still discard the pairing on a reboot of the 20.04 rebased machine.

I tried booting one of my PCs using the Kubuntu 20.04 installer's live session, and while it did pair readily with my PC that had Kubuntu 20.04 installed, it had the same inability to originate or receive any files.

I chalked that up to Ubuntu having insufficiently tested the PC to PC function of KDE Connect in Kubuntu, given the heavy focus on communication with phones, and it wasn't a big bother because Kubuntu 20.04 was only there for testing anyway.

When I saw on the Neon forum that KDE had requested people try out the pre-release KDE Neon rebased to 20.04, I backed up the system and performed the upgrade. Everything went well, but I soon noticed the same behavior as before. The pairings would disappear in the same manner as before, and file transfers in either direction never happened.

I then tried the kde-connect-indicator program on the Mint (20) installation, pulling in all kinds of KDE dependencies, and once it was all installed, I saw the same behavior yet again. 

STEPS TO REPRODUCE
1. Install an Ubuntu 20.04-based distro with KDE Plasma as the DE
2. Pair it with another KDE Plasma PC over a LAN (using Samba in this case)
3. Try to use the context menu from Dolphin to send a file from one PC to another (either direction).

OBSERVED RESULT

The file transfer progress meter appears on the destination PC, but the file is never sent.


EXPECTED RESULT

The file is sent and the transfer progress meter disappears (or never appears in the first place for smaller files)

SOFTWARE/OS VERSIONS
Windows: na
macOS:  na
Linux/KDE Plasma: KDE Neon User Edition, 20.04 base or Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72
Qt Version: 5.14.2

ADDITIONAL INFORMATION

It was never an issue in 18.04-based distros, but for the purposes of troubleshooting, I removed the ufw package on both ends to make sure it was not interfering. It made no difference.

I've tried wireless to wireless, wireless to ethernet, ethernet to wireless, and ethernet to ethernet. They all behaved the same way.
Comment 1 ascaris 2020-07-24 12:13:13 UTC
Forgot to mention... clipboard sharing and ping work fine (though the PCs unpairing automatically obviously stops that).
Comment 2 ascaris 2020-10-14 11:27:44 UTC
Previously, this bug was even more vexing than it otherwise would be because of the lack of any useful error messages in any of the logs.

After the Neon update to Plasma 5.20, this changed. These are from the syslog on my laptop (named G3):

kdeconnect.core: Disconnecting due to fatal SSL Error:  "The issuer certificate of a locally looked up certificate could not be found"
Oct 14 01:34:00 G3 kdeconnectd[1794]: kdeconnect.core: Disconnecting due to fatal SSL Error:  "No certificates could be verified"
Oct 14 01:34:00 G3 kdeconnectd[1794]: kdeconnect.core: Got connection for the same deviceId but certificates don't match. Ignoring  "_12631ed7_e1ae_4485_8360_fe9814dae644_"

SSL error, you say?

With this new information, I went poking around and found that the distros that had working KDE Connect (such as Fedora 32) were using versions of OpenSSL other than 1.1.1f, the one in Neon (20.04).

I did a quick search and found that OpenSSL 1.1.1h and LibSSL 1.1.1h were available in .deb form from the Debian Sid repo. I downloaded and installed both, and after pairing once more, KDE Connect works! The pairing does not disappear when I press "refresh," and I was able to send files in both directions (from the Neon 20.04 G3 to my desktop running Fedora 32, Plasma spin).
Comment 3 Riccardo Robecchi 2020-11-01 13:24:30 UTC
*** Bug 427321 has been marked as a duplicate of this bug. ***
Comment 4 Riccardo Robecchi 2020-11-01 13:25:33 UTC
I found that this bug also describes the one I opened here: https://bugs.kde.org/show_bug.cgi?id=427321

I can confirm that updating to libssl 1.1.1h and openssl 1.1.1h fixes the issue for me as well.
Comment 5 Orlando Rodriguez 2020-12-11 23:45:32 UTC
Thank you so much guys!! I just updated openssl and libssl and it is working!!! You're the best!
Comment 6 Riccardo Robecchi 2022-01-12 11:44:43 UTC
*** Bug 429413 has been marked as a duplicate of this bug. ***
Comment 7 Riccardo Robecchi 2022-01-12 11:48:42 UTC
*** Bug 429690 has been marked as a duplicate of this bug. ***
Comment 8 leftcrane 2023-02-01 13:02:12 UTC
This hasn't been resolved lol. KDE connect still can't maintain a stable connection with a Samsung phone. To be fair even Samsungs own app can't do it. Also file browsing is now broken for whatever reason.
Comment 9 Riccardo Robecchi 2023-02-01 14:53:44 UTC
(In reply to leftcrane from comment #8)
> This hasn't been resolved lol. KDE connect still can't maintain a stable
> connection with a Samsung phone. To be fair even Samsungs own app can't do
> it. Also file browsing is now broken for whatever reason.

This report is specifically about connecting two PCs using KDE Connect. Your issues with your phone are not related to this bug report.