hi, I followed step by step instructions to set up AWS via balena clouds for RPI from here:
I cant see the pyton script to return anything into cloud (like messages with 1,2,3,4 examples shows).
my log shows the following:
Traceback (most recent call last):
01.05.20 16:54:52 (+0300) main File “src/main.py”, line 57, in
01.05.20 16:54:52 (+0300) main mqtt_client.connect()
01.05.20 16:54:52 (+0300) main File “/usr/local/lib/python3.5/site-packages/AWSIoTPythonSDK/MQTTLib.py”, line 355, in connect
01.05.20 16:54:52 (+0300) main return self._mqttCore.connect(keepAliveIntervalSecond)
01.05.20 16:54:52 (+0300) main File “/usr/local/lib/python3.5/site-packages/AWSIoTPythonSDK/core/protocol/mqttCore.py”, line 291, in connect
01.05.20 16:54:52 (+0300) main raise connectTimeoutException()
01.05.20 16:54:52 (+0300) main core.exception.AWSIoTExceptions.connectTimeoutException
01.05.20 16:55:10 (+0300) Service exited ‘main sha256:849e202f3bf194a01b7b1e0a646e82e66cceb8ce79a01c1e700f97991b9ce723’
01.05.20 16:55:36 (+0300) Restarting service ‘main sha256:849e202f3bf194a01b7b1e0a646e82e66cceb8ce79a01c1e700f97991b9ce723’
01.05.20 16:54:52 (+0300) main Traceback (most recent call last):
01.05.20 16:54:52 (+0300) main File “src/main.py”, line 57, in
01.05.20 16:54:52 (+0300) main mqtt_client.connect()
01.05.20 16:54:52 (+0300) main File “/usr/local/lib/python3.5/site-packages/AWSIoTPythonSDK/MQTTLib.py”, line 355, in connect
01.05.20 16:54:52 (+0300) main return self._mqttCore.connect(keepAliveIntervalSecond)
01.05.20 16:54:52 (+0300) main File “/usr/local/lib/python3.5/site-packages/AWSIoTPythonSDK/core/protocol/mqttCore.py”, line 291, in connect
01.05.20 16:54:52 (+0300) main raise connectTimeoutException()
01.05.20 16:54:52 (+0300) main core.exception.AWSIoTExceptions.connectTimeoutException
01.05.20 16:55:49 (+0300) main MQTT Thing Starting…
01.05.20 16:56:00 (+0300) main Connect timeout.
01.05.20 16:56:08 (+0300) main Traceback (most recent call last):
01.05.20 16:56:08 (+0300) main File “src/main.py”, line 57, in
01.05.20 16:56:08 (+0300) main mqtt_client.connect()
01.05.20 16:56:08 (+0300) main File “/usr/local/lib/python3.5/site-packages/AWSIoTPythonSDK/MQTTLib.py”, line 355, in connect
01.05.20 16:56:08 (+0300) main return self._mqttCore.connect(keepAliveIntervalSecond)
01.05.20 16:56:08 (+0300) main File “/usr/local/lib/python3.5/site-packages/AWSIoTPythonSDK/core/protocol/mqttCore.py”, line 291, in connect
01.05.20 16:56:08 (+0300) main raise connectTimeoutException()
01.05.20 16:56:08 (+0300) main core.exception.AWSIoTExceptions.connectTimeoutException
01.05.20 16:56:16 (+0300) Service exited ‘main sha256:849e202f3bf194a01b7b1e0a646e82e66cceb8ce79a01c1e700f97991b9ce723’
01.05.20 16:56:32 (+0300) Restarting service ‘main sha256:849e202f3bf194a01b7b1e0a646e82e66cceb8ce79a01c1e700f97991b9ce723’
01.05.20 16:56:08 (+0300) main Traceback (most recent call last):
Please advice me something to fix the issue.
I wonder during a setup it is possible that I a bit messed up with certificate files. File names are different in instruction link and in real system. Might be this was an issue. I’m sure only in file which has a ‘private’ tag in a name.