I actually just did a fresh installation, this is the first IM node in the cluster, however while I went through the installation process it was always saying "this is not the first node of the cluster".
After installation, the Cisco Sync Agent and Cisco XCP Directory Service are both not running.
There are couple of defects with IM and Presence version 10.5.1 and 10.5.2 affecting your issue. Check these: CSCup88194 and CSCut52781. Both of them have a workaround which needs TAC intervention (to be implemented in root of the server).
Also, collect the Cisco Sync Agent logs from the IM and Presence server, before approaching Cisco TAC. You can collect those through the IMnP server CLI using the commands:
file list activelog /epas/trace/epassa/log4j
file view activelog /epas/trace/epassa/log4j/<file name from list> --- to view the contents of the file on CLI itself
file get activelog /epas/trace/epassa/log4j
As of now, most of the cases end up (specially with version 10.5.2) end up rebuilding the server, but can also be worked out as per the defect details.
Are you getting this error “Installer User Interface Mode Not Supported. The installer cannot run in this UI mode. To specify the interface mode, use the -i command-line option, followed by the UI mode identifier. The value UI mode identifiers...
The below trick might come handy when you have to add a new node to a cluster but you don't have or is unsure of the security password for the publisher. This procedure has been around for ages.
1) Login into the CLI of the Publisher.