New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agent Reconnecting to Broker repeatedly #441
Comments
Need to reproduce. Can |
Running agent on desktop connecting to Mosquitto broker with user/pwd only. Running in debug/console mode. cfg Devices = Devices.xml Adapters { device {
} } Logger Configurationlogger_config
} |
I'm having trouble reproducing. Have your configuration and the connection is remaining solid. Can you upload the entire log? I need to see what happened before to reproduce. Also, the MQTT feed would be helpful to see if something caused the disconnect cycle. Here's my log. All looks good.
|
No logs just trace output on debug console. Never sent payload. just started up and got the reconnects. |
if I exchange the exe to 2.3.0.2 it works just fine |
I've been testing on MacOS. I'll test on windows and see if I get the same behavior. I don't have a windows machine to test with aside from my VM, so milage may vary. |
What version of Windows? |
tested on windows and can't reproduce
Stable using your exec and configured to point at external broker on my mac. |
Configuration:
|
Also, I'm testing with mosquitto. What broker are you working with? |
Mosquitto |
Are you using TLS or websockets? |
no |
Is the broker local or remote? Any other info you can send me? Broker config? More logging? |
Mosquitto Broker is remote (aws). Could this be some sort of a timeout issue? Do the Heatbeat param etc effect broker connections? |
No idea. I'm trying to reproduce and have had no luck. It could be heartbeat or some other param. Do you have the aws mosquitto config? I could try to replicate. |
Or could you give me access to the aws broker or a similar instance? |
Not able to provide access to this or duplicate broker. But the cfg file is attached. It uses a pwd file for you will need to modify to use. |
posting in hopes this is a clue... we had this problem before when the agent was creating a unique client connection to the broker for the sink as well as any adapters using mqtt. iirc, both connections were using the same id and the broker was kicking one off immediately. |
I thought we had addressed this by changing the client id. Neil can you test with a specific client id for each connection? |
Agent V 2.3.0.7
Agent disconnects and reconnects repeatedly. Is this by design. I think not.
This works fine with v2.3.0.2.
The text was updated successfully, but these errors were encountered: