Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666390 - Malformed XML in mirror list
Summary: Malformed XML in mirror list
Status: RESOLVED FIXED
Alias: None
Product: Mirrors
Classification: Unclassified
Component: Server Problem (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Mirror Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-17 03:25 UTC by Zebulon McCorkle
Modified: 2018-09-17 16:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zebulon McCorkle 2018-09-17 03:25:42 UTC
The mirror list used by mirrorselect (https://api.gentoo.org/mirrors/distfiles.xml) has a comma at line 155 column 37 which shouldn't be there, causing mirrorselect to fail:

livecd /mnt/gentoo # mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf
* Using url: https://api.gentoo.org/mirrors/distfiles.xml
* Downloading a list of mirrors...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/mirrorselect", line 61, in <module>
    MirrorSelect().main(sys.argv)
  File "/usr/lib/python3.6/site-packages/mirrorselect/main.py", line 366, in main
    hosts = self.get_available_hosts(options)
  File "/usr/lib/python3.6/site-packages/mirrorselect/main.py", line 304, in get_available_hosts
    hosts = Extractor(MIRRORS_3_XML, options, self.output).hosts
  File "/usr/lib/python3.6/site-packages/mirrorselect/extractor.py", line 70, in __init__
    self.unfiltered_hosts = self.getlist(parser, list_url)
  File "/usr/lib/python3.6/site-packages/mirrorselect/extractor.py", line 119, in getlist
    parser.parse(mirrorlist)
  File "/usr/lib/python3.6/site-packages/mirrorselect/mirrorparser3.py", line 51, in parse
    for mirrorgroup in ET.XML(text):
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1314, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 155, column 36
Comment 1 Vince C. 2018-09-17 10:20:31 UTC
Disclaimer: I'm not a maintainer.

I've just checked and I suspect the XML is valid, just that there's no mirror in Bulagria, making the file invalid because there's no <mirror/> entry. Fact is that whole section is now commented out. Just my 2ยข.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2018-09-17 16:09:05 UTC
Already fixed.