Skip to content

Windows MSI creation fails for 0.29.0 #784

Closed

Description

@katre

Failure in bazel-0.29.0 release: https://buildkite.com/bazel-trusted/bazel-release/builds/86#661817f8-ae61-485b-8869-e06f278d71f7

Logs:


INFO[make_msi_lib.ps1 15:10:08] Downloading WiX Toolkit
--
  | INFO[make_msi_lib.ps1 15:10:15] Creating wixobj
  | INFO[make_msi_lib.ps1 15:10:16] Creating msi
  | light.exe : error LGHT0217 : Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is
  | an incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and how to
  | solve this problem. The following string format was not expected by the external UI message logger: "The Windows
  | Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact
  | your support personnel for assistance.". light.exe : error LGHT0217 : Error executing ICE action 'ICE02'. The most
  | common cause of this kind of ICE failure is an incorrectly registered scripting engine. See
  | http://wixtoolset.org/documentation/error217/ for details and how to solve this problem. The following string format
  | was not expected by the external UI message logger: "The Windows Installer Service could not be accessed. This can
  | occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.". light.exe
  | : error LGHT0217 : Error executing ICE action 'ICE03'. The most common cause of this kind of ICE failure is an
  | incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and how to
  | solve this problem. The following string format was not expected by the external UI message logger: "The Windows
  | Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact
  | your support personnel for assistance.". light.exe : error LGHT0217 : Error executing ICE action 'ICE04'. The most
  | common cause of this kind of ICE failure is an incorrectly registered scripting engine. See
  | http://wixtoolset.org/documentation/error217/ for details and how to solve this problem. The following string format
  | was not expected by the external UI message logger: "The Windows Installer Service could not be accessed. This can
  | occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.". light.exe
  | : error LGHT0217 : Error executing ICE action 'ICE05'. The most common cause of this kind of ICE failure is an
  | incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and how to
  | solve this problem. The following string format was not expected by the external UI message logger: "The Windows
  | Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact
  | your support personnel for assistance.". light.exe : error LGHT0217 : Error executing ICE action 'ICE06'. The most
  | common cause of this kind of ICE failure is an incorrectly registered scripting engine. See
  | http://wixtoolset.org/documentation/error217/ for details and how to solve this problem. The following string format
  | was not expected by the external UI message logger: "The Windows Installer Service could not be accessed. This can
  | occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.". light.exe
  | : error LGHT0217 : Error executing ICE action 'ICE07'. The most common cause of this kind of ICE failure is an
  | incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and how to
  | solve this problem. The following string format was not expected by the external UI message logger: "The Windows
  | Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact
  | your support personnel for assistance.". light.exe : error LGHT0216 : An unexpected Win32 exception with error code
  | 0x643 occurred: Action - 'ICE09' Fatal error during installation
  | At D:\b\bk-trusted-windows-java8-96s3\bazel-trusted\bazel-release\scripts\packages\msi\make_msi_lib.ps1:181 char:9
  | +         throw $output
  | +         ~~~~~~~~~~~~~
  | + CategoryInfo          : OperationStopped: (System.Object[]:Object[]) [], RuntimeException
  | + FullyQualifiedErrorId : light.exe : error LGHT0217 : Error executing ICE action 'ICE01'. The most common cause o
  | f this kind of ICE failure is an incorrectly registered scripting engine. See http://wixtoolset.org/documentation/
  | error217/ for details and how to solve this problem. The following string format was not expected by the external
  | UI message logger: "The Windows Installer Service could not be accessed. This can occur if the Windows Installer i
  | s not correctly installed. Contact your support personnel for assistance.". light.exe : error LGHT0217 : Error exe
  | cuting ICE action 'ICE02'. The most common cause of this kind of ICE failure is an incorrectly registered scriptin
  | g engine. See http://wixtoolset.org/documentation/error217/ for details and how to solve this problem. The followi
  | ng string format was not expected by the external UI message logger: "The Windows Installer Service could not be a
  | ccessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for as
  | sistance.". light.exe : error LGHT0217 : Error executing ICE action 'ICE03'. The most common cause of this kind of
  | ICE failure is an incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for
  | details and how to solve this problem. The following string format was not expected by the external UI message log
  | ger: "The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctl
  | y installed. Contact your support personnel for assistance.". light.exe : error LGHT0217 : Error executing ICE act
  | ion 'ICE04'. The most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See
  | http://wixtoolset.org/documentation/error217/ for details and how to solve this problem. The following string form
  | at was not expected by the external UI message logger: "The Windows Installer Service could not be accessed. This
  | can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.". li
  | ght.exe : error LGHT0217 : Error executing ICE action 'ICE05'. The most common cause of this kind of ICE failure i
  | s an incorrectly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and ho
  | w to solve this problem. The following string format was not expected by the external UI message logger: "The Wind
  | ows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. C
  | ontact your support personnel for assistance.". light.exe : error LGHT0217 : Error executing ICE action 'ICE06'. T
  | he most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See http://wixtool
  | set.org/documentation/error217/ for details and how to solve this problem. The following string format was not exp
  | ected by the external UI message logger: "The Windows Installer Service could not be accessed. This can occur if t
  | he Windows Installer is not correctly installed. Contact your support personnel for assistance.". light.exe : erro
  | r LGHT0217 : Error executing ICE action 'ICE07'. The most common cause of this kind of ICE failure is an incorrect
  | ly registered scripting engine. See http://wixtoolset.org/documentation/error217/ for details and how to solve thi
  | s problem. The following string format was not expected by the external UI message logger: "The Windows Installer
  | Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your su
  | pport personnel for assistance.". light.exe : error LGHT0216 : An unexpected Win32 exception with error code 0x643
  | occurred: Action - 'ICE09' Fatal error during installation


