Bug 431434

Summary: Dolphin file explorer tries to start kdeconnectd, error-messages when opening the Services options and other messages
Product: [Applications] dolphin Reporter: myndstream
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description myndstream 2021-01-11 12:53:17 UTC
SUMMARY
When I run `dolphin .` in various directories, I get these error-messages in the console (I don't know what caused them or what decides whether any message or which message is displayed):

> kf5.kio.core: Invalid URL: QUrl("")

another time:

> org.kde.kcoreaddons: Error loading plugin "akregatorplugin" "The shared library was not found." 
> Plugin search paths are ("/usr/lib/x86_64-linux-gnu/qt5/plugins", "/usr/bin") 
> The environment variable QT_PLUGIN_PATH might be not correctly set
> error activating kdeconnectd: QDBusError("", "")
> ark.kerfuffle: Mimetype for filename extension ( "application/json" ) did not match mimetype for content ( "text/plain" ). Using content-based mimetype.
> Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")

another time:

> org.kde.kcoreaddons: Error loading plugin "akregatorplugin" "The shared library was not found." 
> Plugin search paths are ("/usr/lib/x86_64-linux-gnu/qt5/plugins", "/usr/bin") 
> The environment variable QT_PLUGIN_PATH might be not correctly set
> error activating kdeconnectd: QDBusError("", "")
> ark.kerfuffle: Mimetype for filename extension ( "application/octet-stream" ) did not match mimetype for content ( "text/plain" ). Using content-based mimetype.
> Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")

when I open Configure Dolphin->Services (this only occurs for Services, not any of the other settings):

> User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
> User of KWidgetItemDelegate should not delete widgets created by createItemWidgets!
> [...]

when I click on "Download New Services" I also get the following above the former messages:

> Rating cannot be superior to 100, fallback to 100.
> Rating cannot be superior to 100, fallback to 100.
> ProviderManager::authenticate: No authentication credentials provided, aborting. "https://api.kde-look.org/ocs/v1/content/vote/1327071"
> ProviderManager::authenticate: No authentication credentials provided, aborting. "https://api.kde-look.org/ocs/v1/content/vote/[...]
> [...]

I'm first interested in it apparently trying to start KdeConnect (it may get an error as I run `sudo chmod -x /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd`) as it may be the solution to: https://unix.stackexchange.com/questions/482942/how-to-prevent-kdeconnectd-from-starting-automatically/595248

----

I'm not sure if I ran Dolphin with sudo long ago. I have tried to install only a few services.

I tried to install Scan with ClamAV (see https://www.opendesktop.org/p/998441/) but installation failed both in the GUI and by running "sh install.sh" in latest Debian (10) stable. No option to scan with ClamAV after running this. Running mkdir /home/username/.kde/share/apps/solid/actions didn't help.

Where can I see a list of installed services and manage them?

STEPS TO REPRODUCE
1. Install use latest Debian stable with KDE and the latest Dolphin from its repos
2. Run `dolphin .` in the terminal (multiple tries and/or wait in between and/or navigate to Configure Dolphin->Services[->Download New Services])
3. See the error messages

OBSERVED RESULT
See the info/error messages above.

EXPECTED RESULT
No info/error messages when running `dolphin .`, new Services should be installed when clicking install in Configure Dolphin, a way to see and manage installed these Services and kdeconnectd should never be started without being explicitly started by the user. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.14.5
KDE Plasma Version: 5.14
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.3

Dolphin: 18.08

ADDITIONAL INFORMATION
Please don't just say that this is an old version of Dolphin. It's the latest version in Debian's official repos so this issue is important anyway. (Furthermore you could help to get a newer version into Debian's official repos or set up a repo with newer KDE version for Debian 10 stable.)
Comment 1 myndstream 2021-01-13 01:08:19 UTC
The 3 error messages that showed about 20 times (the "Rating cannot be superior to 100, fallback to 100." now only 2 x 2 times) still show after uninstalling the 2 only Dolphin Add-Ons I had installed:

Scan with Clamtk (extended) (https://www.opendesktop.org/p/998441/) and
Color Folder (https://store.kde.org/p/998450/) (When I clicked on Uninstall it asked me to "Select your desktop version: Plasma 5/KDE 4" but I closed that window and it was not displayed under Installed afterwards. (The error messages still showed when opening the Services window.) I then reinstalled that Add-On and removed it again but selected "Plasma 5" - same problem after opening dolphin again and navigating to the Services window.

At the bottom of the Dolphin Add-On installer it says "Network error 5: Operation canceled" (it does show the list of addons though).

Maybe that's helpful to find the cause / solution to these problems.
Comment 2 myndstream 2021-12-28 11:34:55 UTC
In the syslog there are these entries:

> dbus-daemon[2475]	[session uid=1000 pid=2475] Activating service name='org.kde.kdeconnect' requested by ':1.99' (uid=1000 pid=139829 comm="/usr/bin/dolphin ")
> dbus-daemon[2475]	[session uid=1000 pid=2475] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied

The "permission denied" is showing because I blocked KDEConnect from running when I don't start it explicitly myself via this way: https://unix.stackexchange.com/questions/384306/why-does-kdeconnect-listen-on-port-1716-tcp-all-the-time-how-to-close-the-port

Is this happening for others on Debian11/KDE too?
Comment 3 myndstream 2021-12-29 13:05:39 UTC
Just some minor additional infos in case they are relevant:

Now the output in the console is
> kf.kio.core: Invalid URL: QUrl("")

Sometimes when trying to mount an Android device this error shows in a message box:

>error KIO client
>The file or folder udi=/org/kde/solid/udev/sys/devices/pci0000:00/0000:.../usb1/1-1/ does not exist.

Also it used to be the case that if Dolphin is opened, mounting an Android device with  the Dolphin popup in the bottom right to browse files doesn't work. Since recently this stopped and Dolphin can be open when mounting an Android device. Details here: https://github.com/mvt-project/mvt/issues/203 - will create a bug report if this occurs again.
Comment 4 myndstream 2021-12-30 22:36:48 UTC
I also found the below entries in the Journald log using KSystemLog.

This occurred after starting from standby. The session was broken yet again so I had log out my user to restart the session via the terminal. I think that this is unrelated to these log-entries and likely related to recently switching to Wayland.

For entries about KSystemStats starting on its own see: https://bugs.kde.org/show_bug.cgi?id=446294

What could the cause be or which things should I try to find out and prevent this from happening?

The journald log entries:

> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.ksystemstats' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Successfully activated service 'org.kde.ksystemstats'
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.KSplash' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied
> dbus-daemon	[session uid=1000 pid=2859675] Activating service name='org.kde.kdeconnect' requested by ':1.71' (uid=1000 pid=2867777 comm="/usr/bin/plasmashell ")
> dbus-daemon	[session uid=1000 pid=2859675] Activated service 'org.kde.kdeconnect' failed: Failed to execute program org.kde.kdeconnect: Permission denied