Bug 489343 - 'No such file or directory' error starting dbus service for kdeconnect
Summary: 'No such file or directory' error starting dbus service for kdeconnect
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: plasmoid (show other bugs)
Version: 24.05.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-27 22:53 UTC by pallaswept
Modified: 2024-10-05 09:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pallaswept 2024-06-27 22:53:38 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
KDE connect fails to start, with error:
error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")

This can be 'fixed, by editing the dbus service, changing the path to the kdeconnect binary, to be a full absolute path; ie, edit /usr/share/dbus-1/services/org.kde.kdeconnect.service , changing the 'kdeconnect' to be '/usr/bin/kdeconnect'

STEPS TO REPRODUCE
1. Upgrade from a working system to KDE 6.1
 

OBSERVED RESULT
KDE Connect fails to start, with error:
 "error activating kdeconnectd: QDBusError("org.freedesktop.DBus.Error.Spawn.ExecFailed", "Failed to execute program org.kde.kdeconnect: No such file or directory")"

EXPECTED RESULT
KDE Connect continues to start at boot without any interaction.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 6.10
KDE Frameworks Version: 6.3
Qt Version: 6.7.2

ADDITIONAL INFORMATION
I'm on Tumbleweed, but found the 'fix' for this via a gentoo bug report: https://bugs.gentoo.org/934785 and have seen various reports of it on other distros.
Comment 1 Andreas Sturmlechner 2024-06-29 13:39:39 UTC
Likely regressed in: https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/647
Comment 2 Andreas Sturmlechner 2024-07-13 10:24:00 UTC
(In reply to pallaswept from comment #0)
> I'm on Tumbleweed, but found the 'fix' for this via a gentoo bug report:
> https://bugs.gentoo.org/934785 and have seen various reports of it on other
> distros.
Our downstream bug report was reportedly fixed after 24.05.2, but the lack of changes in kdeconnect itself suggests there was a fix somewhere down the dependency chain. Can you confirm?
Comment 3 pallaswept 2024-07-13 20:01:17 UTC
(In reply to Andreas Sturmlechner from comment #2)
> Our downstream bug report was reportedly fixed after 24.05.2

Now that is interesting, thanks for looking into this Andreas! Sadly it's still broken here on tumbleweed, with kdeconnectd at 24.05.2. It does all suggest that the root cause and fix lie elsewhere. I wonder if gentoo has also had a dbus update, or similar, in that timeframe?

I was double-checking that TW don't patch this source (they don't), and noticed that in the package change log, there was only one change noted for the 24.05.1 release: "Add Qt::DBus dependency to kdeconnect_runcommand_config". That was quite possibly when this broke for me. I can't be sure, but the timelines match up. Maybe this lends a hint?
Comment 4 dwawlyn 2024-09-04 06:38:59 UTC
Hi, I think I just encountered this bug on ubuntu-based "tuxedo-OS":
https://discuss.kde.org/t/kdeconnect-suddenly-stopped-working-gives-errors-like-qdbuserror-org-freedesktop-dbus-error-spawn-execfailed-failed-to-execute-program-org-kde-kdeconnect-no-such-file-or-directory/20865

but like, the bug just suddenly appeared without any upgrade to kdeconnect apparently?

No other users of tuxedo-OS have reported experiencing the same
https://www.reddit.com/r/tuxedocomputers/comments/1f8kc1j/kdeconnect_suddenly_stopped_working_gives_errors/?

This is what I'm calling the solution for now:
https://discuss.kde.org/t/kdeconnect-suddenly-stopped-working-gives-errors-like-qdbuserror-org-freedesktop-dbus-error-spawn-execfailed-failed-to-execute-program-org-kde-kdeconnect-no-such-file-or-directory/20865/3?u=dwawlyn

but yeah, no idea *why* this bug suddenly happened for me,
but if anyone wants any information from me that might be useful, ask away...