Info: Message Bus Troubleshooting
Symptom
Message Bus in Mesh Mode has the following hard requirements:
1) Ports are open bidirectionally between all TPP Servers
2) TPP Servers can resolve the mesh hostname to the right IP
Message Bus in Central Mode has the following hard requirements:
1) Port are open between the TPP server and MQTT Server
2) TPP Servers can resolve the mesh hostname to the right IP
3) If TLS, the MQTT certificate is trusted (not expired)
Look at Message Bus Status in VCC:
Copy health information provides a lot of useful information.
It will basically spell out what the issues are. Read it!
To test connection between all machines you can use Test-NetConnection from a PowerShell prompt. This test will only prove that a port is blocked. It does not prove that communication is allowed through a firewall when in use by message bus.
- Use the Mesh Hostname found in VCC (Not IP or other FQDN)
- Use the port found in VCC
- Test in both directions to each machine when multiple machines are in the cluster.
tnc -ComputerName <mesh_hostname> -Port 8883
You can check the Mesh hostnamehere:
You can check the port here:
Note. If you change the mesh hostname for any reason, all TPP services will need to be restarted on all hosts in the cluster for them to pick up the change, else they will still be looking for the old mesh hostname.
TLS:
Message bus uses the VOC to communicate over TLS. Communication will fail if the VOC is expired.
Disabling TLS on all engines is an easy way to test TLS related issues. No sensitive information is exchanged between instances as detailed in the FAQ. The MQTT port can be adjusted if it is automatically changed after disabling or enabling TLS. If you disable/enable TLS, you need to restart TPP services on all hosts.
Enable Message Bus Trace
Enable message bus trace logging in the Windows registry by adding the Message Bus Trace File option in HKLM\SOFTWARE\Venafi\Platform.
Message Bus Trace File
String, Value = C:\temp\mb-trace.txt
Start with the following options and increase verbosity as needed.
Message Bus Trace Stack
String, Value = 1
Message Bus Trace Log Level
String, Value = Error
Restart Venafi services after making the change. The directory path in "Message Bus Trace File" must exist or VPlatform will not start.
Additional message bus configuration options are available here: https://venafi.atlassian.net/wiki/spaces/ENG/pages/2116419665/Message+Bus+Configuration+Options
How To: Troubleshoot Message Bus with MessageBusMonitor.exe - 24.1+
FOR 23.3 ONLY:
MessageBusMonitor Tool for Troubleshooting Connectivity
Environment
TPP/TLSPDC