Open gligorisaev opened 3 weeks ago
UPDATE
After detailed check, the connection is at this point NOT established
@gligorisaev I would check the following things (as I suspect it is just a configuration problem):
abcdef12345-ats.iot.us-east-1.amazonaws.com
, not the *console*
url that you posted. If the URL is wrong, then you will also have to change the AWS policy that you uploaded as the policy references the same URL (multiple times)@gligorisaev can we close this issue? I suspect it is just a configuration error. Beside that, we have some test coverage coming in #3097
@gligorisaev can we close this issue? I suspect it is just a configuration error. Beside that, we have some test coverage coming in #3097
fine with me
Describe the bug
Connecting device to AWS following the instructions from:
https://thin-edge.github.io/thin-edge.io/start/connect-aws/#user-context
is returning error:
ERROR: Local MQTT publish has timed out.
To Reproduce
sudo tedge cert create --device-id AWSthinedge
sudo tedge config set aws.url "us-east-1.console.aws.amazon.com"
sudo tedge connect aws
Checking if configuration for requested bridge already exists.
Validating the bridge certificates.
Saving configuration for requested bridge.
Restarting mosquitto service.
Awaiting mosquitto to start. This may take up to 5 seconds.
Enabling mosquitto service on reboots.
Successfully created bridge connection!
Sending packets to check connection. This may take up to 2 seconds.
Connection test failed, attempt 1 of 5
Sending packets to check connection. This may take up to 2 seconds.
Connection test failed, attempt 2 of 5
Sending packets to check connection. This may take up to 2 seconds.
Connection test failed, attempt 3 of 5
Sending packets to check connection. This may take up to 2 seconds.
Connection test failed, attempt 4 of 5
Sending packets to check connection. This may take up to 2 seconds.
Warning: Bridge has been configured, but Aws connection check failed.
Checking if tedge-mapper is installed.
Starting tedge-mapper-aws service.
Persisting tedge-mapper-aws on reboot.
tedge-mapper-aws service successfully started and enabled!
stderr: ERROR: Local MQTT publish has timed out. ERROR: Local MQTT publish has timed out. ERROR: Local MQTT publish has timed out. ERROR: Local MQTT publish has timed out. ERROR: Local MQTT publish has timed out.
Checking if systemd is available.
Checking if configuration for requested bridge already exists.
Validating the bridge certificates.
Saving configuration for requested bridge.
Restarting mosquitto service.
Awaiting mosquitto to start. This may take up to 5 seconds.
Enabling mosquitto service on reboots.
Successfully created bridge connection!
Sending packets to check connection. This may take up to 2 seconds.
Received expected response on topic aws/connection-success, connection check is successful. Connection check is successful.
Checking if tedge-mapper is installed.
Starting tedge-mapper-aws service.
Persisting tedge-mapper-aws on reboot.
tedge-mapper-aws service successfully started and enabled!