Error: Hub Connection Failed (500 Server Message)
Symptom
When attempting to connect a device to Netwrix Change Tracker, the following error message may appear in the rolling log:
2017-08-15 16:29:41,627 [10] INFO Message - Hub connection failed (500 Server message: Error, requested Agent name is in use by device with uniqueId: 123456a6-ffee-78a9-927e-34921d59ce64)
Cause
This problem occurs when a device that has the same name as an already registered agent attempts to connect to Netwrix Change Tracker. When an agent connects, it receives an identifier called the agent.id file, which contains an alphanumeric ID for identification purposes. If two or more devices attempt to register with Change Tracker that share the same hostname but a different agent.id value, this scenario will occur.
IMPORTANT: Use this method to resolve this problem only if the Agent you are trying to connect is the same device or a re-imaged variant of the older device. Contact Netwrix Support before attempting this fix.
Resolution
For Windows-Based OS
Follow these steps:
- Stop the Netwrix ChangeTracker Gen7 Agent NetCore Service.
- Browse to the
C:\ProgramData\NNT\gen7agent.app.netcorefolder. - Open the
rolling-log.txtfile and search for an error that looks like the following example:Hub connection failed (500 Error, requested Agent name is in use by device with uniqueId: 123456a6-ffee-78a9-927e-34921d59ce64). - If you can find the error message, the information you require is the
uniqueId: 123456a6-ffee-78a9-927e-34921d59ce64)value. - Open the
agent.idfile stored inC:\ProgramData\NNT\gen7agent.app.netcoreusing Notepad. Erase the uniqueId currently in that file and paste in the uniqueId identified in the previous step (123456a6-ffee-78a9-927e-34921d59ce64). Ensure there are no spaces at the beginning or end of the text string. - Close and save the
agent.idfile. - Start the Netwrix ChangeTracker Gen7 Agent NetCore Service.
This should resolve the uniqueId conflict and the device should now be registered on Change Tracker successfully.
For RHEL/CentOS Linux-Based OS
Follow these steps:
- Stop the Netwrix ChangeTracker Gen7 Agent NetCore Service.
- Browse to the
/var/nnt/gen7agent.app.netcorefolder. - Open the
rolling-log.txtfile and search for an error that looks like the following example:Hub connection failed (500 Error, requested Agent name is in use by device with uniqueId: 123456a6-ffee-78a9-927e-34921d59ce64). - If you can find the error message, the information you require is the
uniqueId: 123456a6-ffee-78a9-927e-34921d59ce64)value. - Open the
agent.idfile stored in/var/nnt/gen7agent.app.netcoreusing a text editor (nanoorvi). Erase the uniqueId currently in that file and paste in the uniqueId identified in the previous step (123456a6-ffee-78a9-927e-34921d59ce64). Ensure there are no spaces at the beginning or end of the text string. - Close and save the
agent.idfile. - Start the Netwrix ChangeTracker Gen7 Agent NetCore Service.
This should resolve the uniqueId conflict and the device should now be registered on Change Tracker successfully.