Gauge Java Timeout when Hosted in Corporate Cloud #2214
Replies: 2 comments 4 replies
-
Hi, do you see any The error is caused when
This is not at all how it should be. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I've now identified what was causing this issue. Our settings.xml is located in the working directory of our maven project instead of in the default I believe in this situation it attempts to redownload all packages from central, and timeouts for each individual plugin/dependency. This would explain why we're not seeing logs for this in our proxy (as traffic never reaches the proxy in the first place), and why the local build and other cloud build are working (as they're run in less restrictive networking environments so they can reach central in this situation). |
Beta Was this translation helpful? Give feedback.
-
Context
I'm trying to get the java-maven template working with Docker in a corporate environment in the AWS cloud. By "corporate environment" I mean we do not have access to the public internet, and pull Maven packages from an on-premises Nexus repository that we connect to via a cloud HTTP proxy server. The Gauge installation files (core executable and plugins) are installed locally via Gauge release zip files.
Problem
When I run the template in a local build or in a non-restricted cloud environment (i.e. direct access to public internet) the template executes without issue. When I run the template in our corporate cloud environment, however, Gauge keeps coming back with the below error (find the full debug log attached below):
Failed to start gauge API: Timed out connecting to java
If I set timeout parameters very high (e.g. 3000000) then after about 30 minutes Gauge will start working, although the following lines are returned before moving to execution:
Config/Environment
I've attached our pom.xml, settings.xml, and Dockerfile (all with sensitive content stripped) for your visibility.
Gauge: 1.4.3
Gauge-Java: 0.8.1
Java: openjdk-11
OS: alpine:3.11
Things I've Tried
settings.txt
pom.txt
Dockerfile.txt
gauge-error.log
Beta Was this translation helpful? Give feedback.
All reactions