Wired python error - yum destroyed - Nothing working

rohit09

Well-Known Member
Dec 10, 2010
61
0
56
See this

Code:
[[email protected] ~]# yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   librpm-4.4.so: cannot open shared object file: Too many open files in system

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, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq


[[email protected] ~]#
I have no clue what to do. I tried everything I can.

Help me.
 

rohit09

Well-Known Member
Dec 10, 2010
61
0
56
[[email protected] ~]# python
Python 2.4.3 (#1, Sep 21 2011, 19:55:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yum
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 23, in ?
import rpm
File "/usr/lib64/python2.4/site-packages/rpm/__init__.py", line 7, in ?
from _rpm import *
ImportError: libpopt.so.0: cannot open shared object file: Too many open files in system
>>>
Tried these too.. but no luck :(
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

This is the applicable error:

cannot open shared object file: Too many open files in system
Are you using a dedicated or a VPS server? If it's a VPS, is it Virtuozzo or OpenVZ based? You are hitting a system limit and that limit needs to be increased. Knowing what particularly would be related to what kind of system you are using.

Thanks!