KB Article #190840

Upgrading B2Bi 2.6 : dconf error while updating by running a GUI

Problem

During the upgrade we ran into this error:
(process:3868903): dconf-CRITICAL **: 14:54:52.703: unable to create directory '/run/user/22540/dconf': Permission denied. dconf will not work properly.

What is dconf used for and is it important?

Resolution

The dconf is a low-level configuration system used by GNOME and GTK-based applications to store user and application settings such as themes, keyboard shortcuts, and UI preferences.

The reported error occurs when dconf is unable to create or access its runtime directory for a specific user. It usually indicates:

The user session is not active. The /run/user/<uid> directory is missing or has incorrect permissions.

When using the `su` command to switch users, running a GUI may lead to issues due to certain environmental variables not being updated.

To fix the dconf error you can :

- log in directly as the desired user instead of switching with `su` , run upgrade in a terminal mode

Or

- Manually set the runtime environment : export XDG_RUNTIME_DIR=/run/user/$(id -u) ; mkdir -p "$XDG_RUNTIME_DIR/dconf" ; chmod 700 "$XDG_RUNTIME_DIR

Or

- unset the parameter with this command: "unset XDG_RUNTIME_DIR",

NB: When using B2Bi Installer or Update on Linux, it is often recommended to utilize console mode.