# Airvantage Application update failes with code 500 from avcDaemon

**URL:** <https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447>\
**Category:** Services\
**Created:** [March 20, 2017, 4:06pm UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447 "2017-03-20T16:06:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomalex](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tomalex](https://mangoh.discourse.group/u/tomalex)\
**Post date:** [March 20, 2017, 4:06pm UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447/1 "2017-03-20T16:06:11Z")

</div>

Dear community,

I have spent too much time for this issue but i have no idea how to do anything differently. I always get the following error message: “avcDaemon[505]/le\_pa\_avc T=unknown | pa\_avc\_qmi.c ProcessAvmsState() 406 | Download failed. Avms update\_complete\_status 500.” It is some kind of timeout but i don’t know why.

Here is the complete log:

> Mar 20 16:00:46 | lwm2mCtrlDaemon[4638]/lwm2mControl T=main | lwm2mControl.c StatusHandler() 128 | Air Vantage agent reported update status: SESSION\_STARTED  
> Mar 20 16:00:46 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:00:47 | lwm2mCtrlDaemon[4638]/lwm2mControl T=main | lwm2mControl.c StatusHandler() 128 | Air Vantage agent reported update status: UNINSTALL\_PENDING  
> Mar 20 16:00:47 | lwm2mCtrlDaemon[4638]/lwm2mControl T=main | lwm2mControl.c StatusHandler() 152 | Accepting APPLICATION uninstall.  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | assetData.c assetData\_DeleteInstance() 3160 | Deleting instance sample10\_airvantageControl/0/0  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | assetData.c assetData\_DeleteInstance() 3160 | Deleting instance sample10\_airvantageControl/1/0  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:00:47 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:01:07 | lwm2mCtrlDaemon[4638]/lwm2mControl T=main | lwm2mControl.c StatusHandler() 128 | Air Vantage agent reported update status: NO\_UPDATE  
> Mar 20 16:01:43 | avcDaemon[504]/le\_pa\_avc T=unknown | pa\_avc\_qmi.c ProcessAvmsState() 358 | Received User App update  
> Mar 20 16:01:43 | avcDaemon[504]/le\_pa\_avc T=unknown | pa\_avc\_qmi.c ProcessAvmsState() 406 | Download failed. Avms update\_complete\_status 500.  
> Mar 20 16:01:43 | lwm2mCtrlDaemon[4638]/lwm2mControl T=main | lwm2mControl.c StatusHandler() 128 | Air Vantage agent reported update status: DOWNLOAD\_FAILED  
> Mar 20 16:01:44 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData  
> Mar 20 16:01:44 | avcDaemon[504]/avcDaemon T=main | lwm2m.c OperationHandler() 143 | Defaulting to lwm2m namespace for assetData

It is simply the modified airvantageControl sample application. I have also tried with an older version of legato with the same result. I have a feeling that i am missing a simple step. Could someone give me a hint what i am doing wrong?

thanks,  
tom

---

<div class="post-metadata">

**Author:** ![happytuna](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/happytuna/32/102_2.png) [@happytuna](https://mangoh.discourse.group/u/happytuna)\
**Post date:** [March 23, 2017, 9:33am UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447/2 "2017-03-23T09:33:13Z")

</div>

Hi, I think the “NO\_UPDATE” message would be the first clue. What exactly have you tried to do from Air Vantage, uninstall an app, release a new app to a device or upgrade an existing app ? For an upgrade, the upgraded zip package has to be available in air vantage.

The status handler messages only reflect what Air Vantage is telling it, so any problems are likely to originate there.

---

<div class="post-metadata">

**Author:** ![tomalex](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tomalex](https://mangoh.discourse.group/u/tomalex)\
**Post date:** [March 23, 2017, 10:39am UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447/3 "2017-03-23T10:39:16Z")

</div>

Hello Happytuna,

Thanks for your answer.

I succesfully released the applications with zip files, i tested with several applications/Sim cards/mangoh green devices. I can test it later with FX30. I also used the av-pack manually, no luck. Uninstall application works. I have also seen problems with the avcDaemon configurations (AT commands) and a few days ago during the night the avcDaemon simply forget to connect to the airvantage again with (lv\_avc\_SetPollingTimer()) maybe invoking only le\_avc\_StartSession() works i didn’t try it. My opinion is that avcDaemon has some issues or it simply doesn’t like me! 🙂  
We ended up implementing remote update with FTP which works fine.  
I must say apart from this issue ( and the I2c bus instability on Mangoh Green) we are really satisfied with Legato&Mangoh.  
Hope somebody has an idea, i am pretty sure it is a setting, configuration issues somewhere as others have no problems with updates with Airvantage.

Cheers,  
tom

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 23, 2017, 3:40pm UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447/4 "2017-03-23T15:40:24Z")

</div>

Can you provide the output of `cm info` and `legato version`? I want to verify that all of the software components are compatible.

---

<div class="post-metadata">

**Author:** ![tomalex](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tomalex](https://mangoh.discourse.group/u/tomalex)\
**Post date:** [March 23, 2017, 4:01pm UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447/5 "2017-03-23T16:01:27Z")

</div>

Hi David,  
cm info:  
Device: WP8548  
IMEI: 359377060013298  
FSN: LL540300051303  
Firmware: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Bootloader: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
priIdPn: 9905383  
priIdRev: 01.07  
skuId: 1102816

legato:  
16.10.1\_a6a25fbda05738774857dccb9fd76a99\_modified

BR  
tom

---

<div class="post-metadata">

**Author:** ![tomalex](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tomalex](https://mangoh.discourse.group/u/tomalex)\
**Post date:** [April 6, 2017, 8:48am UTC](https://mangoh.discourse.group/t/airvantage-application-update-failes-with-code-500-from-avcdaemon/447/6 "2017-04-06T08:48:15Z")

</div>

Dear Community,

I have found out in the firmware note 13.1 that my issue is a known issue and it is because that my mobile network does not support NITZ messages and the modem’s time is not correct see:

> QTI9X1555-  
> 1009  
> FOTA/SOTA fails if the  
> attached network doesn’t  
> authorize the update of the  
> local time  
> When the NITZ information is not provided by  
> the attached network, the installation FW  
> /Bundle fails as the TLS certificate requires a  
> valid date.  
> As a workaround, the current date may be  
> manually set via AT!TIME, e.g.  
> at!time=2017,01,31,00,00,00  
> OR via the kernel console:  
> echo -e  
> “at!time=2017,01,31,00,00,00\r” |  
> microcom -t500 /dev/ttyAT

I am not quite sure why this time is used when it is in the 80s and there is a linux time which could be correct.  
Another thing what i have noticed that if any app that binds to the avc service it can block the updates even if it does not subscribe to any handles. The default should be that it allows the updates and can request with APIs to block specific/all updates.

tom
