RHN registration fails with dbus_bindings.DBusException in Red Hat Enterprise Linux
Issue
- The "rhn_register" command fails with the following messages:
# rhn_register
An error has occurred:
dbus_bindings.DBusException
See /var/log/up2date for more information
# rhn_register
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/tui.py", line 1510, in _activate_hardware
hardwareInfo = hardware.get_hal_system_and_smbios()
File "/usr/share/rhn/up2date_client/hardware.py", line 861, in get_hal_system_and_smbios
computer = get_hal_computer()
File "/usr/share/rhn/up2date_client/hardware.py", line 760, in get_hal_computer
bus = dbus.SystemBus()
File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 260, in __new__
return Bus.__new__(cls, Bus.TYPE_SYSTEM, use_default_mainloop, private)
File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 99, in __new__
bus._connection = dbus_bindings.bus_get(bus_type, private)
File "dbus_bindings.pyx", line 1692, in dbus_bindings.bus_get
dbus_bindings.DBusException: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
# rhn_register
Traceback (most recent call last):
File "/usr/share/rhn/up2date_client/rhnregGui.py", line 1722, in autoActivateNumbersOnce
hardwareInfo = hardware.get_hal_system_and_smbios()
File "/usr/share/rhn/up2date_client/hardware.py", line 863, in get_hal_system_and_smbios
props = computer.GetAllProperties()
File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 25, in __call__
ret = self._proxy_method (*args, **keywords)
File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 102, in __call__
reply_message = self._connection.send_with_reply_and_block(message, timeout)
File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block
dbus_bindings.DBusException: The name org.freedesktop.Hal was not provided by any .service files
- Another error message you may get is:
Introspect error: The name org.freedesktop.Hal was not provided by any .service files
- rhnreg_ks fails with "dbus_bindings.DBusException"
Environment
- Red Hat Enterprise Linux 4
- Red Hat Enterprise Linux 5
- rhn_register
- rhnreg_ks
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.