[Solved] Unable to connect to dbus socket

for example

~ xfsettingsd                                                                                                                                                                                                                                    
(xfsettingsd:2672): Gtk-WARNING **: 12:26:41.678: Theme parsing error: gtk.css:2:19: 'solid' is not a valid color name
~ xfsettingsd: Could not connect: Connection refused.                                                                                     
(xfsettingsd:2672): xfsettingsd-ERROR **: 12:26:41.721: Failed to connect to the dbus session bus.

Some more general info:

~ inxi -Fazy                                                                    
System:
  Kernel: 5.7.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.7-x86_64 
  root=UUID=345ab08f-72aa-490a-bdd8-cf012b3ce078 rw quiet 
  resume=UUID=f636c589-0c06-40af-b397-40b10cb76695 udev.log_priority=3 
  Desktop: Xfce 4.14.4 info: plank wm: Openbox 3.6.1 dm: LightDM 1.30.0, LXDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: LENOVO product: 20NE0002US v: ThinkPad E495 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 20NE0002US serial: <filter> UEFI: LENOVO 
  v: R11ET32W (1.12 ) date: 12/23/2019 
Battery:
  ID-1: BAT0 charge: 43.6 Wh condition: 43.6/45.7 Wh (95%) volts: 12.3/11.1 
  model: SMP 01AV447 type: Li-poly serial: <filter> status: Full cycles: 21 
