Red Hat Bugzilla – Bug 491634
anaconda fails to download repomd.xml because of missing /etc/hosts
Last modified: 2009-03-25 13:13:09 EDT
With 2009-03-22 rawhide, http installs are failing to download repomd.xml
With this patch:
def urlgrabberFailureCB (self, obj, *args, **kwargs):
- log.warning("Try %s/%s for %s failed" % (obj.tries, obj.retry, obj.url))
+ log.warning("Try %s/%s for %s failed: %s" % (obj.tries, obj.retry, obj.url, obj.exception))
the error I was seeing is:
Try 1/10 for http://ftp.heanet.ie/mirrors/fedora/linux/development/x86_64/os/repodata/repomd.xml failed: [Errno 4] IOError: <urlopen error [Errno 2] No such file or directory>
Downloading the url with wget works fine from the anaconda shell
Running strace the only interesting thing I could see was:
open("/etc/hosts", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
Sure enough, no /etc/hosts exists and touching it before retrying makes the install proceed just fine.
Can you attach /tmp/anaconda.log to this bug report?
Created attachment 336305 [details]
Okay, I just reproduced - here's the log
At around 15:15 in the log I touched /etc/hosts and hit Retry
Should be working in the next build of anaconda, which should be the F-11 beta release.
For reference, the fix was:
Confirmed fixed with 20090325 rawhide