Greengrass SecureTunnelling failing to start tunnel 2nd time

0

Using the SecureTunneling compnent 1.0.16 I had opened a tunnel previously, and this had worked, and then later on tried to open another one and found it failed continuously. Closing the previously opened tunnels didn't help. After I manually restarted the component with greengrass-cli component restart -n aws.greengrass.SecureTunneling I was able to connect. I found in the logs the error messages below - is this a known issue, or is there a way to address this problem ?

2023-08-07T07:10:35.526Z [INFO] (Copier) aws.greengrass.SecureTunneling: stdout. Caused by: software.amazon.awssdk.aws.greengrass.model.ServiceError: Subscribe to topic $aws/things/my-device/tunnels/notify failed with error java.util.concurrent.CompletionException: software.amazon.awssdk.crt.CrtRuntimeException: Mqtt5 operation failed due to a disconnection event in conjunction with the client's offline queue retention policy. AWS_ERROR_MQTT5_OPERATION_FAILED_DUE_TO_OFFLINE_QUEUE_POLICY(5156). {scriptName=services.aws.greengrass.SecureTunneling.lifecycle.run.script, serviceName=aws.greengrass.SecureTunneling, currentState=RUNNING}
2023-08-07T07:10:35.527Z [INFO] (Copier) aws.greengrass.SecureTunneling: stdout. at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:?]. {scriptName=services.aws.greengrass.SecureTunneling.lifecycle.run.script, serviceName=aws.greengrass.SecureTunneling, currentState=RUNNING}
2023-08-07T07:10:35.527Z [INFO] (Copier) aws.greengrass.SecureTunneling: stdout. at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:?]. {scriptName=services.aws.greengrass.SecureTunneling.lifecycle.run.script, serviceName=aws.greengrass.SecureTunneling, currentState=RUNNING}
2023-08-07T07:10:35.527Z [INFO] (Copier) aws.greengrass.SecureTunneling: stdout. at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]. {scriptName=services.aws.greengrass.SecureTunneling.lifecycle.run.script, serviceName=aws.greengrass.SecureTunneling, currentState=RUNNING}
2023-08-07T07:10:35.527Z [INFO] (Copier) aws.greengrass.SecureTunneling: stdout. at java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[?:?]. {scriptName=services.aws.greengrass.SecureTunneling.lifecycle.run.script, serviceName=aws.greengrass.SecureTunneling, currentState=RUNNING}

The compnent configuration was completely default as below

Component Name: aws.greengrass.SecureTunneling
    Version: 1.0.16
    State: RUNNING
    Configuration: {"accessControl":{"aws.greengrass.ipc.mqttproxy":{"aws.greengrass.SecureTunneling:mqttproxy:1":{"operations":["aws.greengrass#SubscribeToIoTCore"],"policyDescription":"Access to tunnel notification pubsub topic","resources":["$aws/things/+/tunnels/notify"]}}},"OS_DIST_INFO":"auto"}

  • Thank you for reaching out to us. From the initial look of it, it looks like component is failing to subscribe to the Secure Tunneling MQTT topic. Give me some time to reproduce and investigate this issue further. It is possible that this was just an intermittent failure which happened because of bad internet connection. But let me investigate this issue further to investigate.

majh
질문됨 9달 전211회 조회
1개 답변
0

Hi there,

The error usually means that the operation fails because the client is offline or it can also happen when the client is disconnected and there are pending operations. A full log would help with identifying the actual issue behind the error. Hence, to answer this, we would need more information regarding details on your setup which may include non-public information. To guide you effectively, please open a support case with AWS using the following link.

https://console.aws.amazon.com/support/home#/case/create

Thank you!

AWS
지원 엔지니어
답변함 9달 전
profile picture
전문가
검토됨 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인