CPU:
  Topology: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24) 
  stepping: 1 microcode: 8108102 L2 cache: 2048 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 33551 
  Speed: 1611 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz): 
  1: 1223 2: 1222 3: 1223 4: 1223 5: 1223 6: 1222 7: 1222 8: 1222 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Picasso vendor: Lenovo ThinkPad E595 driver: amdgpu v: kernel 
  bus ID: 05:00.0 chip ID: 1002:15d8 
  Device-2: Acer SunplusIT Integrated Camera type: USB driver: uvcvideo 
  bus ID: 3-2:3 chip ID: 5986:2113 
  Display: x11 server: X.Org 1.20.8 compositor: picom v: git-e553e 
  driver: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
  display ID: :0 screens: 1 
  Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.7x15.0") 
  s-diag: 1245mm (49") 
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 158 size: 309x173mm (12.2x6.8") 
  diag: 354mm (13.9") 
  Monitor-2: HDMI-A-0 res: 2560x1440 hz: 60 dpi: 124 
  size: 526x296mm (20.7x11.7") diag: 604mm (23.8") 
  OpenGL: renderer: AMD RAVEN (DRM 3.37.0 5.7.19-2-MANJARO LLVM 10.0.1) 
  v: 4.6 Mesa 20.1.7 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio 
  vendor: Lenovo ThinkPad E595 driver: snd_hda_intel v: kernel bus ID: 05:00.1 
  chip ID: 1002:15de 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Lenovo ThinkPad E595 driver: N/A alternate: snd_pci_acp3x 
  bus ID: 05:00.5 chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: Lenovo ThinkPad E595 
  driver: snd_hda_intel v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.7.19-2-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo ThinkPad E595 driver: r8169 v: kernel port: 2000 
  bus ID: 02:00.0 chip ID: 10ec:8168 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Intel Wireless-AC 9260 driver: iwlwifi v: kernel port: 2000 
  bus ID: 04:00.0 chip ID: 8086:2526 
  IF: wlp4s0 state: up mac: <filter> 
  Device-3: ICS Advent DM9601 Fast Ethernet Adapter type: USB driver: dm9601 
  bus ID: 1-3.1:4 chip ID: 0fe6:9700 
  IF: enp5s0f3u3u1 state: up speed: 100 Mbps duplex: full mac: <filter> 
  Device-4: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb 
  bus ID: 3-1:2 chip ID: 8087:0025 
Drives:
  Local Storage: total: 238.47 GiB used: 78.32 GiB (32.8%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 model: UMIS RPJTJ256MED1OWX size: 238.47 GiB block size: 
  physical: 512 B logical: 512 B speed: 15.8 Gb/s lanes: 2 serial: <filter> 
  rev: 1331.1.0 scheme: GPT 
Partition:
  ID-1: / raw size: 64.00 GiB size: 62.50 GiB (97.65%) used: 31.17 GiB (49.9%) 
  fs: ext4 dev: /dev/nvme0n1p8 
  ID-2: /home raw size: 64.46 GiB size: 62.95 GiB (97.65%) 
  used: 47.15 GiB (74.9%) fs: ext4 dev: /dev/nvme0n1p6 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.00 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p7 
Sensors:
  System Temperatures: cpu: 53.0 C mobo: 0.0 C gpu: amdgpu temp: 53 C 
  Fan Speeds (RPM): cpu: 3300 
Info:
  Processes: 215 Uptime: 9m Memory: 5.75 GiB used: 1.73 GiB (30.1%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 alt: 5 clang: 10.0.1 Packages: 
  pacman: 1415 lib: 404 Shell: Zsh v: 5.8 running in: termite inxi: 3.1.05 

~ journalctl -b0 | cat | grep dbus | less

Sep 13 12:21:45 bar-pc audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dbus comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 13 12:21:46 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.15' (uid=0 pid=863 comm="/usr/bin/NetworkManager --no-daemon ")
Sep 13 12:21:46 bar-pc dbus-daemon[761]: [system] Successfully activated service 'org.freedesktop.hostname1'
Sep 13 12:21:46 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.15' (uid=0 pid=863 comm="/usr/bin/NetworkManager --no-daemon ")
Sep 13 12:21:46 bar-pc dbus-daemon[761]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Sep 13 12:21:47 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service' requested by ':1.15' (uid=0 pid=863 comm="/usr/bin/NetworkManager --no-daemon ")
Sep 13 12:21:47 bar-pc dbus-daemon[761]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Sep 13 12:21:47 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.22' (uid=0 pid=1006 comm="(systemd) ")
Sep 13 12:21:47 bar-pc dbus-daemon[761]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Sep 13 12:21:47 bar-pc systemd[1006]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Sep 13 12:21:47 bar-pc gnome-keyring-daemon[1009]: couldn't connect to dbus session bus: Could not connect: Connection refused
Sep 13 12:21:47 bar-pc gnome-keyring-daemon[1009]: couldn't connect to dbus session bus: Could not connect: Connection refused
Sep 13 12:21:52 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.24' (uid=1000 pid=1110 comm="/usr/lib/firefox/firefox ")
Sep 13 12:21:52 bar-pc dbus-daemon[761]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
Sep 13 12:21:52 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.25' (uid=0 pid=1229 comm="/usr/lib/rtkit-daemon ")
Sep 13 12:21:52 bar-pc dbus-daemon[761]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Sep 13 12:21:53 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.GeoClue2' unit='geoclue.service' requested by ':1.39' (uid=1000 pid=1455 comm="/usr/bin/redshift -v ")
Sep 13 12:21:53 bar-pc dbus-daemon[761]: [system] Successfully activated service 'org.freedesktop.GeoClue2'
Sep 13 12:21:55 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.58' (uid=1000 pid=1522 comm="/opt/discord/Discord ")
Sep 13 12:21:55 bar-pc dbus-daemon[761]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
Sep 13 12:21:55 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.15' (uid=0 pid=863 comm="/usr/bin/NetworkManager --no-daemon ")
Sep 13 12:21:55 bar-pc dbus-daemon[761]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
Sep 13 12:35:57 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.221' (uid=0 pid=3351 comm="sudo pacman -Rs local/virtualbox local/virtualbox-")
Sep 13 12:35:57 bar-pc dbus-daemon[761]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Sep 13 12:35:57 bar-pc sudo[3351]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Sep 13 12:36:16 bar-pc dbus-daemon[761]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.222' (uid=0 pid=3454 comm="sudo pacman -Rs local/virtualbox local/virtualbox-")
Sep 13 12:36:16 bar-pc dbus-daemon[761]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Sep 13 12:36:16 bar-pc sudo[3454]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.

Update: I ended up downgrading pam and pambase, problem fixed.

Which desktop environment? Is dbus running/enabled?

I’m running XFCE. dbus-daemon seems running when looking at htop.

updated the message cause