fota_download: download_with_offset failed to connect with error -95

Hi Nordic, 

Environment

nRF SDK 1.9.1
device - nRF1960

Server

The application and delta modem update files are stored on the AWS S3 bucket and served by the AWS cloudFront.

These files are accessed and downloading by basic authentication in the device. Uses HTTPS prototol (42 securiy tag). CA certificate provision has been writen to the modem.  

Problem

I am facing this below problem during delta modem update using fota download. I am successfully able to download application fota update but not the delta modem update.
I am downloding application update first and after that delta modem update. 

It was possible for me to download both the upates two months back but not now. In november 2022, CA certificates got renewed. 

If I use new CA certificate to access and download the fota updates I get below error.

[09:09:41.130,500] <err> download_client: Unable to connect, errno 111


if i use old CA cerificate, I got below error.

[09:09:29.745,100] <inf> download_client: Downloaded 402432/414359 bytes (97%)
[09:09:30.119,000] <inf> download_client: Downloaded 403456/414359 bytes (97%)
[09:09:30.358,400] <inf> download_client: Downloaded 404480/414359 bytes (97%)
[09:09:30.652,300] <inf> download_client: Downloaded 405504/414359 bytes (97%)
[09:09:30.905,600] <inf> download_client: Downloaded 406528/414359 bytes (98%)
[09:09:31.396,100] <inf> download_client: Downloaded 407552/414359 bytes (98%)
[09:09:31.719,500] <inf> download_client: Downloaded 408576/414359 bytes (98%)
[09:09:32.061,400] <inf> download_client: Downloaded 409600/414359 bytes (98%)
[09:09:32.314,500] <inf> download_client: Downloaded 410624/414359 bytes (99%)
[09:09:32.750,600] <inf> download_client: Downloaded 411648/414359 bytes (99%)
[09:09:33.031,500] <inf> download_client: Downloaded 412672/414359 bytes (99%)
[09:09:33.351,400] <inf> download_client: Downloaded 413696/414359 bytes (99%)
[09:09:33.573,500] <inf> download_client: Downloaded 414359/414359 bytes (100%)
[09:09:33.676,500] <inf> download_client: Download complete
[09:09:37.675,500] <inf> download_client: Setting up TLS credentials, tag 42
[09:09:37.675,700] <inf> download_client: Configuring socket timeout (600 s)
[09:09:37.675,700] <inf> download_client: Connecting to mc-repo.mcapps.jp
[09:09:39.126,400] <inf> download_client: Downloading: https://mc-repo.mcapps.jp/im830/mobi/bin/modem/1.3.2/modem_update_132.bin [0]
[09:09:39.741,500] <inf> download_client: Downloaded 1024/233292 bytes (0%)
[09:09:39.743,900] <inf> download_client: Fragment refused, download stopped.
[09:09:41.014,800] <inf> download_client: Setting up TLS credentials, tag 42
[09:09:41.015,000] <inf> download_client: Configuring socket timeout (600 s)
[09:09:41.015,000] <inf> download_client: Connecting to mc-repo.mcapps.jp
[09:09:41.130,500] <err> download_client: Unable to connect, errno 95
[09:09:41.131,100] <err> fota_download: download_with_offset failed to connect with error -95

 

Please help me in solving this issue.

Best Regards

Praveen Deshmane

Related