Share via

Connack Error 5

Haris Papageorge 251 Reputation points
2022-08-02T07:33:53.097+00:00

Hi,

I have 4 devices sending data to an IoT Hub for a while now and yesterday it stopped sending as it was receiving a Connack Error 5 (0x05 Connection Refused, not authorized).

I then tried a different device with the same credentials just in case the device was having an issue but the same was happening with that device also.

I then created new device and device certificates in case they were expired but again I am getting the same error 5.

I even tried connecting with MQTTfx (an MQTT client application) but with same results. Also tried with MQTT Explorer...

This all started happening on 1/8/2022.

Any ideas? Did anything change? I am using the MQTT Paho library and so is MQTTfx.

These devices were working for months with no issues... something must have changed and it's not the root certificate as the old baltimore one is still active and the connections is established.

my username looks like this: thermos.azure-devices.net/testing/?api-version=2018-06-30

Also tried with /?api-version=2021-04-12

So the Hub name is thermos and the device (client id) is testing

Broker address is thermos.azure-devices.net port 8883

Using TLS1.2 and x509 certificates connecting to East US region.

This config is based on this

Edit: This is not only happening on my IoT Hub but on a clients account also.

This is urgent.

thanks

Azure IoT Hub
Azure IoT Hub

An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.


Answer accepted by question author

QuantumCache 20,681 Reputation points Moderator
2022-08-09T23:41:33.75+00:00

Hello, @Haris Papageorge , hope you are doing well!

We have mitigated the issue which was caused during the backend update process. I hope your issue is now resolved. Please let us know if you need further help in this matter.

Please let us know if we are good to close this case.

Happy to help you!

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.