iot connected device stuck on queued

0

My greengrass deployment for connected iot device is stuck on queued, and the core receives the deployment just fine.

The core and connected device are on 2 separate ec2 instance, on the same subnet. They're both able to ping each other and with firewall down. The permissions are set all open for iot:* and greengrass:*. The client is an associated device on the core, and went through the cloud discovery config on the core as well. The endpoint is set to the ip, and I'm able to ping the endpoint. If I do a iot job deployment straight to the iot device, it's able to process them. But when i do a deployment to the greengrass group, the iot device is always stuck on queue. The root_ca credentials are matching from client.Auth deployment as well. We're able to run the basic_discovery.py and have client connect to the core as well.

asked 7 months ago119 views
2 Answers
1

Hello, can you confirm if you're trying to do deployments on an associated client device as part of the Greengrass group deployment? If so, it is not possible today. Only the core devices (where Nucleus is running) have out of the box deployment capabilities where the device can receive and process Greengrass deployments.

AWS
answered 7 months ago
  • Yes we’re trying to do deployments on an associated client device as part of the greengrass group. Are there any open source libraries that we can leverage to facilitate the client updates?

-1

Based on the information provided, it seems you're experiencing an issue where your IoT connected device deployment is stuck in a queued state, while the Greengrass core device receives the deployment successfully. This can be a frustrating situation, but there are several steps we can take to troubleshoot the problem.

First, it's good that you've already verified network connectivity between the core and the connected device, and that you've set the permissions for IoT and Greengrass to be open. These are important initial steps in troubleshooting.

Since you mentioned that the IoT device can process direct IoT job deployments but gets stuck when deploying to the Greengrass group, the issue likely lies in the communication or configuration between the connected device and the Greengrass core. Here are some areas to investigate:

  1. Check the Greengrass logs on the core device for any errors or warnings that might indicate why the deployment isn't being processed for the connected device. The logs might reveal issues with subscription, authentication, or component configuration.

  2. Verify that the client device auth component on the Greengrass core is properly configured. This component is responsible for authenticating and authorizing client devices. Make sure it's deployed and running correctly on the core.

  3. Double-check the cloud discovery configuration on the core. Ensure that the connected device is properly associated with the core device and that all necessary permissions are in place.

  4. Review the MQTT connection between the connected device and the core. Even though you can run the basic_discovery.py script successfully, there might be issues with the MQTT connection when it comes to deployments. Check for any MQTT connection errors on both the core and the connected device.

  5. Verify that the connected device is using the correct certificates and private key for authentication with the Greengrass core. Mismatched or expired certificates can cause connection issues.

  6. Check that the Greengrass core device has the necessary policies to communicate with the connected device and vice versa. While you've set open permissions for IoT and Greengrass, make sure there are no conflicting policies that might be restricting communication.

  7. Ensure that the connected device is subscribed to the correct MQTT topics for receiving deployment notifications from the Greengrass core.

  8. If possible, try restarting both the Greengrass core software on the core device and the client software on the connected device. Sometimes, a fresh start can resolve communication issues.

If after checking these areas the issue persists, you may need to dive deeper into the logs and configurations of both the core and connected devices to identify any misconfigurations or compatibility issues. Additionally, consider checking if there are any version mismatches between the core and client software that could be causing communication problems.

Remember that troubleshooting IoT and Greengrass deployments can be complex due to the many moving parts involved. Systematic checking of each component and its configuration is often necessary to pinpoint the root cause of such issues.

Sources
Troubleshooting AWS IoT Greengrass V2 - AWS IoT Greengrass
Troubleshooting client devices - AWS IoT Greengrass

profile picture
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions