Facing issue with proxy on AE Cloud? Let’s check it!


#Facing issue with proxy on AE Cloud? Let’s check it!

Version: AutomationEdge 4.0 to 5.3.0.

What to do?

Edit the scripts as per platform (Windows/Linux) and set proxy server details (text highlighted as bold) and then restart Agent/Process Studio.

Let’s begin

Windows (process-studio.bat)

REM ******************************************************************
REM ** Set java runtime options **
REM ** Change 2048m to higher values in case you run out of memory **
REM ** or set the PROCESS_STUDIO_DI_JAVA_OPTIONS environment variable **
REM ******************************************************************

SET PROXY_DETAILS="-Dhttp.proxyHost=xxx" “-Dhttp.proxyPort=xxx”

if “%PROCESS_STUDIO_DI_JAVA_OPTIONS%”=="" set PROCESS_STUDIO_DI_JAVA_OPTIONS="-Xms1024m" “-Xmx2048m” “-XX:MaxPermSize=256m” %PROXY_DETAILS%

Windows (Agent’s startup.bat)

SET PROXY_DETAILS="-Dhttp.proxyHost=xxx" "-Dhttp.proxyPort=xxx"

%JAVACMD% %JAVA_OPTS% -Xms1024m -Xmx2048m %PROXY_DETAILS% -classpath %CLASSPATH% -Daeagent.home="%BASEDIR%" -Dapp.name=“aeagent” -Dapp.repo="%REPO%" -Dapp.home="%BASEDIR%" -Dbasedir="%BASEDIR%" -Duser.dir="%BASEDIR%" com.automationedge.aeagent.AgentMain %CMD_LINE_ARGS%

• In case of HTTP proxy:
SET PROXY_DETAILS="-Dhttp.proxyHost=xxx" “-Dhttp.proxyPort=xxx”
• In case of HTTPS proxy:
SET PROXY_DETAILS="-Dhttps.proxyHost=xxx" “-Dhttps.proxyPort=xxx”
• In case of HTTP proxy with authentication:
SET PROXY_DETAILS="-Dhttp.proxyHost=xxx" “-Dhttp.proxyPort=xxx” “-Dhttp.proxyUser=xxx” “-Dhttp.proxyPassword=xxx”
• In case of HTTPS proxy with authentication:
SET PROXY_DETAILS="-Dhttps.proxyHost=xxx" “-Dhttps.proxyPort=xxx” “-Dhttps.proxyUser=xxx” “-Dhttps.proxyPassword=xxx”

Linux/Mac (process-studio.sh)

#******************************************************************
#** Set java runtime options **
#** Change 2048m to higher values in case you run out of memory **
#** or set the PROCESS_STUDIO_DI_JAVA_OPTIONS environment variable **
#******************************************************************

PROXY_DETAILS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx"

if [ -z “$PROCESS_STUDIO_DI_JAVA_OPTIONS” ]; then
PROCESS_STUDIO_DI_JAVA_OPTIONS="-Xms1024m -Xmx2048m $PROXY_DETAILS "
Fi

Linux/Mac (Agent’s startup.sh)

PROXY_DETAILS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx"

exec “$JAVACMD” $JAVA_OPTS -Xms1024m -Xmx2048m $PROXY_DETAILS
-classpath “$CLASSPATH”
-Daeagent.home="$BASEDIR"
-Dapp.name=“aeagent”
-Dapp.pid="$$"
-Dapp.repo="$REPO"
-Dapp.home="$BASEDIR"
-Dbasedir="$BASEDIR"
-Duser.dir="BASEDIR" \ com.automationedge.aeagent.AgentMain \ "@" > /dev/null 2>&1 &


• In case of HTTP proxy:
PROXY_DETAILS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx"
• In case of HTTPS proxy:
PROXY_DETAILS="-Dhttps.proxyHost=xxx -Dhttps.proxyPort=xxx"
• In case of HTTP proxy with authentication:
PROXY_DETAILS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=xxx -Dhttp.proxyUser=xxx -Dhttp.proxyPassword=xxx"
• In case of HTTPS proxy with authentication:
PROXY_DETAILS="-Dhttps.proxyHost=xxx -Dhttps.proxyPort=xxx -Dhttps.proxyUser=xxx -Dhttps.proxyPassword=xxx"

Important Note: "xxx" needs to be replaced by appropriate values from the respective environment

1 Like
badges