My nrf9160 connects to AWS when using the AWS FOTA example. However, when I start the custom job as setup from the following link:
I get the following in the termite terminal window:
see the first error AWS_FOTA_EVT_ERROR below
LTE Link Connected!
IPv4 Address 52.15.223.13
client_id: nrf-352656100047698
[mqtt_evt_handler:209] MQTT client connected!
[mqtt_evt_handler:262] PUBACK packet id: 28212
[mqtt_evt_handler:272] SUBACK packet id: 2114
[00:00:38.854,400] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352656100047698/jobs/notify-next[1B][0m
[00:00:38.856,109] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352656100047698/jobs/$next/get/#[1B][0m
[00:00:39.259,735] [1B][0m<inf> aws_fota: subscribed to notify-next topic[1B][0m
[00:00:39.259,826] [1B][0m<inf> aws_jobs: Publish topic: $aws/things/nrf-352656100047698/jobs/$next/get[1B][0m
[00:00:39.259,826] [1B][0m<inf> aws_jobs: Publish payload {"clientToken": ""}[1B][0m
[mqtt_evt_handler:262] PUBACK packet id: 41283
[00:00:40.077,911] [1B][0m<inf> aws_fota: Received topic: $aws/things/nrf-352656100047698/jobs/$next/get/accepted[1B][0m
[00:00:40.078,125] [1B][0m<inf> aws_fota: Got only one field: {"clientToken":"","timestamp":1580875619}[1B][0m
[mqtt_evt_handler:277] default: 8
[00:00:59.907,440] [1B][0m<inf> aws_fota: Received topic: $aws/things/nrf-352656100047698/jobs/notify-next[1B][0m
[00:00:59.908,050] [1B][0m<inf> aws_jobs: Unsubscribe: $aws/things/nrf-352656100047698/jobs/notify-next[1B][0m
[00:00:59.909,149] [1B][0m<inf> aws_jobs: Subscribe: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update/#[1B][0m
[00:01:00.715,301] [1B][0m<inf> aws_jobs: Publish topic: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update[1B][0m
[00:01:00.715,332] [1B][0m<inf> aws_jobs: Publish payload {"status":"IN_PROGRESS","statusDetails": {"nextState":"download_firmware"},"expectedVersion": "1","clientToken": ""}[1B][0m
[mqtt_evt_handler:262] PUBACK packet id: 23440
[00:01:01.559,356] [1B][0m<inf> aws_fota: Received topic: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update/accepted[1B][0m
[00:01:01.559,448] [1B][0m<dbg> aws_fota.aws_fota_on_publish_evt: Job document update was accepted[1B][0m
[00:01:01.559,539] [1B][0m<inf> aws_fota: Start downloading firmware from s3.us-east-2.amazonaws.com/app_update.bin[1B][0m
[00:01:01.915,649] [1B][0m<inf> download_client: Attempting to connect over IPv4[1B][0m
[00:01:02.235,290] [1B][0m<inf> download_client: Connected to s3.us-east-2.amazonaws.com[1B][0m
[00:01:02.235,321] [1B][0m<inf> download_client: Downloading: /app_update.bin [0][1B][0m
AWS_FOTA_EVT_ERROR
[mqtt_evt_handler:262] PUBACK packet id: 20563
[00:01:02.625,671] [1B][1;31m<err> download_client: Server did not send "Content-Range" in response[1B][0m
[00:01:02.627,288] [1B][1;31m<err> fota_download: Download client error[1B][0m
[00:01:02.627,288] [1B][1;31m<err> fota_download: Unable to deinitialze resources used by dfu_target.[1B][0m
[00:01:02.627,288] [1B][1;31m<err> aws_fota: FOTA download failed, report back[1B][0m
[00:01:02.627,502] [1B][0m<inf> aws_jobs: Publish topic: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update[1B][0m
[00:01:02.627,532] [1B][0m<inf> aws_jobs: Publish payload {"status":"FAILED","statusDetails": {"nextState":"download_firmware"},"expectedVersion": "2","clientToken": ""}[1B][0m
[00:01:03.546,295] [1B][0m<inf> aws_fota: Received topic: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update/accepted[1B][0m
[00:01:03.546,356] [1B][0m<dbg> aws_fota.aws_fota_on_publish_evt: Job document update was accepted[1B][0m
[00:01:03.546,447] [1B][0m<inf> aws_fota: Start downloading firmware from s3.us-east-2.amazonaws.com/app_update.bin[1B][0m
[00:01:03.547,424] [1B][0m<inf> download_client: Attempting to connect over IPv4[1B][0m
[00:01:03.989,349] [1B][0m<inf> download_client: Connected to s3.us-east-2.amazonaws.com[1B][0m
[00:01:03.989,379] [1B][0m<inf> download_client: Downloading: /app_update.bin [0][1B][0m
AWS_FOTA_EVT_ERROR
[00:01:05.036,529] [1B][1;31m<err> download_client: Server did not send "Content-Range" in response[1B][0m
[00:01:05.041,290] [1B][1;31m<err> fota_download: Download client error[1B][0m
[00:01:05.041,290] [1B][1;31m<err> fota_download: Unable to deinitialze resources used by dfu_target.[1B][0m
[00:01:05.041,290] [1B][1;31m<err> aws_fota: FOTA download failed, report back[1B][0m
[00:01:05.041,503] [1B][0m<inf> aws_jobs: Publish topic: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update[1B][0m
[00:01:05.041,534] [1B][0m<inf> aws_jobs: Publish payload {"status":"FAILED","statusDetails": {"nextState":"download_firmware"},"expectedVersion": "3","clientToken": ""}[1B][0m
[mqtt_evt_handler:262] PUBACK packet id: 34129
AWS_FOTA_EVT_ERROR
aws_fota_mqtt_evt_handler: Failed! -14
[mqtt_evt_handler:227] MQTT PUBLISH result=0 len=281
mqtt_read_publish_payload: Failed! -36
Disconnecting MQTT client...
Received:
[mqtt_evt_handler:220] MQTT client disconnected 0
POLLNVAL
Disconnecting MQTT client...
Could not disconnect MQTT client. Error: -57
[00:01:06.747,833] [1B][0m<inf> aws_fota: Received topic: $aws/things/nrf-352656100047698/jobs/nrf9150fwota_020220_04/update/rejected[1B][0m
[00:01:06.747,924] [1B][1;31m<err> aws_fota: Job document update was rejected[1B][0m