dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.46k stars 10.03k forks source link

.NET Core Hosting is corrupted after sysprep #47128

Closed leomoty closed 9 months ago

leomoty commented 1 year ago

Is there an existing issue for this?

Describe the bug

Same as described by #3851 and sadly closed without any solution, however the modules name changed:

After repairing .NET Hosting Bundle, these contents gets added to C:\Windows\System32\inetsrv\config\applicationhost.config:

            <add name="AspNetCoreModuleV2" image="%ProgramFiles%\IIS\Asp.Net Core Module\V2\aspnetcorev2.dll" />

And some other references.

Folder %ProgramFiles%\IIS is not present at all either. So aspnetcorev2.dll is missing.

After repair it works as intended, but it is suboptimal

Expected Behavior

.NET Hosting Bundle survives sysprep and user doesn't need to repair the installation when a new VM is created.

Steps To Reproduce

  1. Create an image with a tool such as packer, install the dotnet hosting and sysprep
  2. Verify that .NET hosting is corrupted

Exceptions (if any)

No response

.NET Version

6.0.14

Anything else?

dotnet --info

global.json file:
  Not found

Host:
  Version:      6.0.14
  Architecture: x64
  Commit:       2a90daa2cc

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info
adityamandaleeka commented 1 year ago

Thanks for bringing this up @leomoty.

cc @wtgodbe @joeloff

