LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-22-2018, 08:49 AM   #1
hieberm
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
hostnamectl not working, system_bus_socket in /run/dbus not in /var/run/dbus


I am running Centos 7 in a virtual machine. We use systemctl and hostnamectl, so dbus is included when we build our image as a dependency of systemd.

In the past, we have had no issue with dbus running correctly, and therefore hostnamectl, etc. Yesterday I generated a new image (without changing any settings) and we ran into this issue. Hostnamectl, systemd-logind.service and a couple of other services failed to run. Eventually, we found that it was due to the location of system_bus_socket. It was created in /run/dbus and should have been created in /var/run/dbus instead. Once a symlink was created to /var/run/dbus, all the failed systems ran correctly.

My question is why was the system_bus_socket created where it was? Is this a change of behavior? I checked the logs, and the version of dbus that yum installed was dbus-libs-1.10.24-7.el7.x86_64

Actually, the following packages were installed:
dbus x86_64 1:1.10.24-7.el7 centos-os 245 k
dbus-glib x86_64 0.100-7.el7 centos-os 102 k
dbus-libs x86_64 1:1.10.24-7.el7 centos-os 169 k
dbus-python x86_64 1.1.1-9.el7 centos-os 206 k

Last edited by hieberm; 05-22-2018 at 08:52 AM. Reason: Adding all dbus packages installed
 
Old 05-23-2018, 07:44 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Run "rpm -ql dbus" and you'll see the files it installs.

I have a RHEL7.5 (CentOS is compiled from RHEL source) system that has dbus-1.10.24-7.el7.x86_64. When I ran the rpm -ql on that system it confirms it installed:
/run/dbus
The only thing it installed in /var is:
/var/lib/dbus

An older CentOS7.4.1708 has dbus-1.6.12-17.el7.x86_64. When I ran the rpm -ql on that system it instead shows it installed:
/var/lib/dbus
/var/run/dbus

On a RHEL6 system the /var/run/dbus file is created.

It appears sometime between dbus-1.6.12-17 and 1.10.24-7 they changed it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can not access dbus-/usr/local/var/run/system_bus_socket Yong_Jeon Fedora 12 12-18-2012 04:06 AM
gdm-binary: /var/run/dbus/system_bus_socket: No such file or directory Kenny_Strawn Arch 31 11-22-2010 04:46 AM
pcmanfm error: /var/run/dbus/system_bus_socket no such file or permission denied linus72 Linux - General 0 10-06-2009 06:35 PM
system_bus_socket not found in var/run/dbus akbarbasha Linux - Software 0 04-07-2009 12:27 AM
dbus "rm /var/run/dbus/Desktop can't remove..." longus Slackware 6 12-15-2008 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration