Bug 400764

Summary: Devices see each other, but kdeconnect-cli reports 0 devices found
Product: [Applications] kdeconnect Reporter: Denis Kasak <dkasak>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Denis Kasak 2018-11-06 21:54:37 UTC
SUMMARY

I've installed kdeconnect to my laptop and phone. I can see the laptop from the
phone application's interface. However, running `kdeconnect-cli -l` reports
finding 0 devices:

    ➜ kdeconnect-cli -l
    0 devices found

What's curious is that initiating pairing from my phone produces a notification
on my laptop notifying me of the pairing attempt. Furthermore, running
`kdeconnectd` manually and observing its output makes it obvious that it does
in fact see my phone (since the output contains the name of the phone, set from
the Android application):

    ➜ /usr/lib/kdeconnectd -platform offscreen
    kdeconnectd: no process found
    kdeconnect.core: KdeConnect daemon starting
    kdeconnect.core: My id: "_53b528e0_3276_4632_a78a_94ba80c96a93_"
    kdeconnect.core: onStart
    kdeconnect.core: KdeConnect daemon started
    kdeconnect.core: Broadcasting identity packet
    kdeconnect.core: Starting client ssl (but I'm the server TCP socket)
    kdeconnect.core: Socket succesfully stablished an SSL connection
    kdeconnect.core: It is a new device "dkasak_phone"
    kdeconnect.core: TCP connection done (i'm the existing device)
    kdeconnect.core: Starting server ssl (I'm the client TCP socket)
    kdeconnect.core: Socket succesfully stablished an SSL connection
    kdeconnect.core: It is a known device "dkasak_phone"
    kdeconnect.core: creating pairing handler for "06d0d47d0a314023"
    kdeconnect.core: Pair request
    kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
    kdeconnect.core: Broadcasting identity packet
    kdeconnect.core: Starting client ssl (but I'm the server TCP socket)
    kdeconnect.core: Socket succesfully stablished an SSL connection
    kdeconnect.core: It is a known device "dkasak_phone"
    Device pairing error "Timed out"
    kdeconnect.core: TCP connection done (i'm the existing device)
    kdeconnect.core: Starting server ssl (I'm the client TCP socket)
    kdeconnect.core: Socket succesfully stablished an SSL connection
    kdeconnect.core: It is a known device "dkasak_phone"
    kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
    kdeconnect.core: Broadcasting identity packet

I've also tried initiating the pairing from the laptop, but it says it cannot
find the device:

    ➜ kdeconnect-cli -n dkasak_phone --pair
    Couldn't find device: dkasak_phone

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: Not sure
Qt Version: 5.11.2

ADDITIONAL INFORMATION

kdeconnect-cli 1.3.2
Comment 1 Denis Kasak 2018-11-06 21:57:14 UTC
I forgot to mention: the Android app was installed from F-Droid, version 1.10.
Comment 2 Denis Kasak 2019-03-22 13:36:02 UTC
I'm still seeing this with kdeconnect-cli 1.3.3. When was this fixed?