Skip to main content

Orbix locator constantly returns error IT_LOCATOR:MASTER_UNAVAIL

  • May 17, 2013
  • 0 replies
  • 0 views

Summary Orbix locator constantly returns error IT_LOCATOR:MASTER_UNAVAIL
Article Number 13005
Environment Orbix 6.3.4 All Supported Operating Systems Orbix C Runtime Orbix 6.x
Question/Problem Description Orbix locator constantly returns error IT_LOCATOR:MASTER_UNAVAIL
Error IT_LOCATOR:MASTER_UNAVAIL is thrown when running on a replicated domain
Trying to run any itadmin write operations results in IT_LOCATOR:MASTER_UNAVAIL error
Fri, 13 Feb 2009 13:49:14.0000000 [hostname:9441] (IT_POA:12) E -
could not connect to location domain: IDL:omg.org/CORBA/TRANSIENT:1.0:
minor = 0x49540B0 0 (IT_LOCATOR:MASTER_UNAVAIL), completion status =
MAYBE
Clarifying Information
Error Message
Defect/Enhancement Number
Cause This error is generated when the locator has been made part of a domain and the master replica happens to be unavailable.
Resolution The immediate solution to this problem is to restart the master locator replica.  However, if this happens to occur in a non-replicated domain, the locator will attempt to contact a non-existent master replica which would ultimately result in error IT_LOCATOR:MASTER_UNAVAIL.

 

In such cases, verify if there are any additional replicas registered in the locator's database using the following command:

 

%> itadmin pss_db list_replicas $IT_CONFIG_DOMAINS_DIR/../../var/$IT_DOMAIN_NAME/dbs/locator_$HOSTNAME/env.ior


This command will return a list of all registered locator replicas. If for any reason (i.e. user administration error) there is more than one replica listed there, you will need to remove the bogus extra entries manually. For instance, if the command above returns the following:

 

iona_services.locator.my_host1
iona_services.locator.my_host2

 

Assuming that my_host1 is the name of the host where the locator should be running, you'd need to remove the second entry by issuing this command:

 

%> itadmin pss_db remove_replica –iorfile $IT_CONFIG_DOMAINS_DIR/../../var/$IT_DOMAIN_NAME/dbs/locator_$HOSTNAME/env.ior iona_services.locator.my_host2

 

After this change, this problem will not happen again.

Workaround
Notes
Attachment
Created date: 06 September 2011
Last Modified: 13 February 2013
Last Published: 23 June 2012
First Published date: 09 September 2011

#Orbix
#KnowledgeDocs