Not able to build due to problem in ChocolateyInstall.ps1

Amin Merati's Avatar

Amin Merati

29 Nov, 2016 09:19 AM

Hi there,
from yesterday afternoon, we are experiencing a problem on AppVeyor that we are not able to build due to an error in 'C:\ProgramData\chocolatey\lib\KB2919355\tools\ChocolateyInstall.ps1'

The build URL which it fails is as follows:
https://ci.appveyor.com/project/Eurotherm/reviewer/build/1.0.3935

The detailed build is as follows:

Build started
Install-Product node $env:nodejs_version
Uninstalling node 4.6.2 (x86)...
Installing node 4.2.1 (x86)...
git clone -q --branch=feature/REV-1228_page_seq_on_report git@github.com:Eurotherm/reviewer.git C:\projects\reviewer
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts.
git checkout -qf 5a94a52e9b371d0e94afe50a007bc9aceca97487
Restoring build cache
Cache 'packages' - Restored
Running Install scripts
npm cache clean
nuget restore
MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
All packages listed in packages.config are already installed.
cinst php
Installing the following packages:
php
By installing you accept licenses for the packages.
KB2919442 v1.0.20160915 [Approved]
Downloading KB2919442 64 bit
  from 'https://download.microsoft.com/download/D/6/0/D60ED3E0-93A5-4505-8F6A-8D0A5DA16C8A/Windows8.1-KB2919442-x64.msu'
Progress: 100% - Saving 10.18 MB of 10.22 MB (10675586/10716210)
Download of Windows8.1-KB2919442-x64.msu (10.22 MB) completed.
Hashes match.
Installing KB2919442...
ERROR: Running ["C:\windows\System32\wusa.exe" C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\KB2919442\1.0.20160915\Windows8.1-KB2919442-x64.msu /quiet /norestart /log:"C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\KB2919442.Install.evt" ] was not successful. Exit code was '1058'. See log for possible error messages.
The install of kb2919442 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\KB2919442\tools\ChocolateyInstall.ps1'.
 See log for details.
KB2919355 v1.0.20160915 [Approved]
Skipping installation because hotfix KB2919355 is already installed.
The install of kb2919355 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\KB2919355\tools\ChocolateyInstall.ps1'.
 See log for details.
vcredist2015 v14.0.24215.20160928 [Approved]
Downloading vcredist2015 64 bit
  from 'https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe'
Progress: 100% - Saving 14.53 MB of 14.59 MB (15236832/15301888)
Download of vc_redist.x64.exe (14.59 MB) completed.
Hashes match.
Installing vcredist2015...
vcredist2015 has been installed.
Downloading vcredist2015_x86
  from 'https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x86.exe'
Download of vc_redist.x86.exe (13.79 MB) completed.
Hashes match.
Installing vcredist2015_x86...
vcredist2015_x86 has been installed.
 The install of vcredist2015 was successful.
  Software installed as 'exe', install location is likely default.
php v7.0.13 [Approved]
Downloading php 64 bit
  from 'http://windows.php.net//downloads/releases/php-7.0.13-nts-Win32-VC14-x64.zip'
Progress: 93% - Saving 21.29 MB of 22.87 MB (22320300/23985473)
Download of php-7.0.13-nts-Win32-VC14-x64.zip (22.87 MB) completed.
Hashes match.
Extracting C:\Users\appveyor\AppData\Local\Temp\php\7.0.13\php-7.0.13-nts-Win32-VC14-x64.zip to C:\tools\php...
C:\tools\php
PATH environment variable does not have C:\tools\php in it. Adding...
Creating default php.ini
Configuring PHP extensions directory
Please make sure you have CGI installed in IIS for local hosting
Environment Vars (like PATH) have changed. Close/reopen your shell to
 see the changes (or in powershell/cmd.exe just type `refreshenv`).
 The install of php was successful.
  Software installed to 'C:\tools\php'
Chocolatey installed 2/4 packages. 2 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - kb2919355 (exited 1058) - Error while running 'C:\ProgramData\chocolatey\lib\KB2919355\tools\ChocolateyInstall.ps1'.
 See log for details.
 - kb2919442 (exited 1058) - Error while running 'C:\ProgramData\chocolatey\lib\KB2919442\tools\ChocolateyInstall.ps1'.
 See log for details.
Command exited with code 1058

  1. 1 Posted by Ilya Finkelshte... on 29 Nov, 2016 05:37 PM

    Ilya Finkelshteyn's Avatar

    Update for community: previous version of php package helped, e.g. cinst php --version 7.0.9 instead of - cinst php.

  2. 2 Posted by dragon788 on 01 Dec, 2016 08:07 PM

    dragon788's Avatar

    I've seen this occasionally in Chocolatey/Boxstarter if the Windows Update Service is disabled. The first KB that was in the dependencies (kb2919442) tried to install but failed probably due to the wusa.exe (Windows Update) service not running. Does the older version require the same update?

  3. 3 Posted by John Stevenson on 20 Dec, 2016 11:35 AM

    John Stevenson's Avatar

    Better still cinst -y php -i which ignores the dependencies and allows you to download the latest version.

  4. 4 Posted by andy on 14 Feb, 2017 01:35 AM

    andy's Avatar

    This is getting annoying..
    Although ignore dependencies works in some versions of the php package, it brings another issue for the latest one (7.1.1.20170212), which added another dependency - chocolatey-core.extension. If we install with -i, we will be missing chocolatey-core.extension, so the installation will fail with

    ERROR: The term 'Get-PackageParameters' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    
  5. Support Staff 5 Posted by Feodor Fitsner on 14 Feb, 2017 01:46 AM

    Feodor Fitsner's Avatar

    OK, we've found what was causing php package installation to fail - disabled Windows update service.

    Working way to install php Chocolatey package with dependencies:

    install:
    - ps: Set-Service wuauserv -StartupType Manual
    - cinst -y php
    
  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:14 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

12 Aug, 2022 08:39 PM
11 Aug, 2022 03:44 PM
07 Aug, 2022 05:11 PM
06 Aug, 2022 11:02 AM
03 Aug, 2022 10:03 AM

 

02 Aug, 2022 02:35 PM
29 Jul, 2022 06:45 PM
29 Jul, 2022 03:35 PM
22 Jul, 2022 03:16 PM
21 Jul, 2022 10:05 PM
15 Jul, 2022 03:08 PM