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? |
run 'yum clean all' on client too.
also, try a yum update on it -- to get a better insight into the error. |
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. |
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. |
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> |
sorry. I meant to type '.repo' file. I'd like to look at the .repo file for your repo.
|
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 |
Quote:
Looks like a simple typo Code:
baseurl-http://10.24.79.112/yum/rhel5 Code:
baseurl=http://10.24.79.112/yum/rhel5 |
Nice catch!
I was just finishing setting this up locally, and thats exactly what errors out. Changing it works fine. :hattip: |
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. |
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. |
Check the /etc/nsswitch.conf on both?
|
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? |
What am I looking for in nsswitch.conf ?
|
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... |
All times are GMT -5. The time now is 12:36 AM. |