So I deployed a device with the Secure Tunnelling component, and I get a few errors (I have posted said errors in another question), right now the error I can't figure out it's meaning is :
2024-07-17T18:46:36.402Z [INFO] (Copier) aws.greengrass.SecureTunneling: stdout. [ERROR] 2024-07-17 18:46:36.401 [pool-3-thread-1] SubscribeResponseHandler - Secure Tunneling Process: 2024-07-17T18:46:36.401Z [ERROR] {TcpForward.cpp}: TcpForward::OnConnectionResult error_code=1047. {scriptName=services.aws.greengrass.SecureTunneling.lifecycle.run.script, serviceName=aws.greengrass.SecureTunneling, currentState=RUNNING}
I cannot find any information about this specific error for secure tunnelling, therefore I cannot debug it. Any help is well received.
Hi Greg, thanks for your answer, seems that Im having the same problem. Couldnt find alternatives about root cause, can you give us some clues?
thanks
Hi Greg, we are still trying to fix this error without success. Do you have any clue about why this is happening? Or how to solve it?
The tunnel is already created and the devices connected but we cant ssh to the remote device because of this.
Thanks in advance.
Regards,
Hi. The secure tunneling component is a special build of AWS IoT Device Client, and this error message comes from here: https://github.com/awslabs/aws-iot-device-client/blob/cf738c82927f5a0020a58fda88a5de65b11a4574/source/tunneling/TcpForward.cpp#L107. Does your device meet all the requirements (specifically is the secure tunneling endpoint reachable and is port 443 open)? https://docs.aws.amazon.com/greengrass/v2/developerguide/secure-tunneling-component.html#secure-tunneling-component-requirements
Thank you Greg for your helpful comment on this post. @JoseMi what Greg has mentioned is right. You have to name sure the port is accessible otherwise component will not be able to establish a connection.