You are not logged in.

#1 2024-06-23 10:16:00

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

[SOLVED] kdeconnect fails after Plasma 6.1 update

After the recent update to Plasma 6.1 kdeconnect no longer works for me.  It was previously working without any issues.  If I try to connect to my phone to transfer files it gives a series of messages saying "Error when accessing filesystem, sshfs finished with exit code 1". The journal has lines:

Jun 23 11:00:53 lenovo1 kdeconnectd[1327]: 2024-06-23T11:00:53 default: new capabilities for  "Mike's XXXXX X
Jun 23 11:00:53 lenovo1 kdeconnectd[1327]: 2024-06-23T11:00:53 kf.modemmanagerqt: Failed enumerating MM objects: "org.freedesktop.DBus.Error.NameHasNoOwner" 
Jun 23 11:00:55 lenovo1 kdeconnectd[1327]: 2024-06-23T11:00:55 default: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Jun 23 11:01:09 lenovo1 kdeconnectd[1327]: 2024-06-23T11:01:09 qt.core.qobject.connect: QObject::connect: No such signal Solid::Backends::Fstab::FstabStorageAccess::repairRequested(QString)
Jun 23 11:01:09 lenovo1 kdeconnectd[1327]: 2024-06-23T11:01:09 qt.core.qobject.connect: QObject::connect: No such signal Solid::Backends::Fstab::FstabStorageAccess::repairDone(Solid::ErrorType, QVariant, QString)
Jun 23 11:01:09 lenovo1 kdeconnectd[1859]: /usr/bin/fusermount: entry for /run/user/1000/b5b0aaf01c913a70 not found in /etc/mtab

If any arch users of kdeconnect have come across this issue, do you know of a workaround, or will this need an upstream bug report?

Thanks.

Last edited by mcloaked (2024-08-15 08:07:10)


Mike C

Offline

#2 2024-06-23 14:14:01

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Additionally if I simply open the kdeconnect from the desktop the window opens and gives an 'Error - Discover' window with a message in the centre saying 'Could not open appstream:org.kde.kdeconnect.nonplasma because it was not found in any available software repositories. Please report this issue to the packagers of your distribution'

I wonder if this is a packaging error?

Edit: Possibly this upstream bug is connected: https://bugs.kde.org/show_bug.cgi?id=480235

Last edited by mcloaked (2024-06-23 14:28:38)


Mike C

Offline

#3 2024-06-23 17:15:10

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I will mark this as not a problem now - I just tried it on a second laptop and although it should be the same setup as the laptop where this failed, it works fine on the second machine. I am puzzled and don't know why it fails on the first machine. I will try to test a few changes and see if it can be made to work on the problem laptop.


Mike C

Offline

#4 2024-06-23 19:43:05

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

It looks like the issue is being seen on other distributions too: https://bugs.kde.org/show_bug.cgi?id=477673

so I will bring the title back to the original - as I am still seeing this in one laptop.

Last edited by mcloaked (2024-06-23 19:53:01)


Mike C

Offline

#5 2024-06-24 09:50:27

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

It looks like some settings were broken by an update, possibly on the Android phone with the monthly feature system update.  I ended up unpairing all laptops from the phone, clearing the cache and data, uninstalling kdeconnect on the phone, and installing back from the Play Store. Once re-installed, pairing the phone to the laptop from scratch and exposing the filesystem on the phone to kdeconnect has allowed normal kdeconnect functionality for file transfer again.  So this looks like a problem more likely with kdeconnect on the phone than settings within plasma, I will mark this as solved.


Mike C

Offline

#6 2024-06-27 09:05:27

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I spoke too soon - trying to connect another laptop from scratch now fails the same way as before.  The linked upstream report does have a comment by the developer that changes were made in the latest version that could have broken things and that now does seem the case for me.  With loss of ability to transfer files between the phone and Arch Linux using kdeconnect I am now looking at alternatives.  Warpinator does seem to do transfer of single files and directories without error for me, though it would be good if a specific set of files using wildcards could be transferred also but I haven't found a way to do that yet with warpinator.   It would be nice if simply mounting an sshfs filesystem on the phone was possible without any need for root access and then use rsync to pull or push sets of files but I haven't found a way to achieve that.


Mike C

Offline

#7 2024-06-27 10:18:55

tonyrai26
Member
From: Greece
Registered: 2024-01-23
Posts: 7

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Just install sshfs

sudo pacman -S sshfs

Offline

#8 2024-06-29 12:37:07

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I already had sshfs installed for a long time. But thanks for the suggestion.


Mike C

Offline

#9 2024-07-01 09:10:50

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

