Yum wont run because of limits?

gkgcpanel

Well-Known Member
Jun 6, 2007
214
1
166
cPanel Access Level
DataCenter Provider
Just had an interesting issue... Wonder if anyone can shed some light on this.

One of our VPS servers has had the yum updates broken for the past couple of days.
We are trying to install a package and got the following:

Code:
# yum install osad
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

************/usr/lib64/python2.4/lib-dynload/datetime.so: 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.4.3 (#1, Jun 18 2012, 08:55:23)
This would (actually has) prevent security fixes as well.

Running the following:

Code:
ulimit -m unlimited -d unlimited -v unlimited
fixes the problem and yum is working again.

So what limits would cause the above problem?