Status
Not open for further replies.

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Past couple of days, i have started to notice an error with yum-updatesd on all cpanel vps servers i have setup. All of them are on centos5.3.

Code:
/etc/init.d/yum-updatesd restart
Stopping yum-updatesd: [FAILED]
Starting yum-updatesd: [  OK  ]
[email protected] [~]# Traceback (most recent call last):
  File "/usr/sbin/yum-updatesd", line 35, in ?
    import dbus
  File "/usr/lib/python2.4/site-packages/dbus/__init__.py", line 1, in ?
    from _dbus import *
  File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 48, in ?
    from proxies import *
  File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 2, in ?
    import introspect_parser
  File "/usr/lib/python2.4/site-packages/dbus/introspect_parser.py", line 1, in ?
    import libxml2
  File "/usr/lib/python2.4/site-packages/libxml2.py", line 215
    pass
       ^
TabError: inconsistent use of tabs and spaces in indentation
Has anyone else seen these errors and if there a solution for this ?

Thanks.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Past couple of days, i have started to notice an error with yum-updatesd on all cpanel vps servers i have setup. All of them are on centos5.3.

Code:
/etc/init.d/yum-updatesd restart
Stopping yum-updatesd: [FAILED]
Starting yum-updatesd: [  OK  ]
[email protected] [~]# Traceback (most recent call last):
  File "/usr/sbin/yum-updatesd", line 35, in ?
    import dbus
  File "/usr/lib/python2.4/site-packages/dbus/__init__.py", line 1, in ?
    from _dbus import *
  File "/usr/lib/python2.4/site-packages/dbus/_dbus.py", line 48, in ?
    from proxies import *
  File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 2, in ?
    import introspect_parser
  File "/usr/lib/python2.4/site-packages/dbus/introspect_parser.py", line 1, in ?
    import libxml2
  File "/usr/lib/python2.4/site-packages/libxml2.py", line 215
    pass
       ^
TabError: inconsistent use of tabs and spaces in indentation
Has anyone else seen these errors and if there a solution for this ?

Thanks.
Are all of your servers with the same data center? If so, you may want to make them aware of this issue as it could be a data center issue.
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Are all of your servers with the same data center? If so, you may want to make them aware of this issue as it could be a data center issue.
How can this be a DC issue when i created / installed centos5.3 from scratch on these vps ? I have a private centos5.3 mirror (rsynced every day from public mirrors) which was used to install the OS.

This only started after i installed cpanel on centos5.3, recompiled apache, and ran upcp.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
How can this be a DC issue when i created / installed centos5.3 from scratch on these vps ? I have a private centos5.3 mirror (rsynced every day from public mirrors) which was used to install the OS.

This only started after i installed cpanel on centos5.3, recompiled apache, and ran upcp.
I know some data centers run their own mirrors and given the number of servers you are experiencing this on and that this was an yum issue we are not readily able to to reproduce, it sounded like an issue with a mirror.

Feel welcome to let our technical analysts take a look a look at things as they'll be in a better position to determine the exact cause of this issue: http://tickets.cPanel.net/submit
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
I created the yum repository myself using centos mirror from mirror.raystedman.net, which is being used here to install all these vps's. From the same location, its rsynced for all changes once every 24hrs.

What exactly do you want me to submit to cpanel support ? The host server (where the repository exists, and all vps are being created) and/or the vps instance(s) where the problem is appearing ?
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
India
cPanel Access Level
DataCenter Provider
Problem was solved by Donald Holl from cpanel support. Here is the solution just in case someone else encounters it.

Code:
The problem was resolved by forcing a RPM reinstall of the following two software packages:
dbus-python
libxml2-python

You can use the following steps to reproduce this fix if needed:
rpm --force -hUv http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-python-0.70-7.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm

If the above one-line command does not resolve it, then you may need to use wget to first download the two RPMs then install from there, as follows:

wget -N http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-python-0.70-7.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.7.i386.rpm

rpm --force -hUv dbus-python-0.70-7.el5.i386.rpm libxml2-python-2.6.26-2.1.2.7.i386.rpm


Other than the above steps I ensured that the RPMs for "python" and "python-devel" were installed and that the yum cache was cleared:
### quote log ###
[email protected] [~]# rpm -q python python-devel
python-2.4.3-24.el5
python-devel-2.4.3-24.el5
[email protected] [~]# yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything
Cleaning up list of fastest mirrors
[email protected] [~]#
### quote end ###


