/opt/vmware/vcloud-director/logs/vcloud-container-debug.log files, the following error can be seen: :
2025-09-02 08:58:45,067 | WARN | pool-jetty-358996 | MqttWebSocket | MQTT: handshake failed |com.vmware.vcloud.api.rest.handlers.mqtt.MqttException: MQTT: Invalid username and/or password. [PythonMQTT][null] at com.vmware.vcloud.api.rest.handlers.mqtt.MqttWebSocket.verifyCredentials(MqttWebSocket.java:199) at com.vmware.vcloud.api.rest.handlers.mqtt.MqttWebSocket.verifyCredentials(MqttWebSocket.java:185)
VMware Cloud Director 10.6.1
Prior to VCD 10.6.1, only the token was required for login and the username was set to none.
For example when using the paho-mqtt Python package to subscribe to VCD's MQTT endpoint it may default to none, or be explicitly set to none:
i.e. client.username_pw_set(username=None, password=None)
Since VCD 10.6.1, the change was made that it now needs the username along with the password (token), since Token Validation is expecting username and password, it can't be set to None (null) anymore.
In VCD 10.6.1 and later use a username and password with the client connection.
For example when using the paho-mqtt Python package to subscribe to VCD's MQTT endpoint the following could be set where the username is the VCD user and the password is the authorization bearer token for a logged in session:
client.username_pw_set(username='administrator@System', password=f'{TOKEN}')
NOTE: The username need not be administrator@System this is only for illustration. If the token was generated from an Organization user or a different Provider System user login then supply the respective username i.e. <username>@<orgName>.