kdeconnect does make the connection to the phone and the android phone correctly receives a ping from the linked laptop, and the laptop correctly receives a ping initiated on the phone. However the sshfs filesystem connection seems to be broken.  If I start dolphin on the laptop and click the phone's 'places' line on the left then the filesystem icon appears on the right, but immediately starts to pop up error messages and the filesystem icon on the right of the dolphin window shows: "The file or folder /run/user/1000/d53b9b48_800f_4278_8829_f0aa09178b6f/storage/emulated/0 does not exist."

Equally if I go to a konsole window and type ls /run/user/1000/d53b9b48_800f_4278_8829_f0aa09178b6f/storage/emulated/0/ then it responds with:

$ ls /run/user/1000/d53b9b48_800f_4278_8829_f0aa09178b6f/storage/emulated/0/
ls: cannot access '/run/user/1000/d53b9b48_800f_4278_8829_f0aa09178b6f/storage/emulated/0/': No such file or directory

So although the android kdeconnect is linked to the laptop kdeconnect, the sshfs filesystem is not opened.  sshfs is installed, and checking:

$ pacman -Qs sshfs
local/sshfs 3.7.3-1

So if there were any changes made in the current version concerning exposing the android filesystem with sshfs, then this looks like where the problem occurs.  I have tested this with three different laptops and all exhibit the same issue.


Mike C

Offline

#10 2024-07-01 16:07:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,099

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Confirming that I've the same issue on a plain vanilla Pixel 8.   About as up to date an Android one can find.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#11 2024-07-01 17:58:54

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

My phone is an older Pixel but just had its latest version of Android in the monthly system update at the start of June so presumably the system on my phone has the same version of key packages - and the kdeconnect on the phone is up to date too (version 1.30.1)  - I notice that in the kdeconnect on the phone under About there is an option to report a bug but I don't know if this issue is a problem with the laptop kdeconnect, or that on the phone. The phone kdeconnect was updated on 10th June, and presume the android developer(s) are the same set of devs as on Linux.


Mike C

Offline

#12 2024-07-02 08:21:52

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

In the upstream report at  https://bugs.kde.org/show_bug.cgi?id=477673 it is suggested that in plasma the kdeconnect app is not passing the correct port to the android end.  Is it possible to check that directly I wonder, and if so should be an easy bug to fix in the upstream package?


Mike C

Offline

#13 2024-07-03 05:57:18

gothmog123
Member
Registered: 2012-10-31
Posts: 124

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

confirming

Offline

#14 2024-07-17 15:30:36

troncoso
Member
Registered: 2008-08-28
Posts: 52

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Same issue here. Waiting for a solution or workaround.

Offline

#15 2024-07-17 21:11:29

pyr0m4n14c12
Member
Registered: 2024-07-17
Posts: 3

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I haven't tried this as I don't like the idea of messing with /usr/bin/sshfs, but I found this workaround for anyone that wants to give it a go (make sure to scroll to the Arch solution):

https://www.reddit.com/r/kde/comments/1 … fs_errors/

Offline

#16 2024-07-18 09:33:16

gert99
Member
Registered: 2019-11-06
Posts: 3

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

pyr0m4n14c12 wrote:

I haven't tried this as I don't like the idea of messing with /usr/bin/sshfs, but I found this workaround for anyone that wants to give it a go (make sure to scroll to the Arch solution):

https://www.reddit.com/r/kde/comments/1 … fs_errors/

Thanks for the hint.