I verified the desired command now works without error:
[email protected] [~]# /etc/init.d/yum-updatesd start
Starting yum-updatesd: [ OK ]
[email protected] [~]# /etc/init.d/yum-updatesd restart
Stopping yum-updatesd: [ OK ]
Starting yum-updatesd: [ OK ]
[email protected] [~]#
I verified the above by replicating the same on other vps where the problem appeared with my own mirror. It solved the problem.

Now the only question left is why after cpanel install these rpm's got affected.
 

adrianmoya

Registered
Feb 26, 2009
3
0
51
Same problem here

Hi, I've just upgraded my cpanel instalation from 11.24 to 11.25 and I'm facing this problem. I tryed to resolve the issue as explained here but there's no libxml2-python-2.6.26-2.1.2.7.i386.rpm on the mirrors. I'm running Centos 5.4., so I tryed to solve with this command:

pm --force -hUv http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-python-0.70-7.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-libs-1.1.2-12.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-glib-0.73-8.el5.i386.rpm

But I'm still getting the error. What else can I do?

Traceback (most recent call last):
File "/usr/sbin/yum-updatesd", line 35, in ?
import dbus
File "/usr/lib64/python2.4/site-packages/dbus/__init__.py", line 1, in ?
from _dbus import *
File "/usr/lib64/python2.4/site-packages/dbus/_dbus.py", line 48, in ?
from proxies import *
File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 2, in ?
import introspect_parser
File "/usr/lib64/python2.4/site-packages/dbus/introspect_parser.py", line 1, in ?
import libxml2
File "/usr/lib64/python2.4/site-packages/libxml2.py", line 215
pass
^
TabError: inconsistent use of tabs and spaces in indentation
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
13
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Hi, I've just upgraded my cpanel instalation from 11.24 to 11.25 and I'm facing this problem. I tryed to resolve the issue as explained here but there's no libxml2-python-2.6.26-2.1.2.7.i386.rpm on the mirrors. I'm running Centos 5.4., so I tryed to solve with this command:

pm --force -hUv http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-python-0.70-7.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.8.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-libs-1.1.2-12.el5.i386.rpm http://mirror.centos.org/centos/5/os/i386/CentOS/dbus-glib-0.73-8.el5.i386.rpm

But I'm still getting the error. What else can I do?

Traceback (most recent call last):
File "/usr/sbin/yum-updatesd", line 35, in ?
import dbus
File "/usr/lib64/python2.4/site-packages/dbus/__init__.py", line 1, in ?
from _dbus import *
File "/usr/lib64/python2.4/site-packages/dbus/_dbus.py", line 48, in ?
from proxies import *
File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 2, in ?
import introspect_parser
File "/usr/lib64/python2.4/site-packages/dbus/introspect_parser.py", line 1, in ?
import libxml2
File "/usr/lib64/python2.4/site-packages/libxml2.py", line 215
pass
^
TabError: inconsistent use of tabs and spaces in indentation
The version numbers may have changed over time; this is normal.

Please note that the path is different in the provided error output from YUM, your OS package manager. The paths indicate 64-bit (x86_64) libraries instead of 32-bit (i386) so it will be necessary to ensure installing only packages that match the hardware architecture.

At the time of writing, the following mirror has both dbus-python and libxml2-python:
Index of /centos/5/os/i386/CentOS
Index of /centos/5/os/x86_64/CentOS

For future reference, when manually downloading a package please always check if there is an update; similar to the above two links the following may also be used:
Index of /centos/5/updates/i386/RPMS
Index of /centos/5/updates/x86_64/RPMS
 

adrianmoya

Registered
Feb 26, 2009
3
0
51
Thanks! Problem solved!

Sorry for the late reply, I just wanted to say that today I checked on the mirrors and solved the problem. Thanks,
 

furquan

Well-Known Member
Jul 27, 2002
473
4
168
Thank you Anand for the post..It helped me too :)
 

Captin Jack

Member
Feb 22, 2011
5
0
51
Apologies for bumping a rather old thread however I came across this issue on my server and applied the above fix. It worked perfectly and fixed the problem. To those that encounter this problem and use the above fix please note that it is an outdated version and you will need to update it. You can do this from within WHM under 'Update System Software' and it will update it to the latest version. I hope this post helps.
 

headout

Well-Known Member
Aug 20, 2003
78
0
156
Code:
 rpm --force -hUv http://centos.mirror.transip.nl/5/os/x86_64/CentOS/dbus-python-0.70-9.el5_4.x86_64.rpm http://centos.mirror.transip.nl/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.el5_5.1.x86_64.rpm
Will do the trick nowaydays. We bumped into this issue, so why not share the fix to the fourm.
 
Status
Not open for further replies.