[Reprinted] The yum-fastmirror plug-in error in centos

Source: Internet
Author: User
Tags vps

ErrorCode:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Traceback (most recent call last ):
File "/usr/bin/yum", Line 29, in yummain. user_main (SYS. argv [1:], exit_code = true)
File "/usr/share/Yum-cli/yummain. py", line 309, in user_main errcode = Main (ARGs)
File "/usr/share/Yum-cli/yummain. py", line 178, in main result, resultmsgs = base. docommands ()
File "/usr/share/Yum-cli/CLI. py", line 345, in docommands self. _ getts (needtsremove)
File "/usr/lib/python2.4/Site-packages/Yum/depsolve. py", line 101, in _ gettsself. _ gettsinfo (remove_only)
File "/usr/lib/python2.4/Site-packages/Yum/depsolve. py", line 112, in _ gettsinfopkgsack = self. pkgsack
File "/usr/lib/python2.4/Site-packages/Yum/_ init __. PY ", line 661, in pkgsack = property (fget = Lambda self: Self. _ getsacks (),
File "/usr/lib/python2.4/Site-packages/Yum/_ init _. py", line 501, in _ getsacksself. Repos. populatesack (which = repos)
File "/usr/lib/python2.4/Site-packages/Yum/repos. py", line 232, in populatesackself. dosetup ()
File "/usr/lib/python2.4/Site-packages/Yum/repos. py", line 79, in dosetupself. ayum. plugins. Run ('postreposetup ')
File "/usr/lib/python2.4/Site-packages/Yum/plugins. PY ", Line 179, in runfunc (conducting Cls (self, self. base, Conf, ** kwargs ))
File "/usr/lib/Yum-plugins/fastestmirror. py", line 181, in postreposetup_hookall_urls = fastestmirror (all_urls). get_intolist ()
File "/usr/lib/Yum-plugins/fastestmirror. py", line 333, in get_mirrorlistself. _ poll_mirrors ()
File "/usr/lib/Yum-plugins/fastestmirror. py", line 376, in _ poll_?spollthread.start ()
File "/usr/lib/python2.4/threading. py", line 416, in start_start_new_thread (self. _ Bootstrap ,())
Thread. Error: Can't start new thread

The solution on the internet is:

Yum clean all
Rm-F/var/lib/RPM/_ DB *
Rpm-rebuilddb
Yum update

If you try again, just disable fastestmirror:
VI/etc/Yum/pluginconf. d/fastestmirror. conf
Enabled = 1 to 0

Failed to modify the maxthreads value of fastestmirror. conf.

Attached is the fastestmirror plug-in introduction:
Using Yum simplifies system software updates. To ensure continuous update, multiple mirror addresses are usually provided for download.
The download speed varies greatly. Selecting to download software packages from an appropriate image will greatly affect the update speed. Take centos as an example. You can use a plug-in named fastestmirror
During the update, the ping value is used to determine and then download from the fastest response address.

Update1: the cause of the problem found on the Internet. The solution is similar to the preceding one.

Basically this issue is rare to see, it's a memory resource issue with the VPs which is caused by Yum'sFastestmirrorPlugin. This issue can be repeated when the following two conditions are met:

1, you're running VPs, for example in an openvz virtual server.
2, there's a MySQL instance running in this vritual server already.

This is a reported bug which had been fixed two months ago.

As we know the exactly reason for this error, there're two ways to bypass it:
1. Stop the MySQL instance and runYumAgain.
2, disable Yum's fastestmirror plugin when start yum, like this:

Code:
 
Yum -- disableplugin = fastestmirror update
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.