STEPS TO REPRODUCE 1. Install 2. Pair 3. Configure 'filesystem expose' to expose internal storage ('primary:') or any subfolder, or downloads 4. Try browsing the filesystem OBSERVED RESULT "The file or folder /run/user/1000/c4ab0db3dd8b84e3/primary does not exist" EXPECTED RESULT Can work with files I haven't use this feature for a while (it used to work just fine). I would guess it broke with the new 'filesystem expose' config. I don't recall needing that before. Accessing /run/user/1000/c4ab0db3dd8b84e3/storage/emulated/0/ just worked™ SOFTWARE/OS VERSIONS Linux/KDE Plasma: linux-5.0.7 manjaro KDE Plasma Version: 5.15.4 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.2 ADDITIONAL INFORMATION App: 1.12.6 Android: 9 (2019.4 Patch) Phone: OnePlus A5010
What version or kdeconnect are you running on manjaro? Any kdeconnect errors in logcat? When you run kdeconnectd in a terminal any errors?
I am running kdeconnect 1.3.4 I tried to look at logcat earlier but there is so much spam and nothing stands out. Running kdeconnect interactively produces the following log on feature trigger. It seems there is a problem with sftp connection. (I took the liberty of some anonymization in the following log) kdeconnect.plugin.sftp: Mount device: "OnePlus" mi.plugin.sftp: Created mounter kdeconnect.plugin.sftp: Starting loop to wait for mount kdeconnect.plugin.sftp: Unmount QObject(0x0) kdeconnect.core: Converting IPv6 QHostAddress("::ffff:10.0.0.1") to IPv4 QHostAddress("10.0.0.1") kdeconnect.plugin.sftp: Starting process: "sshfs kdeconnect@10.0.0.1:/ /run/user/1000/c4ab0db3dd8b84e3 -p 1740 -s -f -F /dev/null -o IdentityFile=/home/user/.config/kdeconnect/privateKey.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o HostKeyAlgorithms=+ssh-dss -o uid=1000 -o gid=1000 -o reconnect -o ServerAliveInterval=30 -o password_stdin" QDBusAbstractAdaptor: Cannot relay signal SftpPlugin::packetReceived(NetworkPacket): Unregistered input type in parameter list: NetworkPacket kdeconnect.plugin.sftp: Process started kdeconnect.plugin.sftp: "OnePlus" "Remote filesystem mounted at /run/user/1000/c4ab0db3dd8b84e3" kdeconnect.plugin.sftp: stdout: "Warning: Permanently added '[10.0.0.1]:1740' (RSA) to the list of known hosts.\r\n" kdeconnect.plugin.sftp: stdout: "Received disconnect from 10.0.0.1 port 1740:2: Too many authentication failures\r\nDisconnected from 10.0.0.1 port 1740\r\n" kdeconnect.plugin.sftp: stdout: "read: Connection reset by peer\n" kdeconnect.plugin.sftp: Process finished (exit code: 1 ) kdeconnect.plugin.sftp: "OnePlus" Remote filesystem unmounted kdeconnect.plugin.sftp: Unmount KProcess(0x55f9ceeabe00) /usr/bin/fusermount: entry for /run/user/1000/c4ab0db3dd8b84e3 not found in /etc/mtab kdeconnect.plugin.sftp: Destroy mounter kdeconnect.plugin.sftp: Unmount QObject(0x0) kdeconnect.plugin.sftp: Mount device: "OnePlus" kdeconnect.plugin.sftp: Created mounter kdeconnect.plugin.sftp: Starting loop to wait for mount kdeconnect.plugin.sftp: Unmount QObject(0x0) kdeconnect.core: Converting IPv6 QHostAddress("::ffff:10.0.0.1") to IPv4 QHostAddress("10.0.0.1") kdeconnect.plugin.sftp: Starting process: "sshfs kdeconnect@10.0.0.1:/ /run/user/1000/c4ab0db3dd8b84e3 -p 1740 -s -f -F /dev/null -o IdentityFile=/home/user/.config/kdeconnect/privateKey.pem -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o HostKeyAlgorithms=+ssh-dss -o uid=1000 -o gid=1000 -o reconnect -o ServerAliveInterval=30 -o password_stdin" QDBusAbstractAdaptor: Cannot relay signal SftpPlugin::packetReceived(NetworkPacket): Unregistered input type in parameter list: NetworkPacket kdeconnect.plugin.sftp: Process started kdeconnect.plugin.sftp: "OnePlus" "Remote filesystem mounted at /run/user/1000/c4ab0db3dd8b84e3" kdeconnect.plugin.sftp: stdout: "Warning: Permanently added '[10.0.0.1]:1740' (RSA) to the list of known hosts.\r\n" kdeconnect.plugin.sftp: stdout: "Received disconnect from 10.0.0.1 port 1740:2: Too many authentication failures\r\nDisconnected from 10.0.0.1 port 1740\r\n" kdeconnect.plugin.sftp: stdout: "read: Connection reset by peer\n" kdeconnect.plugin.sftp: Process finished (exit code: 1 ) kdeconnect.plugin.sftp: "OnePlus" Remote filesystem unmounted kdeconnect.plugin.sftp: Unmount KProcess(0x55f9cee1c8d0) /usr/bin/fusermount: entry for /run/user/1000/c4ab0db3dd8b84e3 not found in /etc/mtab kdeconnect.plugin.sftp: Destroy mounter kdeconnect.plugin.sftp: Unmount QObject(0x0)
Sorry, it seems there is something relevant in logcat after all: 04-27 21:48:04.335 31828 1273 W System.err: java.net.BindException: Address already in use 04-27 21:48:04.335 31828 1273 W System.err: at sun.nio.ch.Net.bind0(Native Method) 04-27 21:48:04.335 31828 1273 W System.err: at sun.nio.ch.Net.bind(Net.java:442) 04-27 21:48:04.335 31828 1273 W System.err: at sun.nio.ch.Net.bind(Net.java:434) 04-27 21:48:04.335 31828 1273 W System.err: at sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:162) 04-27 21:48:04.335 31828 1273 W System.err: at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:66) 04-27 21:48:04.335 31828 1273 W System.err: at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:74) 04-27 21:48:04.335 31828 1273 W System.err: at org.apache.sshd.SshServer.start(SshServer.java:294) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Plugins.SftpPlugin.SimpleSftpServer.start(SimpleSftpServer.java:116) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Plugins.SftpPlugin.SftpPlugin.onPacketReceived(SftpPlugin.java:142) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Device.onPacketReceived(Device.java:579) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Backends.BaseLink.packageReceived(BaseLink.java:83) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:284) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0(LanLink.java:109) 04-27 21:48:04.336 31828 1273 W System.err: at org.kde.kdeconnect.Backends.LanBackend.-$$Lambda$LanLink$uqQPJMTjsjef1_uBcU9l6wtM3E4.run(Unknown Source:4) 04-27 21:48:04.336 31828 1273 W System.err: at java.lang.Thread.run(Thread.java:764) 04-27 21:48:04.337 31828 1273 W System.err: java.net.BindException: Address already in use 04-27 21:48:04.337 31828 1273 W System.err: at sun.nio.ch.Net.bind0(Native Method) 04-27 21:48:04.337 31828 1273 W System.err: at sun.nio.ch.Net.bind(Net.java:442) 04-27 21:48:04.337 31828 1273 W System.err: at sun.nio.ch.Net.bind(Net.java:434) 04-27 21:48:04.337 31828 1273 W System.err: at sun.nio.ch.AsynchronousServerSocketChannelImpl.bind(AsynchronousServerSocketChannelImpl.java:162) 04-27 21:48:04.337 31828 1273 W System.err: at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:66) 04-27 21:48:04.337 31828 1273 W System.err: at org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:74) 04-27 21:48:04.337 31828 1273 W System.err: at org.apache.sshd.SshServer.start(SshServer.java:294) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Plugins.SftpPlugin.SimpleSftpServer.start(SimpleSftpServer.java:116) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Plugins.SftpPlugin.SftpPlugin.onPacketReceived(SftpPlugin.java:142) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Device.onPacketReceived(Device.java:579) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Backends.BaseLink.packageReceived(BaseLink.java:83) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:284) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0(LanLink.java:109) 04-27 21:48:04.337 31828 1273 W System.err: at org.kde.kdeconnect.Backends.LanBackend.-$$Lambda$LanLink$uqQPJMTjsjef1_uBcU9l6wtM3E4.run(Unknown Source:4) 04-27 21:48:04.337 31828 1273 W System.err: at java.lang.Thread.run(Thread.java:764) 04-27 21:48:04.555 31828 31836 W System : A resource failed to call close.
Logcat can't be reproduced after phone reboot.
So I've been running the same sshfs command with "-o ssh_command='ssh -vvvv'" to debug this... It seems I simply have too many SSH keys in my .ssh folder that are being offered which leads to 'Too many authentication failures'? My reason comes from the fact that it all works after I renamed my .ssh folder. And neither config nor authorized_hosts has any effect as expected. LOL, that's a first.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
Cleaning out my obsolete SSH keys removed the problem.
Problem can be resolved by configuring the key to use in ssh's config file