In the RAC environment, I am in the process of adding a node to the existing rac environment.
I have succssfully installed cluster software in the new node. all gsd, ons and vip services are running perfectly for new node in the existing and new nodes.
Next step, I started installing oracle software by executing the script $ORACLE_HOME/oui/bin/addNode.sh.
Here after specifying the the new node information (public host, private host and vip details) and when I pressed next,
OUI is giving following error - "Error occured while retrieving node numbers of the existing nodes. Please check if clusterware home is properly configured".

I ran olsnodes -n, it is giving proper node number.
Can somebody help me in identifying the problem and solution.

Hmm it sounds like your new node isn't seeing your existing nodes. Must admit i've never added a node to an existing cluster but isn't it initiated from an existing node? Then the existing node copies the software etc to the new node. My memory might be failing me so forgive me if i've got it very wrong...

Since Clusterware installed properly this may not help but have you run the cluvfy stage -pre crsinst -n <node names> -r <version> to ensure user equiv, oracle user, node reachability, etc...just as a sanity check?

Well, without the ability to poke around I'm not sure what to suggest. I would maybe run cluvfy for a post (since the pre succeeded) and I would check the cluster logs on the new and existing nodes to see if you get any more meaningful data to go on. Ensure that all host files are correct with the new nodes info as well as the new node with the existing nodes info.

I am hitting the same issue, my problem was when I added the new node initially it fails because of the hint8-priv1. I followed the link below to remove and cleanup the last install. olsnode show only my existing nodes NOT including the new node.

I am getting this when use command line:
Error ocurred while retrieving node numbers of the existing nodes. Please check if clusterware home is properly configured.
SEVERE:Error ocurred while retrieving node numbers of the existing nodes. Please check if clusterware home is properly configured.

also run addNode.sh via GUI, the new node name still listed and can't continue.

Hi, I am hitting the same issue before. And I found that it's because a configuration problem in inventory.
You can try
./detachHome.sh, ./attachHome.sh
then ./runInstaller -updateNodeList ORACLE_HOME=$oracle_home "CLUSTER_NODES={node1}" -local before run ./addNode.sh