Skip to content

"$DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined" #96

@Letus252

Description

@Letus252

I installed chroot arch, and I wanted to start XFCE4 using TigerVNC, but it kept crashing, with dbus error. I tried searching for the error, but most forum posts were about fixing issues with systemd itself (which doesn't work under chroot). I then attempted to launch it using Termux:X11 (via chroot-xfce.sh script), but it also crashed.

I have no idea how to fix this issue. Any help would be appreciated.

Termux:X11 crash:

  ____ _                     _     ____  _     _
 / ___| |__  _ __ ___   ___ | |_  |  _ \(_)___| |_ _ __ ___
| |   | '_ \| '__/ _ \ / _ \| __| | | | | / __| __| '__/ _ \
| |___| | | | | (_) | (_) | |_  | |_| | \__ \ |_| | | (_) |
 \____|_| |_|_|  \___/ \___/ \__| |____/|_|___/\__|_|  \___/
                                     v1.2 the.puer@discord

Login to Distro
Installed = [ arch ]

[Info] Use Up/Down to navigate.
[Info] Run Audio Server once before login as CLI.

-- Select Distro --                                                                                                                                       > arch

(Use Up/Down arrows, Enter to select, Escape or q to exit)

Logging in as GUI to arch...
Enter username: f0x
Terminated                 sudo pkill -f com.termux.x11 2> /dev/null
Starting: Intent { cmp=com.termux.x11/.MainActivity }
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-OKlUJhRsfG,guid=2122f6a360b422e94e0d21e36887e12d
DBUS_SESSION_BUS_PID=17657
/usr/bin/startxfce4: X server already running on display :0
xrdb: Connection refused
xrdb: Can't open display ':0'
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.


[u0_a339@localhost ~]$

TigerVNC crash:

[u0_a339@localhost ~]$ su
:/data/data/com.termux/files/home # chroot-distro login arch
[root@localhost ~]# su f0x
[f0x@localhost /root]$ cd
[f0x@localhost ~]$ vncserver :1
Using desktop session xfce

New 'localhost:1 (f0x)' desktop is localhost:1

Starting desktop session xfce


Xvnc TigerVNC 1.15.0 - built Feb 14 2025 20:54:35
Copyright (C) 1999-2025 TigerVNC team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12101015

_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Could not find any render nodes
Failed to initialize DRI3 extension

Mon Jul 28 23:07:00 2025
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      Created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86RefreshRateToggle
> Warning:          Could not resolve keysym XF86Accessibility
> Warning:          Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server
[mi] mieq: warning: overriding existing handler (nil) with 0x64c6cda3c8 for event 2
[mi] mieq: warning: overriding existing handler (nil) with 0x64c6cda3c8 for event 3
xinit: XFree86_VT property unexpectedly has 0 items instead of 1
Running X session wrapper
Loading profile from /etc/profile
Loading profile from /home/f0x/.profile
Loading profile from /home/f0x/.xprofile
Loading xinit script /etc/X11/xinit/xinitrc.d/40-libcanberra-gtk-module.sh
Loading xinit script /etc/X11/xinit/xinitrc.d/50-systemd-user.sh
Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
X session wrapper complete, running session startxfce4
/usr/bin/startxfce4: X server already running on display :1
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Failed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
dbus-update-activation-environment: error: unable to connect to D-Bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

(xfce4-session:13944): libxfce4util-WARNING **: 23:07:01.642: Failed to get a ConsoleKit proxy: Could not connect: No such file or directory
** Message: 23:07:01.683: Failed to fetch _NET_NUMBER_OF_DESKTOPS; assuming 1
** Message: 23:07:01.684: Failed to get _NET_WORKAREA; using full screen dimensions
** Message: 23:07:01.684: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
** Message: 23:07:01.684: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
** Message: 23:07:02.345: Failed to fetch _NET_CURRENT_DESKTOP; assuming 0

(xfwm4:14001): xfwm4-WARNING **: 23:07:02.481: Unsupported GL renderer (llvmpipe (LLVM 20.1.8, 128 bits)).

Mon Jul 28 23:07:02 2025
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:nan ratio)
Xlib:  extension "DPMS" missing on display ":1.0".

(xfce4-power-manager:14050): xfce4-power-manager-WARNING **: 23:07:03.949: Display is not DPMS capable

(xfce4-power-manager:14050): GLib-GIO-CRITICAL **: 23:07:03.950: g_dbus_connection_signal_subscribe: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(polkit-gnome-authentication-agent-1:14051): polkit-gnome-1-WARNING **: 23:07:03.965: Error getting authority: Error initializing authority: Could not connect: No such file or directory

(xfce4-power-manager:14050): libupower-glib-WARNING **: 23:07:04.112: Couldn't connect to proxy: Could not connect: No such file or directory

(xfce4-power-manager:14050): libxfce4util-WARNING **: 23:07:04.142: Failed to get a ConsoleKit proxy: Could not connect: No such file or directory

(xfce4-power-manager:14050): xfce4-power-manager-CRITICAL **: 23:07:04.143: Error getting system bus connection : Could not connect: No such file or directory

(xfce4-power-manager:14050): xfce4-power-manager-CRITICAL **: 23:07:04.143: Unable to connect to the system bus : Could not connect: No such file or directory

** (xfce4-power-manager:14050): WARNING **: 23:07:04.146: Unable to get the interface, net.hadess.PowerProfiles : Could not connect: No such file or directory

(xfce4-power-manager:14050): xfce4-power-manager-CRITICAL **: 23:07:04.158: Unable to get system bus connection : Could not connect: No such file or directory

(xfce4-power-manager:14050): xfce4-power-manager-WARNING **: 23:07:04.159: Unable connect to system bus: Could not connect: No such file or directory
Fontconfig warning: using without calling FcInit()

** (xfdesktop:14044): WARNING **: 23:07:04.453: Failed to get system bus: Could not connect: No such file or directory
Xlib:  extension "DPMS" missing on display ":1".
Fontconfig warning: using without calling FcInit()

(xfce4-session:13944): xfce4-session-WARNING **: 23:07:04.827: failed to run script: Failed to execute child process ?/usr/bin/pm-is-supported? (No such file or directory)

(xfce4-session:13944): xfce4-session-WARNING **: 23:07:04.839: failed to run script: Failed to execute child process ?/usr/bin/pm-is-supported? (No such file or directory)

(xfce4-session:13944): xfce4-session-WARNING **: 23:07:04.851: failed to run script: Failed to execute child process ?/usr/bin/pm-is-supported? (No such file or directory)
Fontconfig warning: using without calling FcInit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reports and issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions