This discussion is archived
12 Replies Latest reply: Mar 10, 2013 10:27 AM by Dude! RSS

up2date http forbidden error when trying to use local yum repository

995861 Newbie
Currently Being Moderated
I have recently set up a local yum repository according to the directions in the document located at http://www.oracle.com/technetwork/articles/servers-storage-admin/yum-repo-setup-1659167.html

Now, when I run up2date -u, I get the following output:

There was a fatal error communicating with the server. The message was:

An HTTP error occurred:
URL: http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
Status Code: 403
Error Message: Forbidden

Thinking this was a problem with my repository or web server setup, I used wget to download the header.info file mentioned in the error, but this works perfectly as shown from the output below:

# wget http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
--2013-03-09 19:05:19-- http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
Resolving us1lxmgt1... 159.234.2.1
Connecting to us1lxmgt1|159.234.2.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1510242 (1.4M) [text/plain]
Saving to: `header.info'

100%[==============================================================================================================================================>] 1,510,242 --.-K/s in 0.06s

2013-03-09 19:05:19 (23.6 MB/s) - `header.info' saved [1510242/1510242]

Running up2date with no options yields the following:

An error has occurred:
exceptions.KeyError
See /var/log/up2date for more information

and /var/log/up2date contains:

[Sat Mar  9 19:06:33 2013] up2date File "/usr/share/rhn/up2date_client/gui.py", line 1331, in onChannelsPagePrepare
values.append(channel['NAME'])
File "/usr/share/rhn/up2date_client/rhnChannel.py", line 48, in __getitem__
return self.dict[item]

[Sat Mar  9 19:06:40 2013] up2date availablePackageList from network
[Sat Mar  9 19:06:40 2013] up2date
An HTTP error occurred:
URL: http://us1lxmgt1/yum/EnterpriseLinux/EL5/latest/x86_64//headers/header.info
Status Code: 403
Error Message: Forbidden

Any ideas what might be going wrong?

Thanks

Edited by: tafairch on Mar 9, 2013 4:09 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points