config-state.json corruption using KB 322679 fails because automatic backups (e.g., config-state.json.bak) are also corrupted.horizon.log on Node01 shows new errors related to an "invalid hostname match."config-state.json reveals multiple entries for other nodes in the cluster (e.g., Node02, Node03) instead of the Load Balancer FQDN.VMware Identity Manager 3.3.x
This article provides a last-resort procedure for a corner case where the connector recreation process (KB 374867) fails to populate the config-state.json with the correct local node or load balancer metadata. This can occur if the cluster state was severely corrupted prior to the recreation attempt.
The procedure involves manually editing the config-state.json file to correct the invalid hostname references.
WARNING: This procedure involves manually editing a critical configuration file. This is not a standard recovery step and should be considered a last resort when all other documented procedures have failed.
config-state.json file before making any edits:cp /usr/local/horizon/conf/config-state.json /usr/local/horizon/conf/config-state.json.MANUAL_EDIT_BACKUP
Stop the Service: Stop the horizon-workspace service on Node01.
service horizon-workspace stop
Edit the File: Open the config-state.json file in a text editor (like vi).
vi /usr/local/horizon/conf/config-state.json
Find and Replace:
node02.example.com).vidm.example.com).Note: This file contains large, complex JSON blobs. Use the search function (
/) invito find all occurrences. Be careful not to break the JSON syntax (e.g., mismatched quotes or commas).
Restart the Service: Start the horizon-workspace service.
service horizon-workspace start
horizon.log for errors. Attempt a user login to confirm the fix.