yum repo responding with [Errno 14] HTTP Error 403 - Forbidden
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.
I got it, and it was so simple!
In order to resolve this issue, I had to disable SELinux and reboot the server.
That's it.
It may happen that you don't have the password to reboot the server. It is not possible to disable without a reboot. But the mode can be set to permissive. (for this session only!)
setenforce 0 (changes from enforcing to permissive)
sestatus (to confirm the current mode)
sources:
How to disable selinux
original answer