Hi,
I am trying to connect an MQTT Agent to an external broker running on the same machine.
I can successfully connect to the broker using the MQTT Explorer application with the same username and password I use inside OR Agent.
However, I get the following error in the logs:
2024-06-13 14:16:35.048 INFO [Scheduled task-4 ] ocol.mqtt.AbstractMQTT_IOClient.PROTOCOL : Client 'mqtt://localhost:1883/?clientId=iot_or' connection status changed: WAITING
2024-06-13 14:16:39.359 WARN [Thread-2 (ActiveMQ-serve..883)] TenantClientCredentialsGrantsLoginModule : Unable to resolve keycloak deployment
2024-06-13 14:16:39.359 WARNING [Thread-2 (ActiveMQ-serve..883)] org.apache.activemq.artemis.core.server : AMQ222216: Security problem while authenticating: AMQ229031: Unable to validate user from /127.0.0.1:60808. Username: mqtt-test; SSL certificate subject DN: unavailable
2024-06-13 14:16:39.360 INFO [com.hivemq.client.mqtt-2-21 ] ocol.mqtt.AbstractMQTT_IOClient.PROTOCOL : Connection rejected by the broker 'mqtt://localhost:1883/?clientId=iot_or': reasonCode=NOT_AUTHORIZED, initiator=SERVER
2024-06-13 14:16:39.360 INFO [Scheduled task-5 ] ocol.mqtt.AbstractMQTT_IOClient.PROTOCOL : Client 'mqtt://localhost:1883/?clientId=iot_or' connection status changed: WAITING
Can anyone tell me what I am missing? Is there something I need to do on the broker side?