Why do I see abrt messages in log, abrt: detected unhandled Python exception in '/usr/share/rhn/up2date_client/hardware.py' ?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 6
  • rhn-client-tools-1.0.0.1-8.el6.noarch

Issue

  • Getting abrt and /usr/share/rhn/up2date_client/hardware.py related messages in logs.
  • Server is generating recurring errors in the abrt emails due to the /usr/share/rhn/up2date_client/hardware.py script failing with the below output:
Traceback (most recent call last):
  File "/usr/share/rhn/up2date_client/hardware.py", line 25, in <module>
    import rhnserver
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 22, in <module>
    import rpcServer
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 12, in <module>
    import clientCaps
  File "/usr/share/rhn/up2date_client/clientCaps.py", line 10, in <module>
    import capabilities
  File "/usr/share/rhn/up2date_client/capabilities.py", line 4, in <module>
    import up2dateErrors
  File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 16, in <module>
    from yum.Errors import RepoError, YumBaseError
  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 51, in <module>
    import config
  File "/usr/lib/python2.6/site-packages/yum/config.py", line 40, in <module>
    import rpmUtils.transaction
ImportError: No module named transaction
  • [abrt] rhn-client-tools-1.0.0.1-8.el6: config.py:40::ImportError: No module named transaction:
abrt_version:   2.0.8
cmdline:        python /usr/share/rhn/up2date_client/hardware.py
comment:        
executable:     /usr/share/rhn/up2date_client/hardware.py
kernel:         2.6.32-358.18.1.el6.x86_64
time:           
uid:            0
username:       root
  • [abrt] full crash report:
abrt_version:   2.0.8
cmdline:        python /usr/share/rhn/up2date_client/hardware.py
executable:     /usr/share/rhn/up2date_client/hardware.py
kernel:         2.6.32-358.18.1.el6.x86_64
time:           
uid:            0
username:       root

sosreport.tar.xz: Binary file, 1177404 bytes

backtrace:
:config.py:40:<module>:ImportError: No module named transaction
:
:Traceback (most recent call last):
:  File "/usr/share/rhn/up2date_client/hardware.py", line 25, in <module>
:    import rhnserver
:  File "/usr/share/rhn/up2date_client/rhnserver.py", line 22, in <module>
:    import rpcServer
:  File "/usr/share/rhn/up2date_client/rpcServer.py", line 12, in <module>
:    import clientCaps
:  File "/usr/share/rhn/up2date_client/clientCaps.py", line 10, in <module>
:    import capabilities
:  File "/usr/share/rhn/up2date_client/capabilities.py", line 4, in <module>
:    import up2dateErrors
:  File "/usr/share/rhn/up2date_client/up2dateErrors.py", line 16, in <module>
:    from yum.Errors import RepoError, YumBaseError
:  File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 52, in <module>
:    import config
:  File "/usr/lib/python2.6/site-packages/yum/config.py", line 40, in <module>
:    import rpmUtils.transaction
:ImportError: No module named transaction

Resolution

# yum update rhn-client-tools
  • If upgrading is not possible, a workaround is to downgrade rhn-client-tools package to rhn-client-tools-1.0.0.1-4.el6.noarch version.
[root@host ~]# yum downgrade rhn-client-tools yum-rhn-plugin rhn-setup rhn-check rhn-setup-gnome rhnlib
[root@host ~]# /etc/init.d/rhnsd restart

Diagnostic Steps

  • Check for error messages in /var/log/messages:
# tail -20 messages
:
abrt-server[17170]: Saved Python crash dump of pid 17169 to /var/spool/abrt/pyhook-2013-10-04-11-17169
abrtd: Directory 'pyhook-2013-10-04-11-17169' creation detected
abrtd: Sending an email...
abrtd: Email was sent to: root@localhost
abrtd: Duplicate: UUID
abrtd: DUP_OF_DIR: /var/spool/abrt/pyhook-2013-10-01-17:17:03-12914
abrtd: Corrupted or bad directory '/var/spool/abrt/pyhook-2013-10-04-16:40-16863', deleting
kernel: Kernel logging (proc) stopped.
rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="1973" x-info="http://www.rsyslog.com"] exiting on signal 15.
kernel: imklog 5.8.10, log source = /proc/kmsg started.
rsyslogd: [origin software="rsyslogd" swVersion="5.8.10" x-pid="17487" x-info="http://www.rsyslog.com"] start
abrt: detected unhandled Python exception in '/usr/share/rhn/up2date_client/hardware.py'                  <======
abrtd: New client connected
abrt-server[17573]: Saved Python crash dump of pid 17572 to /var/spool/abrt/pyhook-2013-10-04-42-17572
abrtd: Directory 'pyhook-2013-10-04-42-17572' creation detected
abrtd: Sending an email...
abrtd: Email was sent to: root@localhost
abrtd: Duplicate: UUID
abrtd: DUP_OF_DIR: /var/spool/abrt/pyhook-2013-10-01-17:17:03-12914
SBR
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.