DevTest Broker message: "The broker cannot be detected. Please make sure the broker process is running and try again." 
search cancel

DevTest Broker message: "The broker cannot be detected. Please make sure the broker process is running and try again." 

book

Article ID: 205241

calendar_today

Updated On:

Products

Service Virtualization CA Continuous Application Insight (PathFinder)

Issue/Introduction

Seeing the Broker connection drops abruptly and traffic does not reach the VSE but the Broker Service shows as running and see the message  "The broker cannot be detected. Please make sure the broker process is running and try again." in the DevTest Portal under Agents,

 

Seen the memory issues first but after fixing them seen the below messages in log files.

. PFBroker.log says port 2009 is listening:

 

    Line 709: 2020-12-14 06:11:41,861Z (00:11) [main] INFO  com.itko.lisa.test.Environment - LISA prop 'lisa.pathfinder.broker.port'='2009'
    Line 966: 2020-12-14 06:11:42,556Z (00:11) [main] INFO  System.out                     - [DevTest AGENT:B][INFO][3248][12][main][Dec 14, 2020 12:11:42 AM] Starting pathfinder broker on tcp://<IP Address>:2009
    Line 974: 2020-12-14 06:11:42,956Z (00:11) [main] INFO  System.out                     - INFO: Listening for connections at: tcp://clsvrapf1.canadalife.bz:2009?daemon=true
    Line 976: 2020-12-14 06:11:42,956Z (00:11) [main] INFO  System.out                     - INFO: Connector tcp://clsvrapf1.canadalife.bz:2009?daemon=true Started
    Line 981: 2020-12-14 06:11:42,988Z (00:11) [main] INFO  System.out                     - [DevTest AGENT:B][INFO][3248][12][main][Dec 14, 2020 12:11:42 AM] Started Broker tcp://<IP Address>::2009?daemon=true
    Line 1009: 2020-12-14 06:11:44,593Z (00:11) [main] INFO  System.out                     - [DevTest AGENT:BC][INFO][3248][12][main][Dec 14, 2020 12:11:44 AM] Connection to tcp://<IP Address>::2009?daemon=true established...

 

. Registry log says otherwise:
 
    Line 709: 2020-12-14 06:09:54,262Z (00:09) [main] INFO  com.itko.lisa.test.Environment - LISA prop 'lisa.pathfinder.broker.port'='2009'
    Line 1432: 2020-12-14 06:11:19,673Z (00:11) [Thread-11] INFO  System.out                     - [DevTest AGENT:C][WARN][9924][27][Thread-11][Dec 14, 2020 12:11:19 AM] Could not establish connection to Agent broker at tcp://localhost:2009?daemon=true
    Line 1493: 2020-12-14 06:14:45,199Z (00:14) [qtp1778463788-333] INFO  System.out                     - [DevTest AGENT:C][WARN][9924][333][qtp1778463788-333][Dec 14, 2020 12:14:45 AM] Broker access failed (com.itko.lisa.remote.plumbing.JMSInvocationException: Cannot reach broker at tcp://localhost:2009?daemon=true). Falling back on direct DB access...
    Line 1494: 2020-12-14 06:14:45,266Z (00:14) [qtp1778463788-333] INFO  System.out                     - [DevTest AGENT:C][WARN][9924][333][qtp1778463788-333][Dec 14, 2020 12:14:45 AM] Broker access failed (com.itko.lisa.remote.plumbing.JMSInvocationException: Cannot reach broker at tcp://localhost:2009?daemon=true). Falling back on direct DB access...
    Line 1497: 2020-12-14 06:14:49,373Z (00:14) [qtp1778463788-76] INFO  System.out                     - [DevTest AGENT:C][WARN][9924][76][qtp1778463788-76][Dec 14, 2020 12:14:49 AM] Broker access failed (com.itko.lisa.remote.plumbing.JMSInvocationException: Cannot reach broker at tcp://localhost:2009?daemon=true). Falling back on direct DB access...
    Line 1498: 2020-12-14 06:14:49,389Z (00:14) [qtp1778463788-76] INFO  System.out                     - [DevTest AGENT:C][WARN][9924][76][qtp1778463788-76][Dec 14, 2020 12:14:49 AM] Broker access failed (com.itko.lisa.remote.plumbing.JMSInvocationException: Cannot reach broker at tcp://localhost:2009?daemon=true). Falling back on direct DB access...
    Line 1507: 2020-12-14 06:16:13,690Z (00:16) [qtp1778463788-73] INFO  System.out                     - [DevTest AGENT:C][WARN][9924][73][qtp1778463788-73][Dec 14, 2020 12:16:13 AM] Broker access failed (com.itko.lisa.remote.plumbing.JMSInvocationException: Cannot reach broker at tcp://localhost:2009?daemon=true). Falling back on direct DB access...

Environment

lisa.pathfinder.broker.host configured to ip address in BrokerService.vmoptions caused the issue. 

Cause

At the start there were

Resolution

Problem has been identified to be that BROKER was listening only over IP address as customer explicitly passed lisa.pathfinder.broker.host=<IP address> in BrokerService VMOptions file. 
 
But the Registry was trying to bind to Broker over localhost as found from Registry .log as part of lisa-pathfinder-invoke api started on 1505 port.
 
After fixing the  lisa.pathfinder.broker.host=0.0.0.0 in vmoptions file of BrokerService, the problem got resolved.