jfrog / bamboo-artifactory-plugin

Atlassian Bamboo plugin that enables traceable build artifacts with Artifactory
https://plugins.atlassian.com/plugin/details/27818
Apache License 2.0
42 stars 56 forks source link

Intermittent Failure to Retrieve Global Variables #10

Open abdeleon opened 8 years ago

abdeleon commented 8 years ago

image

Getting an intermittent error:

error 28-Jul-2015 10:37:11 Exception occurred while executing task error 28-Jul-2015 10:37:11 java.lang.RuntimeException: Failed while invoking URL http://bamboom1:8085/plugins/servlet/artifactoryAdminConfigServlet?planKey=WARE-PCL-CA to get Bamboo variables. Software caused connection abort: recv failed

This occurs for different build plans, intermittently, on different remote agents. Not if this is a matter of adding exception handling/retries or something else.

eyalbe4 commented 8 years ago

It looks like the connection between your agent machines and your master instance is occasionally interrupted. It is more likely to be related to the local network infrastructure.

christianhuening commented 8 years ago

The error relates to an IPTABLES rule we have in place. The rule forwards everything from Port 80 to Port 8085 whcih Bamboo runs under.

Curl'ing to :80 results in the above error, curl'ing to :8085 works. Any ideas?

christianhuening commented 8 years ago

Ok found the issue on our site: Add this rule to your iptables forwarding strategy:_ iptables -t nat -A OUTPUT -d -p tcp --dport 80 -j REDIRECT --to-port 8085

Problem solved :)