Giter VIP home page Giter VIP logo

Comments (7)

leovms avatar leovms commented on September 25, 2024

None that we're aware. Can you provide more details? What OS, parameters, etc. Anything that could help repro the issue.

from azure-devtestlab.

gregpakes avatar gregpakes commented on September 25, 2024

My scenario is that I am trying to get WMF 5.1 onto a 2012 box.

I create a new VM (2012 R2) and I try to apply the chocolately artifact with the package "powershell". It fails.

from azure-devtestlab.

eosfor avatar eosfor commented on September 25, 2024

Any news on this?

from azure-devtestlab.

leovms avatar leovms commented on September 25, 2024

We updated the generic Install Chocolatey Packages artifact to correct the problem. Please retry and let us know if you're still seeing the issue.

from azure-devtestlab.

hariraj-singh avatar hariraj-singh commented on September 25, 2024

Hi,

I am also facing issue while installing PowerShell 5.1 using choco; while using Hashi Packer
-- Choco: v0.10.8
-- Windows OS: Windows 2012-R2 DataCenter Edition (Microsoft Azure)
-- choco command 'choco install powershell --version 5.1.14409.20180105 -y'

Following is the Packer Sequence:
"provisioners": [
{
"type": "powershell",
"scripts": [
"powershell/install-chocolatey.ps1",
"powershell/install-net452.ps1",
"powershell/install-powershell51.ps1"
]
}...

Log
==> azure-arm: Provisioning with powershell script: powershell/install-powershell51.ps1
azure-arm: #############################################
azure-arm: Start: Installing PowerShell 5.1
azure-arm: Chocolatey v0.10.8
azure-arm: Installing the following packages:
azure-arm: powershell
azure-arm: By installing you accept licenses for the packages.
azure-arm: Progress: Downloading PowerShell 5.1.14409.20180105... 100%
azure-arm:
azure-arm: PowerShell v5.1.14409.20180105 [Approved]
azure-arm: powershell package files install completed. Performing other installation steps.
azure-arm: Running on: Windows Server 2012 R2 Datacenter, (ServerDatacenter), Windows Kernel: 6.3.9600
azure-arm: Installing for OS: Win8.1/2012R2
azure-arm: Downloading PowerShell 64 bit
azure-arm: from 'https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu'
azure-arm: Progress: 100% - Completed download of C:\Users\packer\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180105\Win8.1AndW2K12R2-KB3191564-x64.msu (18.96 MB).
azure-arm: Download of Win8.1AndW2K12R2-KB3191564-x64.msu (18.96 MB) completed.
azure-arm: Hashes match.
azure-arm: Installing PowerShell...
azure-arm: Opps we had a error.
azure-arm: Found the following error(s) and warnings in the MSU log "C:\Users\packer\AppData\Local\Temp\chocolatey\PowerShell-Install-201801090427.evtx"
azure-arm:
azure-arm:
azure-arm:
azure-arm:
azure-arm:
azure-arm:
azure-arm: ERROR: Running ["C:\Windows\System32\wusa.exe" "C:\Users\packer\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180105\Win8.1AndW2K12R2-KB3191564-x64.msu" /quiet /norestart /log:"C:\Users\packer\AppData\Local\Temp\chocolatey\PowerShell-Install-201801090427.evtx" ] was not successful. Exit code was '5'. See log for possible error messages.
azure-arm: The install of powershell was NOT successful.
azure-arm: Error while running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'.
azure-arm: See log for details.
azure-arm:
azure-arm: Chocolatey installed 0/1 packages. 1 packages failed.
azure-arm: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
azure-arm:
azure-arm: Failures
azure-arm: - powershell (exited 5) - Error while running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'.
azure-arm: See log for details.
azure-arm: ##############################################
==> azure-arm:
==> azure-arm: Cleanup requested, deleting resource group ...
==> azure-arm: Resource group has been deleted.
Build 'azure-arm' errored: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]

==> Some builds didn't complete successfully and had errors:
--> azure-arm: Script exited with non-zero exit status: 5. Allowed exit codes are: [0]

==> Builds finished but no artifacts were created.

from azure-devtestlab.

SayreX86 avatar SayreX86 commented on September 25, 2024

I have the same issue, when trying to install powershell 5.1 on EC2 instance with using Packer:
amazon-ebs: ERROR: Running ["C:\Windows\System32\wusa.exe" "C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell\5.1.14409.20180105\Win8.1AndW2K12R2-KB3191564-x64.msu" /quiet /norestart /log:"C:\Users\Administrator\AppData\Local\Temp\chocolatey\PowerShell-Install-201805171205.evtx" ] was not successful. Exit code was '5'. Exit code indicates the following: User (you) cancelled the installation..
amazon-ebs: The install of powershell was NOT successful.

I think, that this issue connected with situation in this post:
https://blogs.technet.microsoft.com/sus/2012/10/30/kb-windows-update-standalone-installer-wusa-returns-0x5-error_access_denied-when-deploying-msu-files-through-winrm-and-windows-remote-shell/

from azure-devtestlab.

alane019 avatar alane019 commented on September 25, 2024

I'm having the same issue. Would anyone care to assist?

from azure-devtestlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.