Bug 2213658

Summary: Logout should be clean - no service unit failures
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: plasma-workspaceAssignee: KDE SIG <kde-sig>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 39CC: jgrulich, kde-sig, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2023-06-08 22:11:51 UTC
When logging out of a plasma X11 or wayland session a number of systemd services end up in a failed state.  This clutters up logwatch and similar reports when trying to monitor system health.

Reproducible: Always

Steps to Reproduce:
1. Log out of session
2. sudo logwatch --service systemd --range Today

Actual Results:  
 ERROR: Failed state:
         dbus-:1.42-org.a11y.atspi.Registry: 1 Time(s)
         dbus-:1.49-org.a11y.atspi.Registry: 1 Time(s)
         plasma-kactivitymanagerd.service: 2 Time(s)
         plasma-kded.service: 3 Time(s)
         plasma-kglobalaccel.service: 1 Time(s)
         plasma-kscreen.service: 1 Time(s)
         plasma-kwin_x11.service: 2 Time(s)
         plasma-plasmashell.service: 1 Time(s)
         plasma-polkit-agent.service: 1 Time(s)
         plasma-powerdevil.service: 2 Time(s)
         plasma-xdg-desktop-portal-kde.service: 3 Time(s)
         xdg-desktop-portal-gnome.service: 5 Time(s)
         xdg-desktop-portal-gtk.service: 3 Time(s)

Expected Results:  
No service unit failures

Jun 08 15:48:56 kglobalaccel5[17033]: The X11 connection broke (error 1). Did the X11 server die?
Jun 08 15:48:56 kded5[17064]: X connection to :0 broken (explicit kill or server shutdown).
Jun 08 15:48:56 kglobalaccel5[17033]: The X11 connection broke: I/O error (code 1)
Jun 08 15:48:56 kglobalaccel5[17033]: XIO:  fatal IO error 25 (Inappropriate ioctl for device) on X server ":0"
Jun 08 15:48:56 kglobalaccel5[17033]:       after 8 requests (8 known processed) with 0 events remaining.
Jun 08 15:48:56 xdg-desktop-portal-kde[17449]: The X11 connection broke (error 1). Did the X11 server die?
Jun 08 15:48:56 kded5[16992]: X connection to :0 broken (explicit kill or server shutdown).
Jun 08 15:48:56 kded5[16992]: The X11 connection broke: I/O error (code 1)
Jun 08 15:48:56 at-spi2-registryd[17497]: X connection to :0 broken (explicit kill or server shutdown).
Jun 08 15:48:56 kaccess[17332]: The X11 connection broke (error 1). Did the X11 server die?
Jun 08 15:48:56 systemd[16706]: xdg-desktop-portal-gnome.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: xdg-desktop-portal-gnome.service: Failed with result 'exit-code'.
Jun 08 15:48:56 systemd[16706]: plasma-kglobalaccel.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: plasma-kglobalaccel.service: Failed with result 'exit-code'.
Jun 08 15:48:56 systemd[16706]: app-org.gnome.Evolution\x2dalarm\x2dnotify: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: app-org.gnome.Evolution\x2dalarm\x2dnotify: Failed with result 'exit-code'.
Jun 08 15:48:56 systemd[16706]: plasma-xdg-desktop-portal-kde.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: plasma-xdg-desktop-portal-kde.service: Failed with result 'exit-code'.
Jun 08 15:48:56 systemd[16706]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Jun 08 15:48:56 systemd[16706]: dbus-:1.42-org.a11y.atspi.Registry: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: dbus-:1.42-org.a11y.atspi.Registry: Failed with result 'exit-code'.
Jun 08 15:48:56 systemd[16706]: plasma-kded.service: Failed with result 'exit-code'.
Jun 08 15:48:56 kwin_x11[16993]: The X11 connection broke: I/O error (code 1)
Jun 08 15:48:56 kwin_x11[16993]: XIO:  fatal IO error 0 (Success) on X server ":0"
Jun 08 15:48:56 kwin_x11[16993]:       after 13263 requests (13241 known processed) with 0 events remaining.
Jun 08 15:48:56 systemd[16706]: plasma-kwin_x11.service: Main process exited, code=exited, status=1/FAILURE
Jun 08 15:48:56 systemd[16706]: plasma-kwin_x11.service: Failed with result 'exit-code'.

Comment 1 Fedora Release Engineering 2023-08-16 08:15:19 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.