Creating multiple VMs with AD/LDAP agent returns "Error: You have already used this ticket with..."

Problem statement

We are installing 3 VMs with AD/LDAP agent but are finding that it does not work in ha mode, only the first VM connection succeeded. Other virtual machines do not connect to Auth0. The installation process replicates the file config.json to all virtual machines that contain the AD/LDAP.

The message received is the following:

"Error: You have already used this ticket (*****) with an agent that is currently running on another machine. To solve this, create a **NEW** connection with a new ticket and use that one instead. You can uninstall the other agent."


Copying the lib\profileMapper.js file and certificates should fix the error.