The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

yum-updatesd issue

Discussion in 'General Discussion' started by anand, Apr 28, 2009.

Thread Status:
Not open for further replies.
  1. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    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  ]
    root@avighna [~]# 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.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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.
     
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    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.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    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
     
  5. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    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 ?
     
  6. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Ticket submitted #419746
     
  7. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    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 ###
    root@srv [~]# rpm -q python python-devel
    python-2.4.3-24.el5
    python-devel-2.4.3-24.el5
    root@srv [~]# yum clean all
    Loaded plugins: fastestmirror
    Cleaning up Everything
    Cleaning up list of fastest mirrors
    root@srv [~]#
    ### quote end ###
    
    
    I verified the desired command now works without error:
    root@srv [~]# /etc/init.d/yum-updatesd start
    Starting yum-updatesd: [ OK ]
    root@srv [~]# /etc/init.d/yum-updatesd restart
    Stopping yum-updatesd: [ OK ]
    Starting yum-updatesd: [ OK ]
    root@srv [~]#
    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.
     
  8. adrianmoya

    adrianmoya Registered

    Joined:
    Feb 26, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  9. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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
     
  10. adrianmoya

    adrianmoya Registered

    Joined:
    Feb 26, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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,
     
  11. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    425
    Likes Received:
    0
    Trophy Points:
    16
    Thank you Anand for the post..It helped me too :)
     
  12. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Glad it was of help. I have had this issue again as well, and every time the same solution helped :)
     
  13. Captin Jack

    Captin Jack Member

    Joined:
    Feb 22, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  14. headout

    headout Well-Known Member

    Joined:
    Aug 20, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page