question

Fiona Kattenstroth avatar image
0 Likes"
Fiona Kattenstroth asked Luciano Cavallero 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 "10.181.89.53:62046 -> 10.242.11.175:1883" 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
· 9
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 ·

2024-07-04-09h00-05.png
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 mqtt.eclipseprojects.io, 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 ·
Show more comments
Logan Gold avatar image Logan Gold ♦♦ commented ·

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 ·
Logan Gold avatar image Logan Gold ♦♦ commented ·

@Luciano Cavallero, @Tancredi Canonico, @Fiorenzo A, would you be able to help us with this question?

0 Likes 0 ·
Luciano Cavallero avatar image Luciano Cavallero commented ·
Hi Fiona,

As Jason wrote is it bit difficult to undertstand what happen without the model: do you have the possibility to send a shareable verions of the model?

0 Likes 0 ·

0 Answers