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 broken - critical issue

Discussion in 'General Discussion' started by Nishant80, Jul 1, 2013.

  1. Nishant80

    Nishant80 Well-Known Member

    Joined:
    May 7, 2012
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,
    I am not sure what exactly happened, but I am not able to run yum. Whenever I do anything that starts with yum, it will throw this error:

    Code:
    root@server [~]# yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:
    
       libsasl2.so.2: failed to map segment from shared object: Cannot allocate memory
    
    Please install a package which provides this module, or
    verify that the module is installed correctly.
    
    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.6.6 (r266:84292, Feb 22 2013, 00:00:18) 
    [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
    
    If you cannot solve this problem yourself, please go to 
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq
    
    I reckon someone told me that it is a memory issue, however the server has 24GB RAM and hardly 5GB is being used right now. Your guidance is highly appreciated.

    Thanks.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,833
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I have seen instances where this issue is resolved by temporarily disabling the virtual memory limit on the OS with the following command:

    Code:
    ulimit -v unlimited
    Thank you.
     
Loading...

Share This Page