SMART and IPv6
Jani Partanen
jiipee at sotapeli.fi
Sun Aug 9 21:23:31 PDT 2009
Yeah, I was also thinking if it something to do with channel fetched
data and I deleted cache and channel data. No luck.
Okey it's something to do with IPv6 resolving.
curl http://mirror.centos.org/centos/5.3/extras/x86_64/repodata/repomd.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Object not found!</title>
<link rev="made" href="mailto:webmaster at sotapeli.fi" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Object not found!</h1>
<p>
The requested URL was not found on this server.
If you entered the URL manually please check your
spelling and try again.
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:webmaster at sotapeli.fi">webmaster</a>.
</p>
<h2>Error 404</h2>
<address>
<a href="/">mirror.centos.org</a><br />
<span>Apache</span>
</address>
</body>
</html>
That is response from MY webserver, not from centos. :P
Then if I do same command but add -4 switch to use only IPv4, all is
fine, it fetch right page. Is this a actually curl bug rather than smart
bug?
Hmm.. But it does this also if I don't have curl installed. Is it python
bug?
Anders F Björklund wrote:
> Jani Partanen wrote:
>
>> Well I installed python-curl and error is now this:
>> Fetching information for 'CentOS 5.3 - x86_64 - addons'...
>> -> http://mirror.centos.org/centos/5.3/addons/x86_64/repodata/repomd.xml
>> repomd.xml
>> ##################################################################### [
>> 38%]
>> error: Primary information not found in repository metadata for
>> 'CentOS 5.3 - x86_64 - addons'
>
> If you look at the downloaded file (in /var/lib/smart/channels),
> does it look OK - or is it missing data or empty or something ?
>
> If you have old files in there, you might want to remove those.
> In case they were downloaded badly, but with correct timestamp ?
>
> There is also a test case for the smart "fetcher", run it with:
> make test TEST=tests/fetcher.py
>
> You could also try whether cURL works all by itself, by running:
> curl http://mirror.centos.org/centos/5.3/addons/x86_64/repodata/repomd.xml
>
> --anders
>
> PS. Do open a bug report, as well...
> https://bugs.launchpad.net/smart
>
>
More information about the Smart
mailing list