LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2009, 08:16 PM   #1
WindleX
LQ Newbie
 
Registered: Aug 2009
Location: Virginia, USA
Distribution: RHEL 5
Posts: 3

Rep: Reputation: 0
Yum update 404 after rpm mirror updates


Hey everbody,

I run a mirror of the RedHat repository on a network at work (no outside connections to the net) and trying to do a regular update yesterday I messed something up. I spent today looking online, checking yum configs, apache config, etc. but couldn't figured out what I goofed, so here goes:


All of my rpms and the repodata directory are in:
Code:
/var/yumRepository/rhel-i386-server-5/getPackage/
When I run:
Code:
yum update
on one of my remote machines it fires up properly, checks for updates and identifies the correct packages, but returns [code][Errno 14] HTTP Error 404 - Note Found[code] when it tries to download each one of the packages.

So far I've figured out it tries to download from a different (wrong) url, but no reason why it is changing urls / where the wrong one is coming from:

Code:
It should be hitting: 

http://<my ip>/repo/rhel-i386-server-5/getPackage/<file>.rpm

But it is hitting: 

http://<my ip>/repo/rhel-i386-server-5/getPackage/var/update/os/Server/rhel-i386-server-5/getPackage/<file>.rpm
I can't find where the extra stuff in the url for the update (it can't be there when it checks for updates since it finds the correct packages to update right?) is getting pulled from for the update. I'm thinking it must be a problem on my mirror, since I made the changes there (deleted the repodata directory, yum clean all, and redid createrepo twice) and I have an identical problem on all my remote machines.

Well, thanks everybody who took the time to read this far I'll try and provide any information someone needs if I left something out, but unless I remember it of the top of my head it may have to wait until tomorrow (no net connection).

Thanks,
WindleX
 
Old 08-18-2009, 09:22 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
what is the address that is in your /etc/yum.d.repo/local.repo file

are they pointing to the correct address

var/update looks like it is the folder on the server but each box is adding is to the yum address

did you make any chances to a dns server or a local apache httpd.conf ( url rewrite )

but seeing this could be anything from a simple fix( 1 hour ) to one buried deep in some conf file ( that will take 14 days to find ) ???

in your local.repo file it points to the repo mirror list . IS that correct . is it static or dynamic ( wrote by mysql) if mysql then is that correct .
 
Old 08-18-2009, 09:54 PM   #3
WindleX
LQ Newbie
 
Registered: Aug 2009
Location: Virginia, USA
Distribution: RHEL 5
Posts: 3

Original Poster
Rep: Reputation: 0
On each machine i have /etc/yum.d.repos/mirror.repo. They all have

Code:
baseurl=http://<my ip>/rhel-i386-server-5/getPackage/
I didn't change anything in the httpd.conf file and the urls all use ip addresses so no dns servers are involved. And all the addresses are static.

I'll grab the urls from all the .repo and yum.conf files tomorrow though, thanks for the input.

Last edited by WindleX; 08-19-2009 at 08:25 AM. Reason: missing info
 
Old 08-19-2009, 08:42 AM   #4
WindleX
LQ Newbie
 
Registered: Aug 2009
Location: Virginia, USA
Distribution: RHEL 5
Posts: 3

Original Poster
Rep: Reputation: 0
When I was going through each machine cleaning up the .repo files (deleting old/unused repos and checking the urls in the used ones) grabbing the info for you, it dawned on me to do a

Code:
yum clean metadata  -- all would have worked too
on the remote machines. After that finished I ran the update and it worked no problem.

----------

When I had untar'd the latest rpms into the repository the other day, the tarball someone gave me had a bunch of other junk in it (must have been that extra stuff in the url) and that messed up the updates. I then went back and cleaned up the file structure in the repo, so all the rpms were under /getPackage/, but the metadata on the remote machines was already corrupted. Then my day long journey through config files, firewall logs, etc started....

I'm actually kind of embarassed about it , and if I had been paying attention to start with and not dorked up the directory structure in my repo nothing would have happened. But, I figured I'd go ahead and post what it was incase anyone was curious.

Anyway, thanks for helping out John. You got me headed in a direction that somehow made me figure it out

-WindleX
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
# yum --enablerepo=updates-testing update ./kdelibs-4.0.5-2.fc9.i386.rpm 'kde*' cfo Linux - Newbie 2 06-17-2008 04:08 PM
yum update asking for mirror-- how to set in Fedora 9? mbvpixies78 Linux - Newbie 6 05-26-2008 02:38 AM
yum update not getting updates glowe Linux - Software 7 02-24-2007 10:53 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
Setting up YUM to update from local mirror klnasveschuk Fedora 3 04-21-2005 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration