HTTP Error 404
Clark, Bret
Bret.Clark at nielsen.com
Wed Jul 11 22:17:04 CEST 2007
All,
I was trying before (I no longer need to do it, I'd just
like to find out why my request was failing...) to do a "yum update" to
the ayo.freshrpms.net repository site, like this (with yum output):
[root at deepblue clarkbt]# yum -y --disablerepo=updates-released
--disablerepo=base --disablerepo=extras update
Setting up Update Process
Setting up repositories
http://ayo.freshrpms.net/fedora/linux/4/i386/freshrpms/repodata/repomd.x
ml: [Errno 4] IOError: HTTP Error 404: Date: Wed, 11 Jul 2007 19:54:46
GMT
Server: Apache/2.0.52 (Red Hat)
Content-Length: 331
Connection: close
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
Cannot open/read repomd.xml file for repository: freshrpms
failure: repodata/repomd.xml from freshrpms: [Errno 256] No more mirrors
to try.
Here is my yum.conf and freshrpms.repo files:
yum.conf:
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
proxy=http://www-gateway.haha.com:8080/
proxy_username=not-original-username
proxy_password=not-original-password
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
freshrpms.repo:
# $Id: freshrpms.repo 3341 2005-06-28 18:40:26Z thias $
[freshrpms]
name=Fedora Core $releasever - $basearch - Freshrpms
baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/fres
hrpms/
mirrorlist=http://ayo.freshrpms.net/fedora/linux/$releasever/mirrors-fre
shrpms
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-freshrpms
gpgcheck=1
I had also ensured that I had set up the http_proxy and HTTP_proxy
environment variables in root's environment, using this .profile file
for root:
# NOTE:!!!!!! The trailing slash, after the port 8080, is absolutely
necessary. Don't leave it out.
export
HTTP_PROXY="http://not-original-domain\not-original-username:not-origina
l-password at www-gateway.haha.com:8080/"
export
http_proxy="http://not-original-domain\not-original-username:not-origina
l-password at www-gateway.haha.com:8080/"
(Our web proxy server is a Microsoft proxy server, so it uses Microsoft
domains in its authentication, therefore the domain in the proxy url.)
So, I am getting a HTTP Error 404 (Not Found) error from the repository
with my freshrpms.repo repo file. I have heard that my version of
Fedora (FC 4) may not be supported currently any longer at third-party
repositories, so I also tried replacing $releasever in my baseurl line
in my freshrpms.repo file with version 7 for FC 7, thinking that surely
FC 7 would be supported. I then got the same HTTP Error 404 error.
Thinking that maybe the linux wget command would give me more
information, I ran this command:
[root at deepblue ~]$ wget -S -d
http://ayo.freshrpms.net/fedora/linux/4/i386/freshrpms/repodata/repomd.x
ml
DEBUG output created by Wget 1.9+cvs-stable (Red Hat modified) on
linux-gnu.
--16:09:50--
http://ayo.freshrpms.net/fedora/linux/4/i386/freshrpms/repodata/repomd.x
ml
=> `repomd.xml'
Resolving www-gateway.nielsenmedia.com... 10.38.10.175
Caching www-gateway.nielsenmedia.com => 10.38.10.175
Connecting to www-gateway.nielsenmedia.com[10.38.10.175]:8080...
connected.
Created socket 3.
Releasing 0x8510a58 (new refcount 1).
---request begin---
GET
http://ayo.freshrpms.net/fedora/linux/4/i386/freshrpms/repodata/repomd.x
ml HTTP/1.0
User-Agent: Wget/1.9+cvs-stable (Red Hat modified)
Host: ayo.freshrpms.net
Accept: */*
Proxy-Authorization: Basic not-original-authentication-string
---request end---
Proxy request sent, awaiting response... HTTP/1.1 404 Not Found
Date: Wed, 11 Jul 2007 20:10:21 GMT
2 Date: Wed, 11 Jul 2007 20:10:21 GMTServer: Apache/2.0.52 (Red Hat)
3 Server: Apache/2.0.52 (Red Hat)Content-Length: 331
4 Content-Length: 331Connection: close
5 Connection: closeContent-Type: text/html; charset=iso-8859-1
6 Content-Type: text/html; charset=iso-8859-1
Closing fd 3
16:09:50 ERROR 404: Not Found.
So, wget is also returning the same HTTP Error 404 error for the
repomd.xml file. Now when I browse to this file in my mozilla browser, I
find it just fine, and also all the parent directories to the file.
>From the wget output, it looks to me like the proxy server
authentication succeeds, so I'm wondering, what am I doing wrong here?
Why am I getting the HTTP Error 404 error?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.egwn.net/pipermail/freshrpms-list/attachments/20070711/2eb0b009/attachment.html
More information about the freshrpms-list
mailing list