Hi
I have a problem with gradle not able to get out to the internet from behind a proxy .
I run the following command as a root level user ( so I know its unlikely a permissions issue )
./gradlew hubUpdate -i
And get the following output :
Configure project :
Evaluating root project ‘data-hub’ using build file ‘/data-hub/build.gradle’.
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
Resource missing. [HTTP HEAD: http://developer.marklogic.com/maven2/gradle/plugin/com/marklogic/ml-data-hub/4.3.2/ml-data-hub-4.3.2.pom]
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
Failed to get resource: HEAD. [HTTP HTTP/1.1 403 Forbidden: http://developer.marklogic.com/maven2/gradle/plugin/com/marklogic/ml-data-hub/4.3.2/ml-data-hub-4.3.2.jar]
Resource missing. [HTTP HEAD: http://developer.marklogic.com/maven2/gradle/plugin/com/marklogic/ml-data-hub/4.3.2/ml-data-hub-4.3.2.pom]
NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)
Failed to get resource: HEAD. [HTTP HTTP/1.1 403 Forbidden: http://developer.marklogic.com/maven2/gradle/plugin/com/marklogic/ml-data-hub/4.3.2/ml-data-hub-4.3.2.jar]
FAILURE: Build failed with an exception.
- What went wrong:
org/gradle/api/internal/CollectionCallbackActionDecorator
org.gradle.api.internal.CollectionCallbackActionDecorator
What I’ve done so far:
Running on Redhat 7.6 linux , installed gradle 4.10 and tested it works OK
Set up gradle as per install instructions.
Set up proxy settings in gradle.properties - see below :
systemProp.http.proxyHost=< full qualified web proxy address >
systemProp.http.proxyPort=< port >
systemProp.http.proxyUser= <windows_domain>/<windows_username>
systemProp.http.proxyPassword= < pw >
systemProp.http.nonProxyHosts=localhost
systemProp.https.proxyHost=< full qualified web proxy address >
systemProp.https.proxyPort=< port >
systemProp.https.proxyUser=<windows_domain>/<windows_username>
systemProp.https.proxyPassword=< pw >
systemProp.https.nonProxyHosts=localhost
I’ve also tried from the command line using -D parameters but no joy.
We are using an older version of Gradle ( 4.10 ) as that is what is currently on our production systems and am not sure of its safe to use a higher version of Gradle for the upgrade.
Ive been able to run up firefox and connect to the internet from within the same linux user session on the linux box and put in my user name and password and could get out to the internet.
This is frustrating, as I’ve tried different combinations of usernames etc and / and \ and quotes etc but no joy.
Can anyone hep please.