MQTT Client connection problems, app doesn't start
Hi,
I have a problem with the MQTT Client app.
Yesterday I tested everything in our offices. Made a connection with the MQTT-broker and send some messages.
Today at the client, the app doesn't start because of connection errors. Can somebody please point out what went wrong.
Log-files:
21.08.20 11:55:21.260 PxceTcs.Mqtt.GdsConnectorComponent INFO - Created MQTT Client with ID: 51664
21.08.20 11:55:21.261 PxceTcs.Mqtt.GdsConnectorComponent INFO - Global timeout value has been set to 60000 milliseconds
21.08.20 11:55:21.262 PxceTcs.Mqtt.GdsConnectorComponent INFO - No MQTT SSL/TLS Options provided. Defaults will be used.
21.08.20 11:55:21.266 PxceTcs.MqttClient.MqttClientManager INFO - Connecting to MQTT server
21.08.20 11:55:27.534 PxceTcs.MqttClient.MqttClientManager ERROR - Exception in operation: Connect(51664, ConnectOptions)
21.08.20 11:55:27.536 PxceTcs.MqttClient.MqttClientManager ERROR - MQTT error [-1]: TCP/TLS connect failure
21.08.20 11:55:27.537 PxceTcs.Mqtt.GdsConnectorComponent ERROR - Error connecting to MQTT Client 51664
21.08.20 11:55:27.538 PxceTcs.Mqtt.GdsConnectorComponent ERROR - App will NOT START due to previous error.
Thanks!
Comments
Hi wardroelandt,
could be an easy network configuration issue. Can you ping the broker from the PLC --> putty (ssh) --> bash --> ping Broker
If not you should modify the network settings accordingly.
If you can ping the Broker, the connection details from the mqtt_gds.settings.json would be interesting.
Take care
Frank
This case were resolved in direct contact, the issue were a wrong network configuration.