- Newest
- Most votes
- Most comments
The error you're encountering seems to be related to a timeout when trying to resolve the IoT credentials provider endpoint. The specific error message "Resolving timed out after 3000 milliseconds" suggests that the DNS resolution for the IoT credentials provider endpoint is taking longer than the allowed 3 seconds.
Given that the same command works on a RaspberryPi 3B+ on the same network, it's unlikely to be a network issue. Instead, it might be related to the specific environment or configuration on the BananaPi M5.
Here are some steps to troubleshoot and potentially resolve the issue:
DNS Resolution:
-
Test the DNS resolution speed on the BananaPi M5 using dig or nslookup for the IoT credentials provider endpoint.
dig xxxxxxxxxxxx.credentials.iot.eu-west-2.amazonaws.com
-
If the DNS resolution is slow, you might want to change the DNS servers used by the BananaPi M5. For instance, you can use Google's public DNS servers (8.8.8.8 and 8.8.4.4) or Cloudflare's (1.1.1.1).
Increase Timeout:
- If possible, increase the timeout for the IoT credentials provider in the KVS CPP Producer. This might not be directly configurable via the GStreamer command, but you might be able to modify it in the underlying SDK or source code.
System Resources:
- Check the system resources on the BananaPi M5. Ensure that it's not running out of memory or CPU. High resource usage can slow down operations, including network requests.
Software Versions:
- Ensure that the versions of the KVS CPP Producer, GStreamer, and other related software are the same on both the RaspberryPi and the BananaPi. Differences in versions might lead to different behaviors.
Network Tools:
- Use tools like traceroute to check the network path from the BananaPi M5 to the IoT credentials provider endpoint. This can help identify any network bottlenecks or issues.
traceroute xxxxxxxxxxxx.credentials.iot.eu-west-2.amazonaws.com
Logs & Debugging:
- Increase the logging level for the KVS CPP Producer and GStreamer to get more detailed logs. This might provide more insights into where the issue is occurring.
Alternative Methods:
- As a workaround, you can consider obtaining the IoT credentials on the BananaPi M5 using a script or another method and then passing them directly to the KVS CPP Producer, bypassing the need for the SDK to fetch them.
Update & Upgrade:
- Ensure that the BananaPi M5 is updated with the latest packages and firmware. Sometimes, issues can be resolved with updates.
Environment Differences:
- There might be subtle differences between the environments of the RaspberryPi and the BananaPi. Ensure that any environment variables, configurations, or system settings that might affect the operation of the KVS CPP Producer are consistent between the two devices.
If after trying the above steps the issue still persists, you might need to dive deeper into the specific configurations and environment of the BananaPi M5 to identify the root cause.
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated a month ago
Thank you for clues! traceroute test was very slow and took ages to complete. Turned out the main router in the building has been recently replaced and the configuration in /etc/resolv.conf of BananaPi was incorrect! Everything works like a charm now.