My workaround is to insert the following sshfs wrapper to /usr/local/bin/sshfs (don't forget to make it executable):

#!/usr/bin/env bash

SSHFS_BIN="/usr/bin/sshfs"

if [[ "$1" =~ ^kdeconnect ]]; then
    "$SSHFS_BIN" "$@" -o PubkeyAcceptedKeyTypes=+ssh-rsa
else
    "$SSHFS_BIN" "$@"
fi

This works fine for me

Offline

#17 2024-07-18 12:08:18

Vescrity
Member
Registered: 2023-11-23
Posts: 6

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Same issue here, and gert99's wrapper works fine. I add it to ~/bin and add it to PATH.

Offline

#18 2024-07-18 14:54:38

pyr0m4n14c12
Member
Registered: 2024-07-17
Posts: 3

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I tried Gert99's solution and I am still getting the same error.  I added a 'sleep 10' and 'touch ~/wrapper-ran' to the script to make sure it's running when I open Dolphin.  Dolphin indeed pauses for 10 seconds and creates the file 'wrapper-ran'.

System is up-to-date as of thirty minutes ago.  Is there some simple step I am overlooking?

ls -l /usr/local/bin | grep sshfs
-rwxr-xr-x 1 pyro pyro  241 Jul 18 10:37 sshfs

cat /usr/local/bin/sshfs

#!/usr/bin/env bash
sleep 10
touch ~/wrapper-ran
SSHFS_BIN="/usr/bin/sshfs"

if [[ "$1" =~ ^kdeconnect ]]; then
    "$SSHFS_BIN" "$@" -o PubkeyAcceptedKeyTypes=+ssh-rsa
else
    "$SSHFS_BIN" "$@"
    fi

echo $PATH
/home/pyro/Scripts:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

tail ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '

export PATH=/home/pyro/Scripts:$PATH

which sshfs

/usr/local/bin/sshfs

Last edited by pyr0m4n14c12 (2024-07-18 14:56:13)

Offline

#19 2024-07-18 16:25:06

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 117

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

#mcloaked.
Not much help here but I've just updated a pure Arch system with Cinnamon desktop, installed kdeconnect and opened it and my phone was located and connected after accepting pairing. Firewall and VPN running.
I also use kdeconnect on other systems using wayland plasma and no problems.
Can you ssh from the phone to PC.? I think it needs to be recognised by ssh certificate.

Last edited by NoSavvy (2024-07-18 16:25:33)

Offline

#20 2024-07-18 17:26:40

pyr0m4n14c12
Member
Registered: 2024-07-17
Posts: 3

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

@NoSavvy

Are you able to browse the phone's file system in Dolphin Nemo?  Other KdeConnect features are working except for file browsing.

Offline

#21 2024-07-18 18:44:51

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 117

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

@pyr0m4n14c12
OK!  I Cannot access the phone files for browsing at all now. Gives sshfs error. I could do this on my main PC until recently, but cannot now. Copying is OK.
It's not an everyday thing connecting the phone so it will be a matter of going through the pacman log to see what changed. Tried 3 OS systems.

Offline

#22 2024-07-18 18:57:23

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

gert99 wrote:
pyr0m4n14c12 wrote:

I haven't tried this as I don't like the idea of messing with /usr/bin/sshfs, but I found this workaround for anyone that wants to give it a go (make sure to scroll to the Arch solution):

https://www.reddit.com/r/kde/comments/1 … fs_errors/

Thanks for the hint.

My workaround is to insert the following sshfs wrapper to /usr/local/bin/sshfs (don't forget to make it executable):

#!/usr/bin/env bash

SSHFS_BIN="/usr/bin/sshfs"

if [[ "$1" =~ ^kdeconnect ]]; then
    "$SSHFS_BIN" "$@" -o PubkeyAcceptedKeyTypes=+ssh-rsa
else
    "$SSHFS_BIN" "$@"
fi

This works fine for me

I just tried this (ensuring the file was executable) but when I try to open the file list on the phone in dolphin it says it failed to start sshfs.  So this doesn't work for me.  What I don't know is which ssh key it actually uses.  My own ssh key is presumably not what it used for opening the phone's files?  My normal ssh key is ed25519 and I don't have any rsa keys.  I presume it has a key for kdeconnect that it generates somewhere? But at least this is a start to find the full solution.


Mike C

Offline

#23 2024-07-18 19:15:55

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,273

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

I also tried the replacement of the real file at /usr/bin/sshfs with the suggested wrapper after reading https://www.reddit.com/r/kde/comments/1 … fs_errors/ but it also didn't help and still couldn't start sshfs.  I wonder if the real issue is that kdeconnect is still trying to force using old rsa keys instead of using the newer better key types?  Can we even use the older less secure keys even if the wrapper tries to do that?


Mike C

Offline

#24 2024-07-19 07:49:40

stanczew
Member
Registered: 2021-03-02
Posts: 86

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

Try also adding HostKeyAlgorithms:

-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa

Offline

#25 2024-07-26 18:15:40

vinumoses
Member
Registered: 2021-05-01
Posts: 18

Re: [SOLVED] kdeconnect fails after Plasma 6.1 update

gert99 wrote:

My workaround is to insert the following sshfs wrapper to /usr/local/bin/sshfs (don't forget to make it executable):

#!/usr/bin/env bash

SSHFS_BIN="/usr/bin/sshfs"

if [[ "$1" =~ ^kdeconnect ]]; then
    "$SSHFS_BIN" "$@" -o PubkeyAcceptedKeyTypes=+ssh-rsa
else
    "$SSHFS_BIN" "$@"
fi

This works fine for me

This works for me as well. Thank you!
(Using a fully updated Arch system with KDE 6.1)

Offline

Board footer

Powered by FluxBB