You are not logged in.
Hi everyone,
I have just installed ArchLinux 2019.4 and Mate Desktop Environment inside it.
The problem is, when I try to login with non-root user, there is error:
"Could not connect to session bus: Failed to connect to socket /tmp/dbus-s0dORAdRyY: Connection refused"
Same happens with XFCE4 other Desktop Environments.
I can login without problem to Fluxbox and Openbox, but I do not prefer these Desktop Environments.
No such problem for root, but it is not a good idea to use root all the time.
I remember that it did not happen in ArchLinux 2018.7.
Adding user to groups like wheel, dbus etc did not help to fix the issue.
Any ideas what could I do in order to fix that?
Offline
Then you are not starting your session correctly, how do you attempt to start mate?
Offline
I have tried to start it through starting lxdm, sddm and other login managers from the console terminal, result is the same.
Offline
Post a complete
sudo journalctl -b
in [ code ] tags after reproduction of the issue. Do you have any start up files in your user's configuration that would start anything with dbus-launch or similar? Have you tried reproducing on a fresh new user?
Last edited by V1del (2019-04-23 08:25:04)
Offline
Did not create any start up files yet. I have tried with new user result is the same.
Offline
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Apr 23 12:18:52 arch sudo[479]: dragon : TTY=tty1 ; PWD=/home/dragon ; USER=root ; COMMAND=/usr/bin/lxdm
Apr 23 12:18:52 arch sudo[479]: pam_unix(sudo:session): session opened for user root by dragon(uid=0)
Apr 23 12:18:54 arch systemd[1]: Stopping User Manager for UID 0...
Apr 23 12:18:54 arch systemd[418]: Stopped target Main User Target.
Apr 23 12:18:54 arch systemd[418]: Stopped target Basic System.
Apr 23 12:18:54 arch systemd[418]: Stopped target Timers.
Apr 23 12:18:54 arch systemd[418]: Stopped target Sockets.
Apr 23 12:18:54 arch systemd[418]: gpg-agent-extra.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Apr 23 12:18:54 arch systemd[418]: dbus.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed D-Bus User Message Bus Socket.
Apr 23 12:18:54 arch systemd[418]: gpg-agent-browser.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Apr 23 12:18:54 arch systemd[418]: gpg-agent-ssh.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Apr 23 12:18:54 arch systemd[418]: p11-kit-server.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed p11-kit server.
Apr 23 12:18:54 arch systemd[418]: dirmngr.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed GnuPG network certificate management daemon.
Apr 23 12:18:54 arch systemd[418]: gpg-agent.socket: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Closed GnuPG cryptographic agent and passphrase cache.
Apr 23 12:18:54 arch systemd[418]: Stopped target Paths.
Apr 23 12:18:54 arch systemd[418]: Reached target Shutdown.
Apr 23 12:18:54 arch systemd[418]: systemd-exit.service: Succeeded.
Apr 23 12:18:54 arch systemd[418]: Started Exit the Session.
Apr 23 12:18:54 arch systemd[418]: Reached target Exit the Session.
Apr 23 12:18:54 arch systemd[1]: user@0.service: Succeeded.
Apr 23 12:18:54 arch systemd[1]: Stopped User Manager for UID 0.
Apr 23 12:18:54 arch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 23 12:18:54 arch kernel: audit: type=1131 audit(1556011134.938:29): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 23 12:18:54 arch systemd[1]: Stopping User Runtime Directory /run/user/0...
Apr 23 12:18:54 arch systemd[469]: run-user-0.mount: Succeeded.
Apr 23 12:18:54 arch systemd[1]: run-user-0.mount: Succeeded.
Apr 23 12:18:54 arch systemd[1]: user-runtime-dir@0.service: Succeeded.
Apr 23 12:18:54 arch systemd[1]: Stopped User Runtime Directory /run/user/0.
Apr 23 12:18:54 arch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 23 12:18:54 arch kernel: audit: type=1131 audit(1556011134.971:30): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 23 12:18:54 arch systemd[1]: Removed slice User Slice of UID 0.
Apr 23 12:18:58 arch lxdm-session[488]: pam_unix(lxdm:session): session opened for user dragon by dragon(uid=0)
Apr 23 12:18:58 arch mate-session[489]: WARNING: Could not make bus activated clients aware of DISPLAY=:0 environment variable: Could not connect: Connection refused
Apr 23 12:18:58 arch mate-session[489]: WARNING: Could not make bus activated clients aware of MATE_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Could not connect: Connection refused
Apr 23 12:18:58 arch mate-session[489]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/arch:@/tmp/.ICE-unix/489,unix/arch:/tmp/.ICE-unix/489 environment variable: Could not connect: Connection refused
Apr 23 12:18:59 arch mate-session[489]: Gtk-CRITICAL: gtk_main_quit: assertion 'main_loops != NULL' failed
Apr 23 12:18:59 arch mate-session[489]: CRITICAL: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
Apr 23 12:18:59 arch mate-session[489]: Gtk-CRITICAL: gtk_main_quit: assertion 'main_loops != NULL' failed
Apr 23 12:18:59 arch mate-session[489]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Apr 23 12:18:59 arch mate-session[489]: WARNING: Could not make bus activated clients aware of GTK_OVERLAY_SCROLLING=0 environment variable: Could not connect: Connection refused
Apr 23 12:18:59 arch mate-session[489]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-SLyvnvZQav: Connection refused
Apr 23 12:18:59 arch mate-session[489]: WARNING: Unable to register presence with session bus
Apr 23 12:18:59 arch mate-session[489]: CRITICAL: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
Apr 23 12:18:59 arch mate-session[489]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-SLyvnvZQav: Connection refused
Apr 23 12:18:59 arch lxdm-session[488]: pam_unix(lxdm:session): session closed for user dragon
Apr 23 12:19:12 arch lxdm-session[507]: pam_unix(lxdm:session): session opened for user root by dragon(uid=0)
Apr 23 12:19:12 arch kernel: audit: type=1006 audit(1556011152.371:31): pid=507 uid=0 old-auid=1000 auid=0 tty=tty1 old-ses=3 ses=5 res=1
Apr 23 12:19:12 arch mate-session[508]: WARNING: Could not make bus activated clients aware of DISPLAY=:0 environment variable: Could not connect: Connection refused
Apr 23 12:19:12 arch mate-session[508]: WARNING: Could not make bus activated clients aware of MATE_DESKTOP_SESSION_ID=this-is-deprecated environment variable: Could not connect: Connection refused
Apr 23 12:19:12 arch mate-session[508]: WARNING: Could not make bus activated clients aware of SESSION_MANAGER=local/arch:@/tmp/.ICE-unix/508,unix/arch:/tmp/.ICE-unix/508 environment variable: Could not connect: Connection refused
Apr 23 12:19:13 arch mate-session[508]: Gtk-CRITICAL: gtk_main_quit: assertion 'main_loops != NULL' failed
Apr 23 12:19:13 arch mate-session[508]: CRITICAL: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
Apr 23 12:19:14 arch mate-session[508]: Gtk-CRITICAL: gtk_main_quit: assertion 'main_loops != NULL' failed
Apr 23 12:19:14 arch mate-session[508]: GLib-GObject-CRITICAL: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Apr 23 12:19:14 arch mate-session[508]: WARNING: Could not make bus activated clients aware of GTK_OVERLAY_SCROLLING=0 environment variable: Could not connect: Connection refused
Apr 23 12:19:14 arch mate-session[508]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-Jid1Y3LM4Y: Connection refused
Apr 23 12:19:14 arch mate-session[508]: WARNING: Unable to register presence with session bus
Apr 23 12:19:14 arch mate-session[508]: CRITICAL: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
Apr 23 12:19:14 arch mate-session[508]: CRITICAL: error getting session bus: Failed to connect to socket /tmp/dbus-Jid1Y3LM4Y: Connection refused
Apr 23 12:19:14 arch lxdm-session[507]: pam_unix(lxdm:session): session closed for user root
Apr 23 12:19:33 arch lxdm-session[525]: pam_unix(lxdm:session): session opened for user dragon by dragon(uid=0)
Apr 23 12:19:47 arch sudo[559]: dragon : TTY=pts/0 ; PWD=/home/dragon ; USER=root ; COMMAND=/usr/bin/journalctl -b
Apr 23 12:19:47 arch sudo[559]: pam_unix(sudo:session): session opened for user root by dragon(uid=0)
Offline
Tha's truncated by the pager use
sudo journalctl -b > journal.txt
to reidrect into a file if necessary.
However a pretty clear problem shows itself, why does your normal user have uid=0? That is bound to run you into issues, which command are you using to create your user? Which instructions are you following to install Arch?
Offline
1. dragon's uid is 1000
1. useradd dragon
2. https://wiki.archlinux.org/index.php/Installation_guide
Offline
Unlikely.
Apr 23 12:18:58 arch lxdm-session[488]: pam_unix(lxdm:session): session opened for user dragon by dragon(uid=0)
As your normal user (dragon?) run:
(sudo journalctl -b; cat /etc/passwd; id; loginctl session-status) | curl -F 'f:1=<-' ix.io
and post the link.
Offline
Offline
Apr 23 14:48:43 arch dbus-daemon[316]: Encountered error 'Error in file /usr/share/dbus-1/system.d/org.freedesktop.DisplayManager.conf, line 1, column 0: no element found
' while parsing '/usr/share/dbus-1/system.d/org.freedesktop.DisplayManager.conf'
Apr 23 14:48:43 arch dbus-daemon[316]: dbus-daemon[316]: Encountered error 'Error in file /usr/share/dbus-1/system.d/org.freedesktop.DisplayManager.conf, line 1, column 0: no element found
Apr 23 14:48:43 arch dbus-daemon[316]: ' while parsing '/usr/share/dbus-1/system.d/org.freedesktop.DisplayManager.conf'
pacman -Qkk lightdm
Offline