LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2011, 01:17 PM   #1
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Rep: Reputation: 0
YUM Local Repository Problem


I have a local YUM repository setup using httpd and it works great with one client.

I added another client and when I run the yum repolist, I get an error "Temporary failure in name resolution"

Both client and server are included in one another's hosts file, they can ping each other.

I ran a createrepo . and then a yum clean all on the server side.
restarted the httpd service.
Rebooted -- Still no luck --

The resolv.conf file is the same as the "working client"

Any suggestions?
 
Old 03-04-2011, 01:43 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,184

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
run 'yum clean all' on client too.

also, try a yum update on it -- to get a better insight into the error.
 
Old 03-04-2011, 01:51 PM   #3
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
Here's a dump of the output after doing your suggestions

Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
Temporary failure in name resolution
odin |951 B 00:00
odin/primary |352kB 00:00
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update.
 
Old 03-04-2011, 02:03 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,184

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
make sure that server can ping client by hostname, and vice versa.

Anything in /var/log/messages? /var/log/yum.log?

post the repo.xml file for this repo please, from the client that works, and the client that does not work.
 
Old 03-04-2011, 02:21 PM   #5
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
here you go

Repo.xml of no -worky
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">318f908c7e359c7537e8fd18584d34a78371778e</checksum>
<timestamp>1299170859</timestamp>
<open-checksum type="sha">ecfaf3f3d238c63c1132e8ae7dabaefaf6eeca5d</open-checksum>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">8db118b8357d1c8f984bd0b56bf49ec59b3aedaa</checksum>
<timestamp>1299170859</timestamp>
<open-checksum type="sha">455d5476e102db36c875458c94a5958069be27be</open-checksum>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">647640f51a0c63f64623396a02fa4b07e82d404e</checksum>
<timestamp>1299170859</timestamp>
<open-checksum type="sha">eab5a2ff4826ae0ab34d0e6515595254cfa77a4a</open-checksum>
</data>
</repomd>


Copy of the repo.xml "worky"
<?xml version="1.0" encoding="UTF-8"?>
<repomd xmlns="http://linux.duke.edu/metadata/repo">
<data type="other">
<location href="repodata/other.xml.gz"/>
<checksum type="sha">933b9f24c098c77a566423c19be142c7cbbaee5f</checksum>
<timestamp>1299165555</timestamp>
<open-checksum type="sha">ecfaf3f3d238c63c1132e8ae7dabaefaf6eeca5d</open-checksum>
</data>
<data type="filelists">
<location href="repodata/filelists.xml.gz"/>
<checksum type="sha">3076d2890ac786463d0add0c6f3ee135de66bce7</checksum>
<timestamp>1299165555</timestamp>
<open-checksum type="sha">455d5476e102db36c875458c94a5958069be27be</open-checksum>
</data>
<data type="primary">
<location href="repodata/primary.xml.gz"/>
<checksum type="sha">2930aeba811ba0ee3978cb7cb5762c8fa3843cfc</checksum>
<timestamp>1299165555</timestamp>
<open-checksum type="sha">eab5a2ff4826ae0ab34d0e6515595254cfa77a4a</open-checksum>
</data>
</repomd>
 
Old 03-04-2011, 02:33 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,184

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
sorry. I meant to type '.repo' file. I'd like to look at the .repo file for your repo.
 
Old 03-08-2011, 10:39 AM   #7
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
Here is the .repo on the SERVER side -- (I call it file.repo)

[rhel5]
name=rhel5
baseurl=file///var/www/html/yum/rhel5
enabled=1
gpgcheck=0

==============================
On the CLIENT Side .repo file is (I call it my.repo)

[rhel5]
name=rhel5
baseurl-http://10.24.79.112/yum/rhel5
enabled=1
gpgchecked=0
 
Old 03-08-2011, 11:17 AM   #8
mikey99
Member
 
Registered: Nov 2008
Location: UK
Distribution: RHEL, Fedora
Posts: 68

Rep: Reputation: 12
Quote:
Originally Posted by vintage2010 View Post
Here is the .repo on the SERVER side -- (I call it file.repo)

[rhel5]
name=rhel5
baseurl=file///var/www/html/yum/rhel5
enabled=1
gpgcheck=0

==============================
On the CLIENT Side .repo file is (I call it my.repo)

[rhel5]
name=rhel5
baseurl-http://10.24.79.112/yum/rhel5
enabled=1
gpgchecked=0

Looks like a simple typo

Code:
baseurl-http://10.24.79.112/yum/rhel5
should be

Code:
baseurl=http://10.24.79.112/yum/rhel5
       ^
 
Old 03-08-2011, 11:22 AM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,184

Rep: Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585Reputation: 1585
Nice catch!

I was just finishing setting this up locally, and thats exactly what errors out. Changing it works fine.

 
Old 03-08-2011, 02:01 PM   #10
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
I wish I could say that it was a simple typo but on the client-side it's actually has that -- It was a typo in the this forum.
Just to re-cap -- I have two clients setup wit the same repo file, one works while the other doesn't.
 
Old 03-08-2011, 03:36 PM   #11
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
So I'm reading a little more about this issue and it appears to be a dns problem.

I have no internet connection. I'm on a 8-port switch. in the etc/resolv.conf I have search localhost. this is the same as the other client as well

EXCEPT that the client that is not working resolv.conf is being powered by /sbin/dhclient-script while the working one is powered by NetworkManager.

Don't know if this makes difference just trying to get as much information as I can...

On the server side etc/resolv.conf it is also powered by NetworkManager
It does not have search localhost in this file.
 
Old 03-08-2011, 08:21 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,345

Rep: Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365Reputation: 2365
Check the /etc/nsswitch.conf on both?
 
Old 03-08-2011, 08:28 PM   #13
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
From the client, can you do the following:
ping 10.24.79.112
lynx http://10.24.79.112/yum/rhel5

Anything in the Apache logs on the server that would be helpful?
Or anything in /var/log/messages like SElinux warnings?
 
Old 03-09-2011, 01:30 PM   #14
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
What am I looking for in nsswitch.conf ?
 
Old 03-09-2011, 01:31 PM   #15
vintage2010
Member
 
Registered: Nov 2010
Location: Ohio
Distribution: RHEL 5
Posts: 52

Original Poster
Rep: Reputation: 0
Stickman --

From the client, can you do the following:

ping 10.24.79.112 -- confirmed -- replies
lynx http://10.24.79.112/yum/rhel5 -- I can see the file all the packages.

Logs files -- Nothing sticks out...
 
  


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
Local YUM repository problem wegadnie Linux - Server 3 12-19-2008 11:33 PM
yum local repository rames2075 Linux - Enterprise 2 10-25-2008 08:16 AM
local yum repository tombolio Linux - Newbie 4 09-11-2008 07:28 PM
Problem creating local Yum Repository DirkDiggler Linux - Software 1 05-25-2007 12:04 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM


All times are GMT -5. The time now is 08:39 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration