yum broken - critical issue

Nishant80

Well-Known Member
May 7, 2012
64
0
56
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:
[email protected] [~]# 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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.