AxisCommunications / tutorial-axis-object-analytics-to-grafana

Visualizing AXIS Object Analytics data in Grafana.
https://www.axis.com/products/axis-object-analytics
Apache License 2.0
10 stars 0 forks source link

Unable to connect to AWS IoT MQTT Broker #6

Open sirknightj opened 8 months ago

sirknightj commented 8 months ago

Please do not disclose security vulnerabilities as issues. See our security policy for responsible disclosures.

Describe the bug

Unable to connect to AWS IoT MQTT Broker.

To reproduce

We are using Axis M3085V camera. We followed the instructions in the README. We created the IoT certificates and installed them on the camera. However, it seems the camera is unable to connect to the AWS IoT MQTT Broker, as the status doesn't switch to "Connected". Looking at the logs tab, we see the following TCP connection failure in the logs:

2023-10-26T12:33:18.778-07:00 axis-b8a44f74a29f [ NOTICE  ] actionengined-system[673]: Action rule "Livestream accessed" is starting action "Status LED - livestream"
2023-10-26T12:33:18.852-07:00 axis-b8a44f74a29f [ NOTICE  ] actionengined-system[673]: Action rule "Livestream accessed" is stopping action "Status LED - livestream"
2023-10-26T12:33:27.742-07:00 axis-b8a44f74a29f [ INFO    ] mqtt-messaging-service: Error connecting to broker: TCP connect completion failure

We'd like to know what information we need to provide to help us debug this issue.

Screenshots

Screenshot 2023-10-26 at 12 39 26 PM

Environment

pteran2403 commented 4 months ago

Any updates on this? I am having the same issue

johanssonfrans commented 4 months ago

Hi,

The connection settings to the AWS IoT core looks correct.

But have you tested to update the firmware or AXIS OS on the camera to the latest version. You can download it from this link: Index of /pub_soft/MPQT/ (axis.com)

If a firmware update does not work, you can check that your network settings is correctly setup. Sometimes it could be a DNS problem or that the time sync (NTP) between the local device and the server time differs. The time synchronization is important for the certificate to function correctly.

For DNS settings go to: System->Network->DNS servers. You can use a public DNS like 1.1.1.1 or 8.8.8.8

For NTP settings go to: System->Time and location->Date and time->Automatic date and time (manual NTP servers).