Ao usar o AWS re:Post, você concorda com os AWS re:Post Termos de uso

Deploy HelloWorld successful but no message in console

0

Hi guys,
I used the greengrass dev guide for Raspberry Pi. It looked everything ok until the helloworld test. From console no message arrives on hello/world topic
The deploy of lambda function is successful, so I have to assume there is no connection problem.
The runtime.log says

]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGCloudSpooler:1", "workerId": edited, "pid": 1469}
[2020-03-01T21:12:55.553Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGShadowService", "workerId": edited, "pid": 1506}
[2020-03-01T21:12:55.555Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGShadowSyncManager", "workerId": edited, "pid": 1489}
[2020-03-01T21:12:55.563Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGIPDetector:1", "workerId": edited, "pid": 1513}
[2020-03-01T21:12:55.633Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGSecretManager:1", "workerId": edited, "pid": 1537}
[2020-03-01T21:12:55.863Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGDeviceCertificateManager", "workerId": edited, "pid": 1592}
[2020-03-01T21:12:55.903Z][INFO]-Created worker.        {"functionArn": "arn:aws:lambda:::function:GGTES", "workerId": edited, "pid": 1594}
[2020-03-01T21:13:01.736Z][INFO]-Handled functions request.     {"functionName": "arn:aws:lambda:::function:GGStreamManager:1", "invocationId": ""}
[2020-03-01T21:13:01.736Z][INFO]-Started all system components.
[2020-03-01T21:13:01.953Z][INFO]-Created worker.        {"functionArn": "edited:function:Greengrass_HelloWorld:2", "workerId": "edited", "pid": 1643}

Can you help me to understand where to look for at this point? How can I understand from the RPi the lambda python function is executed and messages sent?

Thank you in advance

feita há 5 anos296 visualizações
2 Respostas
0

Hi diul,

Can you review your subscription settings to make sure they are correct? This would be one of the reasons your deploy is succeeding but the messages are not making it to the cloud. Make sure the topics are written without extra spaces or characters and they are from your HelloWorld lambda to the IoT Cloud. (You can re-read the instructions on this here, starting at section 9: https://docs.aws.amazon.com/greengrass/latest/developerguide/config-lambda.html )

Let me know if this helps and have a nice day,

davidpAWS

AWS
respondido há 5 anos
0

Sorry David, don't know why, but never received notification for your answer.
Btw, Once I set log to "Fatal exception logs", I saw from logs that even if the deployment was fine the lambda function was missing. The real problem was the way I zipped ".py" and "greengrasssdk".
The correct way is:

filename.zip
..|_ Lambdafunction.py
..|_ greengrasssdk

But initially I did

filename.zip
..|_ filename_folder
......|_ Lambdafunction.py
......|_ greengrasssdk

Edited by: diul on Mar 18, 2020 8:27 AM

respondido há 5 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas