Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repodata folder #3

Open
vishalspatil opened this issue Apr 30, 2015 · 3 comments
Open

repodata folder #3

vishalspatil opened this issue Apr 30, 2015 · 3 comments

Comments

@vishalspatil
Copy link

Hi dtmateo,

Hope you are doing good, I just came across one problem for on my repo server[using dtmrepo]

when we sync from RHSM the repodata folder is created outside the os,optional and supplementary repo.

[root@dtmrepo rhel7s-x86_64]# ls
optional os supplementary

[root@dtmrepo optional]# ls
repodata rhel-7-server-optional-rpms

[root@dtmrepo os]# ls
repodata rhel-7-server-rpms

so when we provide the baseurl in repo file it is unable to find repod.xml

http://dtmrepo.xyz.com/dtmrepo/rhel7s-x86_64/supplementary/rhel-7-server-supplementary-rpms/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

can you let us know where can we tune this parameter in dtmrepo script so that repodata folder is created inside the os,optional and supplemenatry repo folder.

Thanks in advance.

@dtmateojr
Copy link
Owner

Is it able to generate the repo data? Have a look inside repodata and make sure the files are there. Run dtmrepo -fgv if it's empty. Repodata creation may fail if you have broken RPMS. Also make sure that you have the correct SELinux context otherwise do

chcon -R -t httpd_sys_content_t /path/to/your/repo

@vishalspatil
Copy link
Author

yes repodata is generated but its not in the Packages folder
for example the rpms are in "/var/dtmrepo/rhel7s-x86_64/os/rhel-7-server-rpms/Packages" for OS packages but no repodata folder is created in this directory the repodata folder is created in "/var/dtmrepo/rhel7s-x86_64/os" directory so when I provide baseurl path as /var/dtmrepo/rhel7s-x86_64/os/rhel-7-server-rpms it gives error repomd.xml: [Errno 14] HTTP Error 404 - Not Found

my question is that repodata folder in not generated in /var/dtmrepo/rhel7s-x86_64/*****/rhel-7-server-rpms/Packages folder.

Best regards

@dtmateojr
Copy link
Owner

Your client configuration is at fault. It should point to http://server/dtmrepo/rhel7s-x86_64/os

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants