Bug 500017 - krdpserver fails to start
Summary: krdpserver fails to start
Status: RESOLVED FIXED
Alias: None
Product: KRdp
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.0
Platform: Arch Linux Linux
: VHI normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-13 18:40 UTC by aeon
Modified: 2025-03-05 18:59 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aeon 2025-02-13 18:40:35 UTC
on archlinux when i try to enable via the toggle it creates 2 systemd user services:
~/.config/systemd/user/plasma-krdp_server.service -> /usr/lib/systemd/user/app-org.kde.krdpserver.service
~/.config/systemd/user/plasma-workspace.target.wants/app-org.kde.krdpserver.service -> /usr/lib/systemd/user/app-org.kde.krdpserver.service

automatic KRDP start fails because of the following error:
plasma-workspace.target: Job app-org.kde.krdpserver.service/start deleted to break ordering cycle starting with plasma-workspace.target/start

looking at the service file, the current one is:
***
# SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
# SPDX-FileCopyrightText: 2024 Akseli Lahtinen <akselmo@akselmo.dev>
[Unit]
Description=KRDP Server
After=graphical-session.target

[Service]
Type=exec
ExecStart=/usr/bin/krdpserver
Restart=on-abnormal

[Install]
WantedBy=plasma-workspace.target
Alias=plasma-krdp_server.service
***

however, in the beta the autostart worked.  there, the service file was:
***
# SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
# SPDX-FileCopyrightText: 2024 Akseli Lahtinen <akselmo@akselmo.dev>
[Unit]
Description=KRDP Server
After=graphical-session.target
Requires=plasma-xdg-desktop-portal-kde.service

[Service]
Type=exec
ExecStart=/usr/bin/krdpserver
Restart=on-abnormal

[Install]
WantedBy=graphical-session.target
***

the workaround i found to get krdpserver to autostart properly was as follows:
disable the autostart that the stable release creates making sure the user systemd does not reference krdpserver
copy the service file that was used in the beta to ~/.config/systemd/user
execute: systemctl enable --user plasma-krdp_server.service
Comment 1 Luís Alexandre 2025-02-14 15:58:46 UTC
Same issue on Fedora Kinoite 41

The workaround using the beta service file doesn't seem to work for me
Restarting the stable service app-org.kde.krdpserver after startup does work so I just created a timer to start with a delay for now
Comment 2 Bernhard 2025-02-16 15:55:09 UTC
Can confirm, also affects KDE Neon (User) with Plasma 6.3 and the exact same errors.
Comment 3 Bug Janitor Service 2025-02-17 12:15:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/krdp/-/merge_requests/92
Comment 4 David Edmundson 2025-02-17 13:37:08 UTC
Git commit ad393302a1e17889067fd139c28962b4b3791fc1 by David Edmundson.
Committed on 17/02/2025 at 12:15.
Pushed by davidedmundson into branch 'master'.

Fix systemd startup

plasma-workspace.target is explicitly marked as being before
graphical-session.target. If krdpserver is set to come up after
graphical-session.target this creates an issue that plasma-workspace
can't be marked as up until this is up, and we can't start
graphical-session yet.

Anything wanted by plasma-workspaec needs to have dependencies set
explicitly.

Ammends: df4d9d4ea68cccb35da0a5b55a32652c58b54acd

M  +2    -1    server/app-org.kde.krdpserver.service.in

https://invent.kde.org/plasma/krdp/-/commit/ad393302a1e17889067fd139c28962b4b3791fc1
Comment 5 Nate Graham 2025-03-05 18:59:46 UTC
Git commit 5dd6f7e3ee679f938cf46549087afb954b99c755 by Nate Graham.
Committed on 05/03/2025 at 18:57.
Pushed by ngraham into branch 'Plasma/6.3'.

Fix systemd startup

plasma-workspace.target is explicitly marked as being before
graphical-session.target. If krdpserver is set to come up after
graphical-session.target this creates an issue that plasma-workspace
can't be marked as up until this is up, and we can't start
graphical-session yet.

Anything wanted by plasma-workspaec needs to have dependencies set
explicitly.

Ammends: df4d9d4ea68cccb35da0a5b55a32652c58b54acd


(cherry picked from commit ad393302a1e17889067fd139c28962b4b3791fc1)

Co-authored-by: David Edmundson <kde@davidedmundson.co.uk>

M  +2    -1    server/app-org.kde.krdpserver.service.in

https://invent.kde.org/plasma/krdp/-/commit/5dd6f7e3ee679f938cf46549087afb954b99c755