The Linux OS multiple TCP discovery URL is not working if given a port other than the default port of "50000".

The Linux OS multiple TCP discovery URL is not working if given a port other than the default port of "50000".

book

Article ID: KB0089178

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
Linux OS multiple TCP discovery URL is not working if given a port other than default port of "50000".

The following command does not work in Linux.
================================================================

java -jar as-agent.jar -metaspace product_metaspace -discovery tcp://SLHOST22:50051;SLHOST23:50051 -listen tcp://SLHOST22:50051

The following error is thrown:

WARNING][ms.$gmp][MemberManager.cpp:998][MemberManager::processMemberConnectTimeout] waiting for discovery nodes, retry count [3]

The same works in Windows.

==================================================================


Symptoms:
If you start as-agent / as-admin on ports 50051 and 50050, in the Console startup will be displayed "port=50000" . It is expected to start on port 50051 as shown in the green font but as-agent will start on default 50000 as shown in the red font. A repeated log message will display in the console and logs.

"

Waiting for discovery nodes [tcp://192.168.200.122:50051]to come up, restart discovery.

"

Sample console output is shown below. 

=========================================================

SLHOST22

[m@SLHOST22 lib]$ java -jar as-agent.jar -metaspace product_metaspace -discovery tcp://192.168.200.122:50051;192.168.200.123:50051 -listen tcp://192.168.200.122:50051
****************************************************************
TIBCO ActiveSpaces Agent (Java)
Enterprise Edition. Version: 2.1.2.124 11-Apr-2014 SVN Rev.22804
Copyright(c) 2008-2013 TIBCO Software Inc. All rights reserved
****************************************************************
[2014-05-06T05:50:38.837][1071][139790600013584][INFO][transport] ip_address=192.168.200.122 port=50000
[2014-05-06T05:50:43.838][1071][139790094059280][WARNING][product_metaspace.$gmp][MemberManager.cpp:1044][processMemberConnectTimeout] Waiting for discovery nodes [tcp://192.168.200.122:50051]to come up, restart discovery

==========================================================

Cause:

The Linux semi-colon (;) is interpreted as an end of command so the -listen options is not seen on the listen ports when started. as-agent /as-admin will start on the default listen port of 50000.

Resolution

Add a double quote ("") for the discovery URL in the as-agent /as-admin command .

=====================================

Example : java -jar as-agent.jar -metaspace product_metaspace -discovery "tcp://SLHOST22:50051;SLHOST23:50051" -listen tcp://SLHOST22:50051

=====================================

Issue/Introduction

The Linux OS multiple TCP discovery URL is not working if given a port other than the default port of "50000".

Additional Information