# Fail to run xfce after upgrade to Rocky 8.5

**URL:** https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617
**Category:** Rocky Linux Help & Support
**Created:** [November 17, 2021, 9:02pm UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617 "2021-11-17T21:02:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![addw](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@addw](https://forums.rockylinux.org/u/addw)
#### Post date: [November 17, 2021, 9:02pm UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617/1 "2021-11-17T21:02:28Z")

</div>

Machines installed Centos and a few months ago upgraded to Rocky without problems.

After the recent upgrade to 8.5 (ie yesterday, today) a user trying to login and expecting to run Xfce - cannot login. After typing the password there is a pause of about 15 seconds and the list of users is shown again.

I see in the release notes that there has been some work here …

> **[Chapter 4. New features Red Hat Enterprise Linux 8 | Red Hat...](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.5_release_notes/new-features#enhancement_desktop)**
>
> The Red Hat Customer Portal delivers the knowledge, expertise, and guidance available through your Red Hat subscription.

it referrs to /etc/accountsservice/user-templates/standard & /var/lib/AccountsService/users/user-name but playing with these does not do what it should.

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [November 17, 2021, 9:16pm UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617/2 "2021-11-17T21:16:30Z")

</div>

The accountservice seems to be about setting _default_ session. Thus unrelated.

Have you looked at logs?

```auto
sudo journactl -xe
sudo less /var/log/messages
sudo less /var/log/secure

```

Do the other sessions (than xfce) operate normally?  
Was there any issues on the `dnf upgrade`?

---

<div class="post-metadata">

### Author: ![jorgy](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jorgy/32/1404_2.png) [@jorgy](https://forums.rockylinux.org/u/jorgy)
#### Post date: [November 19, 2021, 12:35am UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617/3 "2021-11-19T00:35:31Z")

</div>

Hello,

I am having the same problem. I dnf upgraded a RL 8.4 to 8.5, and there weren’t any warnings.

In /var/log/messages, I saw this:

```auto
Nov 18 22:40:55 morris gdm[1768]: Gdm: GdmDisplay: Session never registered, failing
Nov 18 22:40:57 morris systemd-logind[1324]: Session 10 logged out. Waiting for processes to exit.
Nov 18 22:40:57 morris systemd[1]: session-10.scope: Succeeded.
Nov 18 22:40:57 morris systemd-logind[1324]: Removed session 10.
Nov 18 22:40:58 morris org.gnome.Shell.desktop[9983]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Nov 18 22:40:58 morris org.gnome.Shell.desktop[9983]: > Warning: Unsupported maximum keycode 569, clipping.
Nov 18 22:40:58 morris org.gnome.Shell.desktop[9983]: > X11 cannot support keycodes above 255.
Nov 18 22:40:58 morris org.gnome.Shell.desktop[9983]: Errors from xkbcomp are not fatal to the X server

```

There were other messages from gdm, but didn’t seem relevant. The entire session log from /var/log/messages is here:

[https://pastebin.com/gXtTEnvq](https://pastebin.com/gXtTEnvq)

Thanks,  
jorgy

---

<div class="post-metadata">

### Author: ![addw](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@addw](https://forums.rockylinux.org/u/addw)
#### Post date: [November 19, 2021, 5:03pm UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617/4 "2021-11-19T17:03:44Z")

</div>

A bit more digging and I found in /var/log/messages:

/usr/libexec/gdm-wayland-session[119565]: /usr/libexec/Xorg.wrap: Only console users are allowed to run the X server

I created the file /etc/X11/Xwrapper.config with content:

allowed\_users = anybody

and it all works nicely.

I had been fiddling so I do not know if any of the stuff below is also needed.

I note: [https://access.redhat.com/documentation/en-us/red\_hat\_enterprise\_linux/8/html/8.5\_release\_notes/new-features#enhancement\_desktop](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.5_release_notes/new-features#enhancement_desktop)  
This talks about /var/lib/AccountsService/users/user-name  
This contains:

[com.redhat.AccountsServiceUser.System]  
id=‘rocky’  
version-id=‘8.5’

[User]  
Language=en\_GB.UTF-8  
Session=xfce  
SessionType=x11  
Icon=/home/addw/.face  
SystemAccount=false

So, the question is what should Xorg.wrap contain ?

Is it because xfce uses X and not Waylan ?

---

<div class="post-metadata">

### Author: ![jotatb](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jotatb](https://forums.rockylinux.org/u/jotatb)
#### Post date: [November 19, 2021, 5:56pm UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617/5 "2021-11-19T17:56:30Z")

</div>

I run MATE on Rocky Linux and the same happened to me. I fixed it by typing this on a Terminal:

sudo systemctl set-default graphical.target

Hope that helps.

---

<div class="post-metadata">

### Author: ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)
#### Post date: [August 25, 2023, 4:01am UTC](https://forums.rockylinux.org/t/fail-to-run-xfce-after-upgrade-to-rocky-8-5/4617/6 "2023-08-25T04:01:10Z")

</div>