Looks like the linked issue (https://github.com/dotnet/aspnetcore/issues/3851) from 2018 has some investigation/theory but it got auto-closed.

joeloff commented 1 year ago

We could look at comparing the install/repair logs. Anything sysprep logs might be useful too. From scanning over the docs, it sounds like sysprep removes/reset SIDs to create clean images. It certainly sounds like it is changing the state of the image and ultimately requires the hosting bundle to be repaired.

There should be logs under %WINDIR%\System32\Sysprep\Panther. There's mention in the docs about sysprep logging warnings for issues it encounters so maybe there is something useful inside it. I'm hoping if it removed/deleted something that a log entry was created for it.

leomoty commented 1 year ago

So I was going to step through the sysprep by hand and check logs as described by @joeloff, to see if I could notice something wrong. I decided to take a look if that module dll exists, and I don't seem to find it on a first install, so maybe sysprep is not the culprit.

This is a brand new VM that just runs through the Hosting bundle install:

image

leomoty commented 1 year ago

Decided to attempt to repair, it wasn't able to find the msi, had to point to it. After repairing it looks indeed correct:

image

leomoty commented 1 year ago

So, I grabbed the logs from %TEMP%, and the baseline run shows:

[1064:09B4][2023-03-13T09:34:10]i200: Plan begin, 7 packages, action: Modify
[1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT VersionNT64 AND (VersionNT >= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false.
[1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to true.
[1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0")' evaluates to true.
[1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x64
[1064:09B4][2023-03-13T09:34:10]i052: Condition '(NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x86
[1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")' evaluates to true.
[1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x64
[1064:09B4][2023-03-13T09:34:10]i052: Condition '(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x86
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: WindowsServerHostingBundleOptions.msi, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: AspNetCoreModuleV2_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: DotNetRedistLts_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: None
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: DotNetRedistLts_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: None
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: SharedFxRedist_x64, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: SharedFxRedist_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: None

After repairing, we get:

[13CC:1338][2023-03-13T10:03:35]i200: Plan begin, 7 packages, action: Repair
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleLog_WindowsServerHostingBundleOptions.msi' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_000_WindowsServerHostingBundleOptions.msi.log'
[13CC:1338][2023-03-13T10:03:35]i052: Condition 'NOT VersionNT64 AND (VersionNT >= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false.
[13CC:1338][2023-03-13T10:03:35]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to true.
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleRollbackLog_AspNetCoreModuleV2_x64' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_001_AspNetCoreModuleV2_x64_rollback.log'
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleLog_AspNetCoreModuleV2_x64' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_001_AspNetCoreModuleV2_x64.log'
[13CC:1338][2023-03-13T10:03:35]i052: Condition 'VersionNT64 AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0")' evaluates to true.
[13CC:1338][2023-03-13T10:03:35]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x64
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x64' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_002_DotNetRedistLts_x64.log'
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleRollbackLog_DotNetRedistLts_x64' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_002_DotNetRedistLts_x64_rollback.log'
[13CC:1338][2023-03-13T10:03:35]i052: Condition '(NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[13CC:1338][2023-03-13T10:03:35]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x86
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleLog_DotNetRedistLts_x86' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_003_DotNetRedistLts_x86.log'
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleRollbackLog_DotNetRedistLts_x86' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_003_DotNetRedistLts_x86_rollback.log'
[13CC:1338][2023-03-13T10:03:35]i052: Condition 'VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")' evaluates to true.
[13CC:1338][2023-03-13T10:03:35]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x64
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleLog_SharedFxRedist_x64' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_004_SharedFxRedist_x64.log'
[13CC:1338][2023-03-13T10:03:35]i052: Condition '(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true.
[13CC:1338][2023-03-13T10:03:35]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x86
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleLog_SharedFxRedist_x86' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_005_SharedFxRedist_x86.log'
[13CC:1338][2023-03-13T10:03:35]i000: Setting string variable 'WixBundleRollbackLog_SharedFxRedist_x86' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313100333_005_SharedFxRedist_x86_rollback.log'
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: WindowsServerHostingBundleOptions.msi, state: Present, default requested: Repair, ba requested: Repair, execute: Repair, rollback: None, cache: No, uncache: No, dependency: Register
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: AspNetCoreModuleV2_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Repair, ba requested: Repair, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: Register
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: DotNetRedistLts_x64, state: Absent, default requested: Repair, ba requested: Repair, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: DotNetRedistLts_x86, state: Absent, default requested: Repair, ba requested: Repair, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: SharedFxRedist_x64, state: Present, default requested: Repair, ba requested: Repair, execute: Repair, rollback: None, cache: No, uncache: No, dependency: None
[13CC:1338][2023-03-13T10:03:35]i201: Planned package: SharedFxRedist_x86, state: Absent, default requested: Repair, ba requested: Repair, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
joeloff commented 1 year ago

Based on the first set of logs, the default operation is Modify. I'd expect that to be install. Are you using a commandline install script or something else like maybe Chocolatey? My one concern was that the IIS features weren't enabled, in which case the installer would bypass ANCM, but it seems to detect everything.

[1064:09B4][2023-03-13T09:34:10]i200: Plan begin, 7 packages, action: Modify
[1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to true.
[1064:09B4][2023-03-13T09:34:10]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None

This is likely being caused by the initial action being set to Modify and not Install

leomoty commented 1 year ago

Thanks for the answer, I dug on our own logs and this is how our tooling runs it as:

Executing the package 'DotNetCore Hosting'...
    Executing "path\to\exe\dotnet-hosting-6.0.14-win.exe" /passive

But according to the help, /install should be implied

joeloff commented 1 year ago

Correct, the default is installed, unless the bundle is already present, in which case it will default to repair/modify. With the full UI you can choose, but with /passive, only progress bars are shown and it will select Modify IIRC. Are you able to share the start of the first log? Before the engine gets to planning, it should be going through a detection phase. That might tell us why it's switching to modify. Normally, modify/repair options only become available if the bundle (EXE) is detected as installed.

leomoty commented 1 year ago

Here you go @joeloff, the following is the baseline log from /passive only

log ``` [1064:09B4][2023-03-13T09:34:10]i001: Burn v3.14.0.5722, Windows v10.0 (Build 20348: Service Pack 0), path: C:\Windows\Temp\{9E0D96B4-95EF-4B52-B570-E8902B43F7F1}\.cr\dotnet-hosting-6.0.14-win.exe [1064:09B4][2023-03-13T09:34:10]i000: Initializing string variable 'BundleNameShort' to value 'Microsoft .NET 6.0.14' [1064:09B4][2023-03-13T09:34:10]i000: Initializing string variable 'BundleNameSub' to value 'Windows Server Hosting' [1064:09B4][2023-03-13T09:34:10]i000: Initializing string variable 'InstallResetIISState' to value 'disable' [1064:09B4][2023-03-13T09:34:10]i000: Initializing string variable 'InstallNoIISState' to value 'disable' [1064:09B4][2023-03-13T09:34:10]i000: Initializing string variable 'ModifyResetIISState' to value 'disable' [1064:09B4][2023-03-13T09:34:10]i000: Initializing string variable 'ModifyNoIISState' to value 'disable' [1064:09B4][2023-03-13T09:34:10]i009: Command Line: '"-burn.clean.room=C:\eCM_Install\Windows Components Install\WindowsComponents\packages\dotnet-hosting-6.0.14-win.exe" -burn.filehandle.attached=560 -burn.filehandle.self=556 /passive' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\eCM_Install\Windows Components Install\WindowsComponents\packages\dotnet-hosting-6.0.14-win.exe' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\eCM_Install\Windows Components Install\WindowsComponents\packages\' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313093410.log' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation' [1064:0C34][2023-03-13T09:34:10]i000: Setting numeric variable 'WixStdBALanguageId' to value 1033 [1064:0C34][2023-03-13T09:34:10]i000: Setting version variable 'WixBundleFileVersion' to value '6.0.14.23074' [1064:09B4][2023-03-13T09:34:10]i100: Detect begin, 7 packages [1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Product or related product not found: {CBF09F01-5B9D-4E36-BBC4-D665ABE82C84} [1064:09B4][2023-03-13T09:34:10]i000: Setting version variable 'DotNetRedistLtsProductVersion_x64' to value '0.0.0.0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT VersionNT64' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'IISCoreWebEngineInstalled_x86' to value '1' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'IISW3SVCInstalled_x86' to value '1' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'IISCoreWebEngineInstalled_x64' to value '1' [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'IISW3SVCInstalled_x64' to value '1' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1)))' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i052: Condition '((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1))' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'InstallResetIISState' to value '1' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1)))' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i052: Condition '((IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1)) OR ((IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1))' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'ModifyResetIISState' to value '1' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_ANCM_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_FTS_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_LTS_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_RUNTIME_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_SHARED_CONFIG_CHECK_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_SHAREDFX_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT (OPT_NO_ANCM OR OPT_NO_ANCM=0 OR OPT_NO_FTS OR OPT_NO_FTS=0 OR OPT_NO_LTS OR OPT_NO_LTS=0 OR OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX=0 OR OPT_NO_RUNTIME OR OPT_NO_RUNTIME=0 OR OPT_NO_X86 OR OPT_NO_X86=0 OR OPT_NO_SHARED_CONFIG_CHECK OR OPT_NO_SHARED_CONFIG_CHECK=0)' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting numeric variable 'OPT_NO_X86_Exists' to value 1 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting version variable 'SharedFxRedistProductVersion_x64' to value '6.0.14.23074' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT VersionNT64' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_SHAREDFX_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_SHAREDFX' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_FTS_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_FTS' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_X86_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_X86' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_LTS_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_LTS' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_RUNTIME_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_RUNTIME' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_SHARED_CONFIG_CHECK_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_SHARED_CONFIG_CHECK' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'OPT_NO_ANCM_Exists' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i000: Setting string variable 'OPT_NO_ANCM' to value '0' [1064:09B4][2023-03-13T09:34:10]i052: Condition 'DotNetRedistLtsProductVersion_x64 = v48.59.55225' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i052: Condition 'DotNetRedistLtsProductVersion_x86 = v48.59.55225' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i052: Condition 'SharedFxRedistProductVersion_x64 = v6.0.14.23074' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i052: Condition 'SharedFxRedistProductVersion_x86 = v6.0.14.23074' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i101: Detected package: WindowsServerHostingBundleOptions.msi, state: Present, cached: Complete [1064:09B4][2023-03-13T09:34:10]i101: Detected package: AspNetCoreModuleV2_x86, state: Absent, cached: None [1064:09B4][2023-03-13T09:34:10]i101: Detected package: AspNetCoreModuleV2_x64, state: Absent, cached: None [1064:09B4][2023-03-13T09:34:10]i101: Detected package: DotNetRedistLts_x64, state: Absent, cached: Complete [1064:09B4][2023-03-13T09:34:10]i101: Detected package: DotNetRedistLts_x86, state: Absent, cached: Complete [1064:09B4][2023-03-13T09:34:10]i101: Detected package: SharedFxRedist_x64, state: Present, cached: Complete [1064:09B4][2023-03-13T09:34:10]i101: Detected package: SharedFxRedist_x86, state: Absent, cached: Complete [1064:09B4][2023-03-13T09:34:10]i199: Detect complete, result: 0x0 [1064:09B4][2023-03-13T09:34:10]i200: Plan begin, 7 packages, action: Modify [1064:09B4][2023-03-13T09:34:10]i052: Condition 'NOT VersionNT64 AND (VersionNT >= v6.1) AND (IISCoreWebEngineInstalled_x86=1) AND (IISW3SVCInstalled_x86=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to false. [1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (VersionNT64 >= v6.1) AND (IISCoreWebEngineInstalled_x64=1) AND (IISW3SVCInstalled_x64=1) AND (NOT OPT_NO_ANCM OR OPT_NO_ANCM="0")' evaluates to true. [1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0")' evaluates to true. [1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x64 [1064:09B4][2023-03-13T09:34:10]i052: Condition '(NOT OPT_NO_RUNTIME OR OPT_NO_RUNTIME="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true. [1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: DotNetRedistLts_x86 [1064:09B4][2023-03-13T09:34:10]i052: Condition 'VersionNT64 AND (NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0")' evaluates to true. [1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x64 [1064:09B4][2023-03-13T09:34:10]i052: Condition '(NOT OPT_NO_SHAREDFX OR OPT_NO_SHAREDFX="0") AND (NOT OPT_NO_X86 OR OPT_NO_X86="0")' evaluates to true. [1064:09B4][2023-03-13T09:34:10]w321: Skipping dependency registration on package with no dependency providers: SharedFxRedist_x86 [1064:09B4][2023-03-13T09:34:10]i201: Planned package: WindowsServerHostingBundleOptions.msi, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register [1064:09B4][2023-03-13T09:34:10]i201: Planned package: AspNetCoreModuleV2_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1064:09B4][2023-03-13T09:34:10]i201: Planned package: AspNetCoreModuleV2_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1064:09B4][2023-03-13T09:34:10]i201: Planned package: DotNetRedistLts_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: None [1064:09B4][2023-03-13T09:34:10]i201: Planned package: DotNetRedistLts_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: None [1064:09B4][2023-03-13T09:34:10]i201: Planned package: SharedFxRedist_x64, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1064:09B4][2023-03-13T09:34:10]i201: Planned package: SharedFxRedist_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: Yes, dependency: None [1064:09B4][2023-03-13T09:34:10]i299: Plan complete, result: 0x0 [1064:09B4][2023-03-13T09:34:10]i300: Apply begin [1064:09B4][2023-03-13T09:34:10]i010: Launching elevated engine process. [1064:09B4][2023-03-13T09:34:11]i011: Launched elevated engine process. [1064:09B4][2023-03-13T09:34:11]i012: Connected to elevated engine. [117C:1458][2023-03-13T09:34:11]i358: Pausing automatic updates. [117C:1458][2023-03-13T09:34:18]i359: Paused automatic updates. [117C:1458][2023-03-13T09:34:18]i360: Creating a system restore point. [117C:1458][2023-03-13T09:34:18]i362: System restore disabled, system restore point not created. [117C:1458][2023-03-13T09:34:18]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{44db1bf6-a5bf-4371-984a-05de6967b7fe}, resume: Active, restart initiated: No, disable resume: No [117C:1458][2023-03-13T09:34:18]i323: Registering package dependency provider: {8061237C-96D9-362B-82B6-979A1EC3AAA0}, version: 6.0.14.23074, package: WindowsServerHostingBundleOptions.msi [117C:1458][2023-03-13T09:34:18]i325: Registering dependency: {44db1bf6-a5bf-4371-984a-05de6967b7fe} on package provider: {8061237C-96D9-362B-82B6-979A1EC3AAA0}, package: WindowsServerHostingBundleOptions.msi [117C:1458][2023-03-13T09:34:18]i351: Removing cached package: DotNetRedistLts_x64, from path: C:\ProgramData\Package Cache\23309D96A68CD383F205B93FE1F339FF72137220\ [117C:1458][2023-03-13T09:34:18]i351: Removing cached package: DotNetRedistLts_x86, from path: C:\ProgramData\Package Cache\C6F585E11FE55B4905E79DE41BB4D08DABA8C4E1\ [117C:1458][2023-03-13T09:34:18]i351: Removing cached package: SharedFxRedist_x86, from path: C:\ProgramData\Package Cache\D90047CB75E349C0622C148CE86579F2DACD7B05\ [117C:1458][2023-03-13T09:34:18]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{44db1bf6-a5bf-4371-984a-05de6967b7fe}, resume: ARP, restart: None, disable resume: No [117C:1458][2023-03-13T09:34:18]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{44db1bf6-a5bf-4371-984a-05de6967b7fe}, resume: ARP, restart initiated: No, disable resume: No [1064:09B4][2023-03-13T09:34:18]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No [1064:09B4][2023-03-13T09:34:18]i500: Shutting down, exit code: 0x0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: BundleNameShort = Microsoft .NET 6.0.14 [1064:09B4][2023-03-13T09:34:18]i410: Variable: BundleNameSub = Windows Server Hosting [1064:09B4][2023-03-13T09:34:18]i410: Variable: DotNetRedistLtsProductVersion_x64 = 0.0.0.0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: IISCoreWebEngineInstalled_x64 = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: IISCoreWebEngineInstalled_x86 = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: IISW3SVCInstalled_x64 = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: IISW3SVCInstalled_x86 = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: InstallNoIISState = disable [1064:09B4][2023-03-13T09:34:18]i410: Variable: InstallResetIISState = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: ModifyNoIISState = disable [1064:09B4][2023-03-13T09:34:18]i410: Variable: ModifyResetIISState = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_ANCM = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_ANCM_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_FTS = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_FTS_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_LTS = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_LTS_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_RUNTIME = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_RUNTIME_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_SHARED_CONFIG_CHECK = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_SHARED_CONFIG_CHECK_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_SHAREDFX = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_SHAREDFX_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_X86 = 0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: OPT_NO_X86_Exists = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: SharedFxRedistProductVersion_x64 = 6.0.14.23074 [1064:09B4][2023-03-13T09:34:18]i410: Variable: VersionNT = 10.0.0.0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: VersionNT64 = 10.0.0.0 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleAction = 6 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleElevated = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleFileVersion = 6.0.14.23074 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleInstalled = 1 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleLog = C:\Users\VISICU~1\AppData\Local\Temp\dd_dd_DotNetCoreWinSvrHosting__20230313093410.log [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleManufacturer = Microsoft Corporation [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleName = Microsoft .NET 6.0.14 - Windows Server Hosting [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleOriginalSource = C:\Windows\DotnetcoreHostBundle\dotnet-hosting-6.0.14-win.exe [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleOriginalSourceFolder = C:\Windows\DotnetcoreHostBundle\ [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleProviderKey = 76df85e0-b371-31e1-b3f1-a1c643d9acbd [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleSourceProcessFolder = C:\eCM_Install\Windows Components Install\WindowsComponents\packages\ [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleSourceProcessPath = C:\eCM_Install\Windows Components Install\WindowsComponents\packages\dotnet-hosting-6.0.14-win.exe [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleTag = [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleUILevel = 3 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixBundleVersion = 6.0.14.23074 [1064:09B4][2023-03-13T09:34:18]i410: Variable: WixStdBALanguageId = 1033 [1064:09B4][2023-03-13T09:34:18]i007: Exit code: 0x0, restarting: No ```
ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

leomoty commented 1 year ago

I am just not convinced this is a sysprep issue anymore, it is just not surviving the sysprep process because the first install is running a modify, as explained by @joeloff.

dotnet-policy-service[bot] commented 9 months ago

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

dotnet-policy-service[bot] commented 9 months ago

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

leomoty commented 9 months ago

As outlined in past, this is just a dupe of #47791