Bug 386520

Summary: Cannot send file via KDE Connect
Product: [Applications] kdeconnect Reporter: Luca Weiss <bugzilla>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aleixpol
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luca Weiss 2017-11-04 12:46:51 UTC
Sharing eg a gpx trace from OsmAnd via KDE Connect results in a notification:

"Failed to send file to luca@g550jk"

Also the desktop component still displays "Receiving file over KDE Connect" so the desktop component doesn't even realize that sending failed.

Logcat output while that happens:

11-04 13:39:24.769 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Identity package received from a TCP connection from luca@g550jk
11-04 13:39:24.769 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Starting SSL handshake with luca@g550jk trusted:true
11-04 13:39:24.934 5045-29432/org.kde.kdeconnect_tp I/LanLink: Socket closed: 98051785. Reason: End of stream
11-04 13:39:24.936 5045-29855/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Handshake as client successful with luca@g550jk secured with TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
11-04 13:39:24.937 5045-29855/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Reusing same link for device _0c8be22e_3142_46bd_9158_c5d681674848_
11-04 13:39:29.265 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Identity package received from a TCP connection from luca@g550jk
11-04 13:39:29.265 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Starting SSL handshake with luca@g550jk trusted:true
11-04 13:39:29.366 5045-29860/org.kde.kdeconnect_tp I/LanLink: Socket closed: 224246387. Reason: End of stream
11-04 13:39:29.370 5045-29901/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Handshake as client successful with luca@g550jk secured with TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
11-04 13:39:29.370 5045-29901/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Reusing same link for device _0c8be22e_3142_46bd_9158_c5d681674848_
11-04 13:39:29.590 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Identity package received from a TCP connection from luca@g550jk
11-04 13:39:29.590 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Starting SSL handshake with luca@g550jk trusted:true
11-04 13:39:29.623 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Identity package received from a TCP connection from luca@g550jk
11-04 13:39:29.624 5045-8808/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Starting SSL handshake with luca@g550jk trusted:true
11-04 13:39:29.664 5045-29904/org.kde.kdeconnect_tp I/LanLink: Socket closed: 2882030. Reason: End of stream
11-04 13:39:29.665 5045-29916/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Handshake as client successful with luca@g550jk secured with TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
11-04 13:39:29.665 5045-29916/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Reusing same link for device _0c8be22e_3142_46bd_9158_c5d681674848_
11-04 13:39:29.720 5045-29917/org.kde.kdeconnect_tp I/LanLink: Socket closed: 187117648. Reason: End of stream
11-04 13:39:29.722 5045-29918/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Handshake as client successful with luca@g550jk secured with TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
11-04 13:39:29.722 5045-29918/org.kde.kdeconnect_tp I/KDE/LanLinkProvider: Reusing same link for device _0c8be22e_3142_46bd_9158_c5d681674848_
11-04 13:39:32.432 5045-29936/org.kde.kdeconnect_tp I/KDE/LanLink: Using port 1739
11-04 13:39:32.577 5045-13678/org.kde.kdeconnect_tp D/OpenGLRenderer: endAllActiveAnimators on 0xa9163280 (ListView) with handle 0x9906ea30
11-04 13:39:32.596 5045-29936/org.kde.kdeconnect_tp I/KDE/LanLink: Beginning to send payload
11-04 13:39:32.626 5045-29936/org.kde.kdeconnect_tp E/KDE/sendPackage: No device link (of 1 available) could send the package. Package kdeconnect.share.request to luca@g550jk lost!
11-04 13:39:32.626 5045-29936/org.kde.kdeconnect_tp E/SharePlugin: Error sending files


kdeconnectd terminal output is just

kdeconnect.plugin.share: File transfer
kdeconnect.core: FileTransferJob Downloading payload to QUrl("file:///home/luca/Downloads/2017-11-04_12-42_Sat.gpx") size: 350094


Android app version: 1.6.6 (not available in the "Version" field btw)
Android version: 7.1.2
Desktop-component version: 1.2
Comment 1 Aleix Pol 2018-01-16 21:46:11 UTC
Please try again, file sending has been reworked recently on both client ends.
Comment 2 Luca Weiss 2018-01-17 12:24:29 UTC
I've tried yesterday as before to share a gpx trace from osmand and the file appeared in my downloads folder so it seems to work now.