Configuring SVN when proxy is involved

Talend Version          6.1.1

Summary

Configuring SVN when proxy is involved.
Additional Versions 6.2.1
Key words svn proxy tac
Product Talend Data Integration
Component Talend Administration Center
Article Type Configuration
Problem Description Customer couldn't connect to a SVN server from the TAC ("URL cannot be reached") although he could connect from the same box outside Talend using wget.
Problem root cause Mixing up the -Dhttp.proxyNNNN and -Dhttps.proxyNNNN JVM parameters. Initially only HTTPS, and then both HTTP and HTTPS.
Solution or Workaround

Even if you refer to HTTPS in the TAC > Settings > Configuration > Monitoring > AMC URL, for example https://host_name:9443/svn/talend661/, the JVM parameters have to be HTTP, NOT HTTPS:

 

-Dhttp.proxySet=true
-Dhttp.proxyHost=proxy_hostname
-Dhttp.proxyPort=port_number
-Dhttp.nonProxyHosts=domain_one|domain two...

If the above settings don't work, and your URL runs over HTTPS, then try using the HTTPS-based Java properties as well:

-Dhttps.proxySet=true
-Dhttps.proxyHost=proxy_hostname
-Dhttps.proxyPort=port_number

Somewhat oddly, the -Dhttps.nonProxyHosts=domain_one|domain two... property does not exist - the http.nonProxHosts setting will be used for both HTTP and HTTPS URLs.

 

To read more about these Java networking/proxy settings, see:

https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html

 

To add the parameters to a Windows install, modify the setenv.bat file:

 

REM you will see the original line looks like this; this line stays
set "JAVA_OPTS=%JAVA_OPTS%  -Xmx2048m -Dfile.encoding=UTF-8"

REM then just add in the proxy parameters
set "JAVA_OPTS=%JAVA_OPTS%  -Dhttp.proxyHost=<proxy_hostname> -Dhttp.proxyPort=<port_number> etc..."

 

To add the parameters to a Linux / Unix install, modify the setenv.sh file (notice the $ instead of %s):

 

# you will see the original line looks like this; this line stays
export JAVA_OPTS="$JAVA_OPTS -Xmx2048m -Dfile.encoding=UTF-8"

# then just add a new line that adds the proxy parameters
export JAVA_OPTS="$JAVA_OPTS -Dhttp.proxyHost=<proxy_hostname> -Dhttp.proxyPort=<port_number> etc..."

 

Then restart TAC.

 

Windows:

C:\Talend\6.4.1\tac\stop_tac.bat;
C:\Talend\6.4.1\tac\start_tac.bat;

Linux / Unix:

C:\Talend\6.4.1\tac\stop_tac.sh;
C:\Talend\6.4.1\tac\start_tac.sh;

 

References

How to add proxy settings to TAC

Version history
Revision #:
8 of 8
Last update:
‎02-06-2018 01:04 PM
Updated by: