Unable to create RallyV2 connection in ConnectALL when the rally URL is behind proxy
search cancel

Unable to create RallyV2 connection in ConnectALL when the rally URL is behind proxy

book

Article ID: 373983

calendar_today

Updated On:

Products

ConnectAll On-Prem ConnectALL

Issue/Introduction

Connection to Rally URL from ConnectAll server requires proxy and you are not able to create RallyV2 adapter connection from UI even if the proxy is setup in setenv.sh for Tomcat.

Steps to reproduce:

  1. Setup proxy and put rally URL behind proxy.
  2. Add proxy setting in ./opt/ConnectALL/UI/tomcat/bin/setenv.sh
    -Dhttps.proxyHost=Proxy.com -Dhttps.nonProxyHosts=*.com -Dhttps.proxyPort=Port -Dhttps.proxyUser=UserName -Dhttps.proxyPassword=**** -Dhttp.proxyHost=Proxy.com -Dhttp.nonProxyHosts=*.com -Dhttp.proxyPort=Port -Dhttp.proxyUser=UserName -Dhttp.proxyPassword=****
  3. Restart Tomcat- systemctl restart connectall-ui
  4. Validate if the proxy is in place by checking to Tomcat process- ps -ef | grep java 
  5. Attempt to create RallyV2 Adapter connection.


Expected Results:

Connection should be created as the proxy is in place 


Actual Results:

It will give error Credentials are valid but user is not allowed to login and you will find 407 error in UI logs.

Environment

3.4.x

Cause

When checked the proxy server logs it is found that the proxy username and password is not being passed from ConnectALL and .../UI/tomcat/logs/ConnectAll.logs shows 407 error when attempting to create a connection while the proxy settings are already present in ../UI/tomcat/bin/setenv.sh and proxy settings were visible for the respective process(ps -ef | grep java).

Validated and found that curl to rally URL is not working from server and timing out. It works when proxy is enforced using- export https_proxy="https://username:password@host:port"

Resolution

  1. Stop Tomcat - systemctl stop connectall-ui
  2. Export proxy settings using command- export https_proxy="https://username:password@host:port"
  3. Navigate to ../UI/tomcat/bin/ run start tomcat using ./startup.sh 
  4. Login to UI and attempt to create a RallyV2 adapter connection which should work fine.
  5. Add advance connection properties to enforce proxy and validate connection again.
    • PROXY_HOST
    • PROXY_PORT
    • PROXY_PROTOCOL
    • PROXY_USERNAME
    • PROXY_PASSWORD
  6. Now unset proxy using command- unset https_proxy or by connecting a new session.
  7. Navigate to../UI/tomcat/bin/run stop tomcat using ./shutdown.sh 
  8. At this point you have proxy settings in ../UI/tomcat/bin/setenv.sh and RallyV2 connection advance properties
  9. Start Tomcat- systemctl stop connectall-ui
  10. Attempt to modify the RallyV2 connection which should work as we have the connection advance properties.