I also had this problem recently, and it was SELinux that caused it. I tried to send a post-commit subversion campaign to notify Jenkins that the code had changed, so Jenkins built and deployed Nexus.
I needed to do the following to make it work.
1) First I checked if SELinux is enabled:
less /selinux/enforce
This will result in output 1 (for turning on) or 0 (for turning off)
2) Temporarily disable SELinux:
echo 0 > /selinux/enforce
Now check if it works now.
3) Enable SELinux:
echo 1 > /selinux/enforce
Change the policy for SELinux.
4) First view the current configuration:
/usr/sbin/getsebool -a | grep httpd
This will give you: httpd_can_network_connect -> off
5) Turn this feature on, and your post commit will work with SELinux:
/usr/sbin/setsebool -P httpd_can_network_connect on
Now it should work again.
user2169568 Mar 14 '13 at 11:52 2013-03-14 11:52
source share