phpmyadmin vs EPEL

dockeryZ asked:

I am running Centos 6.0 (Final) , the i386 version.

I am trying my hardest to get a decent LAMP Server running, with phpMyAdmin.

I can get everything installed just fine, MySQL, Apache2 (httpd), PHP 5.x, etc…, but when I get to reading some tutorials on installing phpMyAdmin, I fail miserably. Each tutorial I read mentions enabling the EPEL/REMI repo.. As soon as I add this repo I am not able to use yum anymore.

I continue to get this error message

[[email protected] tmp]# yum update
Loaded plugins: aliases, fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/", line 285, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/", line 136, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/", line 434, in doCommands
  File "/usr/lib/python2.6/site-packages/yum/", line 99, in _getTs
  File "/usr/lib/python2.6/site-packages/yum/", line 110, in _getTsInfo
    pkgSack = self.pkgSack
  File "/usr/lib/python2.6/site-packages/yum/", line 887, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.6/site-packages/yum/", line 669, in _getSacks
  File "/usr/lib/python2.6/site-packages/yum/", line 279, in populateSack
  File "/usr/lib/python2.6/site-packages/yum/", line 105, in doSetup'postreposetup')
  File "/usr/lib/python2.6/site-packages/yum/", line 184, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/", line 202, in postreposetup_hook
    all_urls = FastestMirror(all_urls).get_mirrorlist()
  File "/usr/lib/yum-plugins/", line 369, in get_mirrorlist
  File "/usr/lib/yum-plugins/", line 413, in _poll_mirrors
  File "/usr/lib/python2.6/", line 474, in start
    _start_new_thread(self.__bootstrap, ())
thread.error: can't start new thread

It’s driving me insane. I am using a VPS so everytime this happens I am easily able to restart from scratch, but after so many times with the same results I have no clue where I am going wrong.

My answer:

Your (very small, and probably crappy OpenVZ) VPS has run out of memory.

You can try working around this by disabling the (probably strictly unnecessary) yum plugins, to reduce the memory usage:

yum --disableplugin=* update

If that doesn’t get you any farther, you’ll have to stop some services to free up memory.

If you still can’t get anywhere, you’ll have to upgrade your VPS package.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.