I was trying to make my own yum repository and I have it set up on a server but I can't get my other system to connect to it. On the host machine the repository works fine but not over a network.
Here is the repo file on the client side
[danny_repo]
name=daniel_repo_client
baseurl=http://10.1.12.101/var/www/html/two/
enabled=1
This is what I get when I run yum list
yum list
http://10.1.12.101/var/www/html/two/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article
https://access.redhat.com/articles/1320623
If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/
One of the configured repositories failed (daniel_repo_client),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=danny_repo ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable danny_repo
or
subscription-manager repos --disable=danny_repo
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=danny_repo.skip_if_unavailable=true
failure: repodata/repomd.xml from danny_repo: [Errno 256] No more mirrors to try.
http://10.1.12.101/var/www/html/two/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Host side where the repomd.xml
-rw-r--r--. 1 root root 7536 Jul 14 10:42 2fb9e92e20c17dae2d89c006d9d41a91224440921f08de8a73341eb22d730463-filelists.sqlite.bz2
-rw-r--r--. 1 root root 1889 Jul 14 10:42 35321ecbdd2465cad825c95e10671c40de7cf7147c980efa9c420f6301bd146e-primary.xml.gz
-rw-r--r--. 1 root root 4942 Jul 14 10:42 39c49b1f56e5049c57c034ba560ff7bc88c51771dfe75dde80e4900ef75c5bcd-primary.sqlite.bz2
-rw-r--r--. 1 root root 1952 Jul 14 10:42 6036a3f461cdd4c15282cfb8a757216b744b9dbf65fabbcfb0d9c8ebccdcf468-other.sqlite.bz2
-rw-r--r--. 1 root root 1132 Jul 14 10:42 b045a7264ac97c81e38e5c0aa7b31f4ac25d50117ab911ecf0b3544a9a2bb463-other.xml.gz
-rw-r--r--. 1 root root 6446 Jul 14 10:42 e0c036bd9bf2431a0e85b35e447b6a5985f84a5a316e7f0b2c463c864a13c6f6-filelists.xml.gz
-rwxrwxrwx. 1 root root 2972 Jul 14 10:42 repomd.xml
[root@repo-host repodata]# pwd
/var/www/html/two/repodata
Yum failure: repodata/repomd.xml 404
Re: Yum failure: repodata/repomd.xml 404
It's unlikely your URL will have /var/www/html in it unless you have left the Apache httpd docroot as /var/www/html and then created a subdirectory called /var/www/html/var/www/html with your repodata directory under that. If your server directory is /var/www/html/two then it's much more likely that you should be accessing it as http://x.x.x.x/two/
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Yum failure: repodata/repomd.xml 404
Did you run createrepo --update on danny_repo?
Did you ensure that the HTTP server can access all the files (so if subtree is owned as root:root, o+rx on directories and o+r on files)?
Did you ensure that the HTTP server can access all the files (so if subtree is owned as root:root, o+rx on directories and o+r on files)?
Re: Yum failure: repodata/repomd.xml 404
Thank you That work changing the url to take out /var/www/html work.TrevorH wrote:It's unlikely your URL will have /var/www/html in it unless you have left the Apache httpd docroot as /var/www/html and then created a subdirectory called /var/www/html/var/www/html with your repodata directory under that. If your server directory is /var/www/html/two then it's much more likely that you should be accessing it as http://x.x.x.x/two/