While trying to install gentoo using install CD: livecd gentoo # mirrorselect -s 5 -b 10 -t 3 -D -H -4 -o >> /mnt/gentoo/etc/portage/make.conf * Using url: https://api.gentoo.org/mirrors/distfiles.xml * Limiting test to http hosts. * Downloading a list of mirrors... Got 192 mirrors. * Downloading mirrorselect-test files from each mirror... [52 of 90]Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/mirrorselect", line 61, in <module> MirrorSelect().main(sys.argv) File "/usr/lib64/python2.7/site-packages/mirrorselect/main.py", line 375, in main urls = self.select_urls(hosts, options) File "/usr/lib64/python2.7/site-packages/mirrorselect/main.py", line 324, in select_urls selector = Deep(hosts, options, self.output) File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 226, in __init__ self.deeptest() File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 253, in deeptest mytime, ignore = self.deeptime(host, maxtime) File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 305, in deeptime addr_family, socket.SOCK_STREAM, 0, socket.AI_ADDRCONFIG): File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 199, in timeout_handler raise TimeoutException() mirrorselect.selectors.TimeoutException livecd gentoo #
Same issue: # mirrorselect -s3 -D * Using url: https://api.gentoo.org/mirrors/distfiles.xml * Downloading a list of mirrors... Got 192 mirrors. * Downloading mirrorselect-test files from each mirror... [146 of 192]Traceback (most recent call last): File "/usr/lib64/python3.4/site-packages/mirrorselect/selectors.py", line 305, in deeptime addr_family, socket.SOCK_STREAM, 0, socket.AI_ADDRCONFIG): File "/usr/lib64/python3.4/socket.py", line 530, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python-exec/python3.4/mirrorselect", line 61, in <module> MirrorSelect().main(sys.argv) File "/usr/lib64/python3.4/site-packages/mirrorselect/main.py", line 375, in main urls = self.select_urls(hosts, options) File "/usr/lib64/python3.4/site-packages/mirrorselect/main.py", line 324, in select_urls selector = Deep(hosts, options, self.output) File "/usr/lib64/python3.4/site-packages/mirrorselect/selectors.py", line 226, in __init__ self.deeptest() File "/usr/lib64/python3.4/site-packages/mirrorselect/selectors.py", line 253, in deeptest mytime, ignore = self.deeptime(host, maxtime) File "/usr/lib64/python3.4/site-packages/mirrorselect/selectors.py", line 305, in deeptime addr_family, socket.SOCK_STREAM, 0, socket.AI_ADDRCONFIG): File "/usr/lib64/python3.4/site-packages/mirrorselect/selectors.py", line 199, in timeout_handler raise TimeoutException() mirrorselect.selectors.TimeoutException
# mirrorselect -s5 -b10 -o -D * Using url: https://api.gentoo.org/mirrors/distfiles.xml * Downloading a list of mirrors... Got 186 mirrors. * Downloading mirrorselect-test files from each mirror... [58 of 186]Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/mirrorselect", line 61, in <module> MirrorSelect().main(sys.argv) File "/usr/lib64/python2.7/site-packages/mirrorselect/main.py", line 375, in main urls = self.select_urls(hosts, options) File "/usr/lib64/python2.7/site-packages/mirrorselect/main.py", line 324, in select_urls selector = Deep(hosts, options, self.output) File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 226, in __init__ self.deeptest() File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 253, in deeptest mytime, ignore = self.deeptime(host, maxtime) File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 305, in deeptime addr_family, socket.SOCK_STREAM, 0, socket.AI_ADDRCONFIG): File "/usr/lib64/python2.7/site-packages/mirrorselect/selectors.py", line 199, in timeout_handler raise TimeoutException() mirrorselect.selectors.TimeoutException Same here. Unable to finish the scanning to get mirrors for rotation.
same here mirrorselect -s3 -b10 -o -D >> /etc/portage/make.conf * Using url: https://api.gentoo.org/mirrors/distfiles.xml * Downloading a list of mirrors... Got 185 mirrors. * Downloading mirrorselect-test files from each mirror... [26 of 185]Traceback (most recent call last): File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 305, in deeptime addr_family, socket.SOCK_STREAM, 0, socket.AI_ADDRCONFIG): socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python-exec/python3.3/mirrorselect", line 61, in <module> MirrorSelect().main(sys.argv) File "/usr/lib64/python3.3/site-packages/mirrorselect/main.py", line 375, in main urls = self.select_urls(hosts, options) File "/usr/lib64/python3.3/site-packages/mirrorselect/main.py", line 324, in select_urls selector = Deep(hosts, options, self.output) File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 226, in __init__ self.deeptest() File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 253, in deeptest mytime, ignore = self.deeptime(host, maxtime) File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 305, in deeptime addr_family, socket.SOCK_STREAM, 0, socket.AI_ADDRCONFIG): File "/usr/lib64/python3.3/site-packages/mirrorselect/selectors.py", line 199, in timeout_handler raise TimeoutException() mirrorselect.selectors.TimeoutException
problem for me is option -D works fine without it. myconexion is Download ~8.52 Mbps Upload 0,87 Mbps. would this have anything to do with : Bug 503638 ?
well just increasing the timeout from default 10secondes to 20 solve the issue mirrorselect -s3 -b10 -o -D -t20 may this should be a default still think mirrorselect shouldn't raise a mirrorselect.selectors.TimeoutException and be able to finish its task
*** Bug 599616 has been marked as a duplicate of this bug. ***
(In reply to jms from comment #5) > well just increasing the timeout from default 10secondes to 20 solve the > issue > mirrorselect -s3 -b10 -o -D -t20 Yeah that makes sense, because it seems that with the default 10 second timeout, TimeoutException sometime triggers while the socket.gaierror is being handled. It's a race-condition.
Created attachment 453268 [details, diff] deeptime: cancel alarm signal before handling socket.error In order to avoid a race condition, the alarm signal must be cancelled before socket.error is handled.
Thanks Zac, patch looks good. Can you push it?
Pushed: https://gitweb.gentoo.org/proj/mirrorselect.git/commit/?id=613bb0efeebe6461b37df6baa862f4a3e67c94c7
for those of that wish to get this fix right away: emerge =app-portage/mirrorselect-9999 or add the attached patch to /etc/portage/patches/app-portage/mirrorselect/ and re-emerge the latest version.
This bug is trivial to fix Please can someone with access edit the source of https://api.gentoo.org/mirrors/distfiles.xml The lines below need the </url> replacing with </uri> <uri protocol="http" ipv4="y" ipv6="y" partial="n">http://mirror.dkm.cz/gentoo/</url> <uri protocol="http" ipv4="y" ipv6="y" partial="n">https://mirror.dkm.cz/gentoo/</url> <uri protocol="ftp" ipv4="y" ipv6="y" partial="n">ftp://mirror.dkm.cz/gentoo/</url>
(In reply to Chris Wood from comment #12) > This bug is trivial to fix > Please can someone with access edit the source of > https://api.gentoo.org/mirrors/distfiles.xml > > The lines below need the </url> replacing with </uri> > <uri protocol="http" ipv4="y" ipv6="y" > partial="n">http://mirror.dkm.cz/gentoo/</url> > <uri protocol="http" ipv4="y" ipv6="y" > partial="n">https://mirror.dkm.cz/gentoo/</url> > <uri protocol="ftp" ipv4="y" ipv6="y" > partial="n">ftp://mirror.dkm.cz/gentoo/</url> My mistake this is another bug with similar output
This was released in mirrorselect-2.2.3.