Azure / iotedge-eflow

Azure IoT Edge for Linux on Windows
https://aka.ms/azeflow-docs
MIT License
49 stars 29 forks source link

Microsoft Update - 0x80070643 #77

Closed Thacai closed 3 years ago

Thacai commented 3 years ago

Describe the bug We seem to be unable to update from 1.1.2107 to 1.1.2108 though Microsoft Update, it downloads, but fails at 41% installation, with error 0x80070643

To Reproduce Steps to reproduce the behavior:

  1. Update "Other Microsoft Products", new EFLOW update shows up
  2. Wait for Microsoft Update to install
  3. It fails with error 0x80070643

Expected behavior Expect to be able to update EFLOW from one version to the next Screenshots image

Windows Host OS (please complete the following information):

Additional context Once the MSI install has started, the event log(see below) shows wssdagent writing multiple "Incorrect function." events, afterwards the install fails.

Event Logs(Descending):

Log Name:      Application
Source:        MsiInstaller
Date:          20-09-2021 14:03:04
Event ID:      1042
Task Category: None
Level:         Information
Keywords:      Classic
User:          SYSTEM
Computer:      <snip>
Description:
Ending a Windows Installer transaction: C:\WINDOWS\SoftwareDistribution\Download\5ec8c0c56d3d957bb34684336fd4f0ff\img\AzureIoTEdge.msi. Client Process Id: 14284.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MsiInstaller" />
    <EventID Qualifiers="0">1042</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:04.8284632Z" />
    <EventRecordID>217743</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data>C:\WINDOWS\SoftwareDistribution\Download\5ec8c0c56d3d957bb34684336fd4f0ff\img\AzureIoTEdge.msi</Data>
    <Data>14284</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>
    </Data>
  </EventData>
</Event>

Log Name:      Application
Source:        MsiInstaller
Date:          20-09-2021 14:03:04
Event ID:      1033
Task Category: None
Level:         Information
Keywords:      Classic
User:          <snip>
Computer:      <snip>
Description:
Windows Installer installed the product. Product Name: Azure IoT Edge LTS. Product Version: 1.1.2108.0. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MsiInstaller" />
    <EventID Qualifiers="0">1033</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:04.7764572Z" />
    <EventRecordID>217742</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security UserID="<snip>" />
  </System>
  <EventData>
    <Data>Azure IoT Edge LTS</Data>
    <Data>1.1.2108.0</Data>
    <Data>1033</Data>
    <Data>1603</Data>
    <Data>Microsoft Corporation</Data>
    <Data>(NULL)</Data>
    <Data>
    </Data>
    <Binary>7B41374637313730322D314631352D344132412D393935392D3833314246413930443741367D3030303065386139653734656462623863396436386533653762663931613832613639333030303030393034</Binary>
  </EventData>
</Event>

Log Name:      Application
Source:        MsiInstaller
Date:          20-09-2021 14:03:04
Event ID:      11708
Task Category: None
Level:         Information
Keywords:      Classic
User:          <snip>
Computer:      <snip>
Description:
Product: Azure IoT Edge LTS -- Installation failed.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MsiInstaller" />
    <EventID Qualifiers="0">11708</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:04.7754572Z" />
    <EventRecordID>217741</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security UserID="<snip>" />
  </System>
  <EventData>
    <Data>Product: Azure IoT Edge LTS -- Installation failed.</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>
    </Data>
    <Binary>7B41374637313730322D314631352D344132412D393935392D3833314246413930443741367D</Binary>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:03:03
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:03.8924681Z" />
    <EventRecordID>217740</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>WSSD Agent Server started.</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:03:00
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:00.6984752Z" />
    <EventRecordID>217739</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>loading configuration</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:03:00
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:00.6984752Z" />
    <EventRecordID>217738</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>WSSD Agent Server (version 'v0.10.6-138-ge868915', MOC version 'v0.10.8-alpha.10')</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:03:00
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:03:00.6974747Z" />
    <EventRecordID>217737</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>starting wssdagent service</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:02:59
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:59.4511876Z" />
    <EventRecordID>217736</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>stopping service due to control request #{1 0 0 {4 5 0 0 0 0 0} 123456}</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:02:57
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:57.3965392Z" />
    <EventRecordID>217735</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>WSSD Agent Server started.</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:02:53
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:53.4972370Z" />
    <EventRecordID>217734</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>loading configuration</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:02:53
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:53.4972370Z" />
    <EventRecordID>217733</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>WSSD Agent Server (version 'v0.10.6-141-gca386de', MOC version 'v0.10.8-alpha.10')</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:02:53
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:53.4962451Z" />
    <EventRecordID>217732</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>starting wssdagent service</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        wssdagent
Date:          20-09-2021 14:02:45
Event ID:      1
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      <snip>
Description:
Incorrect function.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="wssdagent" />
    <EventID Qualifiers="0">1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:45.9925233Z" />
    <EventRecordID>217731</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security />
  </System>
  <EventData>
    <Data>stopping service due to control request #{1 0 0 {4 5 0 0 0 0 0} 123456}</Data>
  </EventData>
</Event>

Log Name:      Application
Source:        MsiInstaller
Date:          20-09-2021 14:02:41
Event ID:      1040
Task Category: None
Level:         Information
Keywords:      Classic
User:          <snip>
Computer:      <snip>
Description:
Beginning a Windows Installer transaction: C:\WINDOWS\SoftwareDistribution\Download\5ec8c0c56d3d957bb34684336fd4f0ff\img\AzureIoTEdge.msi. Client Process Id: 14284.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MsiInstaller" />
    <EventID Qualifiers="0">1040</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-09-20T12:02:41.7147685Z" />
    <EventRecordID>217730</EventRecordID>
    <Correlation />
    <Execution ProcessID="0" ThreadID="0" />
    <Channel>Application</Channel>
    <Computer><snip></Computer>
    <Security UserID="<snip>" />
  </System>
  <EventData>
    <Data>C:\WINDOWS\SoftwareDistribution\Download\5ec8c0c56d3d957bb34684336fd4f0ff\img\AzureIoTEdge.msi</Data>
    <Data>14284</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>(NULL)</Data>
    <Data>
    </Data>
  </EventData>
</Event>
fcabrera23 commented 3 years ago

Hi @Thacai,

Could you please make sure your EFLOW VM is up and running? Try the following

  1. Open an elevated PowerShell session
  2. Stop the VM using Stop-EflowVm
  3. Start the VM using Start-EflowVm
  4. Connect to the EFLOW VM using Connect-EflowVm
  5. Try applying the update again.

Thanks, Francisco

Thacai commented 3 years ago

Hi @Thacai,

Could you please make sure your EFLOW VM is up and running? Try the following

  1. Open an elevated PowerShell session
  2. Stop the VM using Stop-EflowVm
  3. Start the VM using Start-EflowVm
  4. Connect to the EFLOW VM using Connect-EflowVm
  5. Try applying the update again.

Thanks, Francisco

Hi, iotedge check was ok prior, and we also got telemetry from the modules, but I did as you wrote, but same issue.

One note, we're using custom INSTALLDIR and VHDXDIR, if that have any impact on why it might fail

fcabrera23 commented 3 years ago

Hi @Thacai,

We were able to replicate your issue. We're working on a fix now. In the meantime, you can always uninstall and do a fresh install using the latest MSI.

Thanks, Francisco

fcabrera23 commented 3 years ago

@Thacai,

We have fixed the issue that prevented the updates when using a custom MSI installation. In order to get this fixed, you'll have to install a fresh new MSI.

Thanks, Francisco