aws-samples / aws-iot-securetunneling-localproxy

AWS Iot Secure Tunneling local proxy reference C++ implementation
https://docs.aws.amazon.com/iot/latest/developerguide/what-is-secure-tunneling.html
Apache License 2.0
74 stars 71 forks source link

Not able to connect through secure tunnel #50

Closed harishm18 closed 3 years ago

harishm18 commented 3 years ago

Please help me out I am getting the below issue.

2021-06-01T22:25:17.750Z [DEBUG] {Config.cpp}: Did not find a runtime configuration file, assuming Fleet Provisioning has not run for this device 2021-06-01T22:25:17.750Z [INFO] {Main.cpp}: Now running AWS IoT Device Client version v1.2.0 2021-06-01T22:25:17.751Z [INFO] {SharedCrtResourceManager.cpp}: SDK logging is disabled. Enable it with --enable-sdk-logging on the command line or logging::enable-sdk-logging in your configuration file 2021-06-01T22:25:17.751Z [DEBUG] {Retry.cpp}: Retryable function will retry until success 2021-06-01T22:25:17.755Z [INFO] {SharedCrtResourceManager.cpp}: Establishing MQTT connection with client id HarishMachine... 2021-06-01T22:25:19.960Z [INFO] {SharedCrtResourceManager.cpp}: MQTT connection established with return code: 0 2021-06-01T22:25:19.960Z [INFO] {SharedCrtResourceManager.cpp}: Shared MQTT connection is ready! 2021-06-01T22:25:19.960Z [INFO] {Main.cpp}: Jobs is disabled 2021-06-01T22:25:19.961Z [INFO] {Main.cpp}: Secure Tunneling is enabled 2021-06-01T22:25:19.961Z [INFO] {Main.cpp}: Device Defender is disabled 2021-06-01T22:25:19.961Z [INFO] {Main.cpp}: Pub Sub is disabled 2021-06-01T22:25:19.961Z [INFO] {SecureTunneling.cpp}: Running Secure Tunneling! 2021-06-01T22:25:19.961Z [INFO] {Main.cpp}: Client base has been notified that Secure Tunneling has started 2021-06-01T22:25:20.290Z [DEBUG] {SecureTunneling.cpp}: Received MQTT Tunnel Notification 2021-06-01T22:25:20.290Z [ERROR] {SecureTunneling.cpp}: OnSubscribeToTunnelsNotifyResponse received error. ioErr=5138 2021-06-01T22:25:20.290Z [DEBUG] {SecureTunneling.cpp}: Subscribed to tunnel notification topic 2021-06-01T22:25:20.290Z [ERROR] {SecureTunneling.cpp}: Couldn't subscribe to tunnel notification topic. ioErr=5138

MiaoZhangAWS commented 3 years ago

@harishm18 , thanks for contacting us. Can you check if you report the issue into the right repository? From the logs you posted, it looks like belong to repo aws-iot-device-client.