Activity

  1. katre commented on Aug 2, 2019

    @katre
    ContributorAuthor

    Can't assign: CC @laszlocsomor

  2. added a commit that references this issue on Aug 2, 2019
    ba368b3
  3. laszlocsomor commented on Aug 5, 2019

    @laszlocsomor
    Contributor

    Is there a Windows image I could try debugging on?

  4. philwo commented on Aug 5, 2019

    @philwo
    Member

    @laszlocsomor This should do it:

    gcloud compute \
        --project=di-cloud-exp \
        instances create \
        laszlocsomor-test \
        --zone=europe-west4-a \
        --machine-type=n1-standard-32 \
        --image-project=bazel-untrusted \
        --image-family=bk-windows-java8 \
        --boot-disk-size=250GB \
        --boot-disk-type=pd-ssd

    Please run the following PowerShell snippet as an admin after logging in, to activate symlink support (the default startup script also does this):

    $ntprincipal = New-Object System.Security.Principal.NTAccount "YOURUSERNAME"
    $sid = $ntprincipal.Translate([System.Security.Principal.SecurityIdentifier])
    $sidstr = $sid.Value.ToString()
    
    $tmp = [System.IO.Path]::GetTempFileName()
    & secedit.exe /export /cfg "$($tmp)"
    $currentConfig = Get-Content -Path "$tmp"
    $currentSetting = ""
    foreach ($s in $currentConfig) {
        if ($s -like "SECreateSymbolicLinkPrivilege*") {
            $x = $s.split("=",[System.StringSplitOptions]::RemoveEmptyEntries)
            $currentSetting = $x[1].Trim()
        }
    }
    
    if ([string]::IsNullOrEmpty($currentSetting)) {
        $currentSetting = "*$($sidstr)"
    } else {
        $currentSetting = "*$($sidstr),$($currentSetting)"
    }
    $outfile = @"
    [Unicode]
    Unicode=yes
    [Version]
    signature="`$CHICAGO`$"
    Revision=1
    [Privilege Rights]
    SECreateSymbolicLinkPrivilege = $($currentSetting)
    "@
    $outfile | Set-Content -Path $tmp -Encoding Unicode -Force
    & secedit.exe /configure /db "secedit.sdb" /cfg "$($tmp)" /areas USER_RIGHTS
    Remove-Item -Path "$tmp"
  5. laszlocsomor commented on Aug 5, 2019

    @laszlocsomor
    Contributor

    Thanks! The script works on the VM, so I need to debug further.

  6. katre commented on Aug 5, 2019

    @katre
    ContributorAuthor

    There's no tag yet (not until after the release), but there is a branch: https://github.com/bazelbuild/bazel/tree/release-0.29.0

    I downloaded and attached the log file. If it is relevant, the failed action executed on worker
    bk-trusted-windows-java8-96s3.

    bazel-release_build_86_windows.log

  7. laszlocsomor commented on Aug 5, 2019

    @laszlocsomor
    Contributor

    Thanks!

    So far I know that:

    I suspect it's running Windows Server 2016 Datacenter Core, which is a minimal Server 2016 version with some limitations, and maybe this is one of them.

    Need to investigate further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions