I am trying to set up a YUM repository containing some RPM packages from our nightly Jenkins build.
The YUM repo resides on the Jenkins server in a repository folder [path to repo]/jenkins-nightly-build/[release name]-repo
. After all the jobs are completed they are placed in the repo. Finally, the repository metadata is updated.
However, when I try to update another machine, the repository responds with
[Errno 14] HTTP Error 403 - Forbidden
.
Here is the .repo file that resides on the client machine:
[jenkins-nightly]
name=jenkins-nightly
baseurl=http://[hostname]/jenkins-nightly-build/[release name]-repo
gpgcheck=0
enabled=1
As you can see, the .repo file is pretty straight forward. I have tried yum clean all
, and yum repolist
does print the appropriate repo. All of the expected packages are printed and downloads are attempted when yum update
is called. For some reason, the client does not have any access.
Is there some other configuration file I need to edit? Could Apache, which was installed for Jenkins, be interfering with the YUM repository? Please help!!! Let me know if any more information is needed.
$baseurl
in a web browser? If not, it's probably the permissions of the files and not a Yum configuration problem. Your script may need to set a less restrictive umask prior to building the RPM, or use setgid on the repo directory so that the web server has permission to the files.$baseurl
in a web browser, and from there I can even download files out of therepodata
directory. Any time I try to download an RPM package, however, I am met with403
. The Apache user has read/write/execute privileges in those directories.curl
of$baseurl
look like?