"No connection could be made because the target machine actively refused it" Reported on Rally Connector Integrations

Document ID : KB000047929
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue

  • When executing one of Rally's Integration Connectors, the following message is displayed in the rallylog.log contained with the connector directory:
[2013-11-14 20:54:12 Z] INFO : RallyConnection.connect - Connecting to Rally at https://rally1.rallydev.com/slm as user user@domain.com
[2013-11-14 20:54:13 Z] DEBUG : RallyConnection.rescue in connect - Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)
[2013-11-14 20:54:13 Z] ERROR : RallyConnection.rescue in connect - Could not connect to Rally at https://rally1.rallydev.com/slm as user user@domain.com

Cause

  • This occurs when a proxy server is required for authentication, however a proxy variable has not been configured for the Operating System. ?The proxy server will respond with a connection rejection in this scenario.

Resolution

  • If you use a proxy server to access Rally, you will need to set the http_proxy environment variable
?
  1. On Windows, right-click My Computer and select Properties.
  2. Select the Advanced tab, and then click Environment Variables.
  3. Click New under System Variables and enter http_proxy as the full HTTP URL, such as http://www-cache:8000.
  4. If your proxy sever requires username-password authentication, you could specify it in the http_proxy variable as such: http://Username:Password@www-cache:8000.
  5. You may need to restart your system in order for the change to take effect.


  • Note: If the 3rd-party integration system is hosted internally, there may be special considerations in ensuring that it is able to communicate while utilizing the proxy server. ?Please refer your IT administrator to the following about Rally IP and CDN Network information.