Fiona Kattenstroth avatar image
Fiona Kattenstroth asked Logan Gold commented

MQTT connection lost

I have another issue with MQTT connection to a RabbitMQ Version 3.11.7 broker. Whenever I publish a message from FlexSim to the broker I see on broker site that something is published, but a problem occurs and FlexSim somehow closed the connection. The error code on the broker says the following: "2024-07-02 08:28:00.098000+02:00 [info] <0.168.472> MQTT connection " ->" will terminate because peer closed TCP connection".
Is there any possibility to take a look in the logs on FlexSim site to see what happens after the publish? When I reconnect and try to publish again FlexSim publishes the current and also the previous message. Is there a mechanism to queue the messages when FlexSim had an error while publishing? And moreover do you have a recommendation for a protocol that's the most stable? Thank you in advance.

debuggingmqttclient connection
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Would you be able to post your code or model so we can see how you've setup the clients?
0 Likes 0 ·
Fiona Kattenstroth avatar image Fiona Kattenstroth Jason Lightfoot ♦ commented ·

That's how I setup the client. Unfortunately I cannot share the model.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Fiona Kattenstroth commented ·

Hi @Fiona Kattenstroth, we've tested FlexSim with RabbitMQ and it operates just like a previous test with, with no apparent errors.

Can you tell us in which logs you are checking to see the disconnection? Is it in the RabbitMQ web interface or at the commandline? Do you have a docker image of your RabbitMQ installation and/or parameters that you can share - perhaps they have an effect.

0 Likes 0 ·

Hi @Fiona Kattenstroth,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers