An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
Hi @Luar Dela Cruz ,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It sounds like you're dealing with a situation where two specific clients can’t connect to the MQTT broker after reverting the session limit back to 1. Here’s a breakdown of what might be happening and some steps you can take:
Possible Causes:
- Existing Active Sessions: When you set the maximum client sessions per authentication name back to 1, it might be that the two specific clients already established a session using the previous higher limit. If their sessions haven't expired, they won't be able to reconnect with a new session name until those sessions are released.
- Session Name Conflicts: Each client needs a unique
ClientIdif they are connecting with the sameUsername. If both clients are attempting to connect with the same session name, only the first connection will be allowed while the other gets rejected. - Quotas and Limits: Check to ensure that you haven’t reached any other quotas or limits in your Event Grid namespace which might prevent new connections.
- Authentication Issues: Ensure that the clients are using the proper credentials and that their authentication names and the certificate fields match what's specified in your client resources.
Troubleshooting Steps:
- Check Active Sessions:
- Verify whether the problematic clients have active sessions that haven’t timed out. If possible, manually release those sessions or wait for them to expire.
- Review Client Configuration:
- Ensure that both clients are using unique
ClientIdvalues while keeping theUsernamethe same (if that’s intended).
- Ensure that both clients are using unique
- Look at Logs:
- Review any available logs from the MQTT broker to get more insight into why the connection is being rejected specifically for those clients.
- Increase Session Limit Temporarily:
- As a temporary mitigation, consider increasing the limit back to 2 to see if that resolves the issue.
Follow-Up Questions:
- Are there specific
ClientIdvalues assigned to the two problem clients? - Have you checked if there are active sessions associated with these clients?
- Are the authentication credentials for these clients set up correctly?
- What specific errors (if any) are showing up in the broker logs for the failed connection attempts?
I hope this helps you get to the bottom of the issue! If you have more details or if the problem persists, feel free to share!