Bug 374399

Summary: Cannot send files between laptop and desktop
Product: [Applications] kdeconnect Reporter: Elvis Angelaccio <elvis.angelaccio>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: 1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Elvis Angelaccio 2016-12-31 15:22:48 UTC
Hi,
my laptop is paired with my phone and with my desktop. I can send files to my phone, but the laptop and the desktop cannot send files to each other (I'm using the "Send to" fileitemaction).

On the sender side, the error is:

    kdeconnect.core: error when writing data to upload 4096 7356

On the receiver side instead:

    kdeconnect.core: error... "The host name did not match any of the valid hosts for this certificate"  

The latter seems to be an error from Qt?

They can ping each other, by the way. The laptop does have a local firewall, but ports between 1714 and 1764 are open. Both are running kdeconnect 1.0.3.
Comment 1 Albert Vaca Cintora 2017-01-11 16:16:30 UTC
It's working for me. Can you try unpairing and re-pairing again so the certificate is synced again?
Comment 2 Elvis Angelaccio 2017-01-11 21:47:40 UTC
Tried to unpair, did not help. Where are these certificates stored? I can try to inspect them. I mean, the error "The host name did not match any of the valid hosts for this certificate" is pretty specific, might be a problem with my installation?
Comment 3 Albert Vaca Cintora 2017-01-12 15:05:11 UTC
The desktop certificate is on ~/.config/kdeconnect/certificate.pem. 

In Android it's stored in the app's database and it's not easy to extract.

Deleting (or renaming) the entire deirectory will make the app re-create a new certificate. To re-create the Android part you can just Clear Data for kdeconnect in Android settings.
Comment 4 Elvis Angelaccio 2017-01-12 23:33:31 UTC
Seems to work now, after purging ~/.config/kdeconnect on both machines...
Thanks for the help :)