You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would not have this issue. Nginx would install.
Actual behavior
Fails as below log:
==> vhd: Provisioning with powershell script: C:\runner-images\images\win/scripts/Installers/Install-Nginx.ps1
vhd: Running [#1]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: NSSM v2.24.101.20180116 (forced) [Approved]
vhd: nssm package files install completed. Performing other installation steps.
vhd: Installing 64 bit version
vhd: Extracting C:\ProgramData\chocolatey\lib\NSSM\tools\nssm-2.24-101-g897c7ad.zip to C:\ProgramData\chocolatey\lib\NSSM\tools...
vhd: C:\ProgramData\chocolatey\lib\NSSM\tools
vhd: ShimGen has successfully created a shim for nssm.exe
vhd: The install of nssm was successful.
vhd: Software installed to 'C:\ProgramData\chocolatey\lib\NSSM\tools'
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Extracting C:\ProgramData\chocolatey\lib\nginx\tools\nginx-1.23.2.zip to C:\tools...
vhd: C:\tools
vhd: Shutting down Nginx if it is running
vhd: #< CLIXML
vhd: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 1Preparing modules for first use.0-1-1Completed-1 Host version is 5.1.17763.2931, PowerShell Version is '5.1.17763.2931' and CLR Version is '4.0.30319.42000'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.Loading community extensionsImporting 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.Function 'Get-PackageParameters' exists, ignoring export.Function 'Get-UninstallRegistryKey' exists, ignoring export.Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibilityExporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure' for backwards compatibilityExporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess' for backwards compatibilityExporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog' for backwards compatibilityExporting function 'Write-FileUpdateLog'.Importing function 'Install-ChocolateyDesktopLink'.Importing function 'Write-ChocolateyFailure'.Importing function 'Write-ChocolateySuccess'.Importing function 'Write-FileUpdateLog'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Importing function 'Get-AppInstallLocation'.Importing function 'Get-AvailableDriveLetter'.Importing function 'Get-EffectiveProxy'.Importing function 'Get-PackageCacheLocation'.Importing function 'Get-WebContent'.<S The service name is invalid.
vhd: Microsoft.PowerShell.Commands.WriteErrorException
vhd: Microsoft.PowerShell.Commands.WriteErrorException
vhd: More help is available by typing NET HELPMSG 2185.
vhd: S="verbose">Importing function 'Register-Application'.Importing function 'Remove-Process'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Importing function 'Install-WindowsUpdate'.Importing function 'Test-WindowsUpdate'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.
vhd: 0
vhd: #< CLIXML
vhd: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 1Preparing modules for first use.0-1-1Completed-1 Host version is 5.1.17763.2931, PowerShell Version is '5.1.17763.2931' and CLR Version is '4.0.30319.42000'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.Loading community extensionsImporting 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.Function 'Get-PackageParameters' exists, ignoring export.Function 'Get-UninstallRegistryKey' exists, ignoring export.Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibilityExporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure' for backwards compatibilityExporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess' for backwards compatibilityExporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog' for backwards compatibilityExporting function 'Write-FileUpdateLog'.Importing function 'Install-ChocolateyDesktopLink'.Importing function 'Write-ChocolateyFailure'.Importing function 'Write-ChocolateySuccess'.Importing function 'Write-FileUpdateLog'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Importing function 'Get-AppInstallLocation'.Importing function 'Get-AvailableDriveLetter'.Importing function 'Get-EffectiveProxy'.Importing function 'Get-PackageCacheLocation'.Importing function 'Get-WebContent'.Importing function 'Register-Application'.Importing function 'Remove-Process'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Importing function 'Install-WindowsUpdate'.Importing function 'Test-WindowsUpdate'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.
vhd: 0
vhd: ERROR: Cannot bind argument to parameter 'Path' because it is an empty string.
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 1/2 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Did you know the proceeds of Pro (and some proceeds from other
vhd: licensed editions) go into bettering the community infrastructure?
vhd: Your support ensures an active community, keeps Chocolatey tip-top,
vhd: plus it nets you some awesome features!
vhd: https://chocolatey.org/compare
vhd: Running [#2]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Port '80' is in use by 'nginx' with path 'C:\tools\nginx-1.23.2\nginx.exe'...
vhd: ERROR: Please specify a different port number...
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 0/1 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd: Running [#3]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Port '80' is in use by 'nginx' with path 'C:\tools\nginx-1.23.2\nginx.exe'...
vhd: ERROR: Please specify a different port number...
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 0/1 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd: Running [#4]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Port '80' is in use by 'nginx' with path 'C:\tools\nginx-1.23.2\nginx.exe'...
vhd: ERROR: Please specify a different port number...
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 0/1 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd: Could not install nginx after 5 attempts
==> vhd: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> vhd: Step "StepProvision" failed
==> vhd: [c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)?
Description
fails to install Nginx when following the image creation process at https://github.com/actions/runner-images/blob/main/docs/create-image-and-azure-resources.md
Platforms affected
Runner images affected
Image version and build link
Windows2019 - Image Version: 20221019.1
Is it regression?
not sure
Expected behavior
It would not have this issue. Nginx would install.
Actual behavior
Fails as below log:
==> vhd: Provisioning with powershell script: C:\runner-images\images\win/scripts/Installers/Install-Nginx.ps1
vhd: Running [#1]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: NSSM v2.24.101.20180116 (forced) [Approved]
vhd: nssm package files install completed. Performing other installation steps.
vhd: Installing 64 bit version
vhd: Extracting C:\ProgramData\chocolatey\lib\NSSM\tools\nssm-2.24-101-g897c7ad.zip to C:\ProgramData\chocolatey\lib\NSSM\tools...
vhd: C:\ProgramData\chocolatey\lib\NSSM\tools
vhd: ShimGen has successfully created a shim for nssm.exe
vhd: The install of nssm was successful.
vhd: Software installed to 'C:\ProgramData\chocolatey\lib\NSSM\tools'
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Extracting C:\ProgramData\chocolatey\lib\nginx\tools\nginx-1.23.2.zip to C:\tools...
vhd: C:\tools
vhd: Shutting down Nginx if it is running
vhd: #< CLIXML
vhd: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 1Preparing modules for first use.0-1-1Completed-1
Host version is 5.1.17763.2931, PowerShell Version is '5.1.17763.2931' and CLR Version is '4.0.30319.42000'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.Loading community extensionsImporting 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.Function 'Get-PackageParameters' exists, ignoring export.Function 'Get-UninstallRegistryKey' exists, ignoring export.Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibilityExporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure' for backwards compatibilityExporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess' for backwards compatibilityExporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog' for backwards compatibilityExporting function 'Write-FileUpdateLog'.Importing function 'Install-ChocolateyDesktopLink'.Importing function 'Write-ChocolateyFailure'.Importing function 'Write-ChocolateySuccess'.Importing function 'Write-FileUpdateLog'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Importing function 'Get-AppInstallLocation'.Importing function 'Get-AvailableDriveLetter'.Importing function 'Get-EffectiveProxy'.Importing function 'Get-PackageCacheLocation'.Importing function 'Get-WebContent'.<S The service name is invalid.vhd: Microsoft.PowerShell.Commands.WriteErrorException
vhd: Microsoft.PowerShell.Commands.WriteErrorException
vhd: More help is available by typing NET HELPMSG 2185.
vhd: S="verbose">Importing function 'Register-Application'.
Importing function 'Remove-Process'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Importing function 'Install-WindowsUpdate'.Importing function 'Test-WindowsUpdate'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.vhd: 0
vhd: #< CLIXML
vhd: System.Management.Automation.PSCustomObjectSystem.Object1Preparing modules for first use.0-1-1Completed-1 1Preparing modules for first use.0-1-1Completed-1
Host version is 5.1.17763.2931, PowerShell Version is '5.1.17763.2931' and CLR Version is '4.0.30319.42000'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.Loading community extensionsImporting 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-compatibility\chocolatey-compatibility.psm1'.Function 'Get-PackageParameters' exists, ignoring export.Function 'Get-UninstallRegistryKey' exists, ignoring export.Exporting function 'Install-ChocolateyDesktopLink' for backwards compatibilityExporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure' for backwards compatibilityExporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess' for backwards compatibilityExporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog' for backwards compatibilityExporting function 'Write-FileUpdateLog'.Importing function 'Install-ChocolateyDesktopLink'.Importing function 'Write-ChocolateyFailure'.Importing function 'Write-ChocolateySuccess'.Importing function 'Write-FileUpdateLog'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-core\chocolatey-core.psm1'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Importing function 'Get-AppInstallLocation'.Importing function 'Get-AvailableDriveLetter'.Importing function 'Get-EffectiveProxy'.Importing function 'Get-PackageCacheLocation'.Importing function 'Get-WebContent'.Importing function 'Register-Application'.Importing function 'Remove-Process'.Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Importing function 'Install-WindowsUpdate'.Importing function 'Test-WindowsUpdate'.Exporting function 'Format-FileSize'.Exporting function 'Get-ChecksumValid'.Exporting function 'Get-ChocolateyPath'.Exporting function 'Get-ChocolateyUnzip'.Exporting function 'Get-ChocolateyWebFile'.Exporting function 'Get-EnvironmentVariable'.Exporting function 'Get-EnvironmentVariableNames'.Exporting function 'Get-FtpFile'.Exporting function 'Get-OSArchitectureWidth'.Exporting function 'Get-PackageParameters'.Exporting function 'Get-PackageParametersBuiltIn'.Exporting function 'Get-ToolsLocation'.Exporting function 'Get-UACEnabled'.Exporting function 'Get-UninstallRegistryKey'.Exporting function 'Get-VirusCheckValid'.Exporting function 'Get-WebFile'.Exporting function 'Get-WebFileName'.Exporting function 'Get-WebHeaders'.Exporting function 'Install-BinFile'.Exporting function 'Install-ChocolateyEnvironmentVariable'.Exporting function 'Install-ChocolateyExplorerMenuItem'.Exporting function 'Install-ChocolateyFileAssociation'.Exporting function 'Install-ChocolateyInstallPackage'.Exporting function 'Install-ChocolateyPackage'.Exporting function 'Install-ChocolateyPath'.Exporting function 'Install-ChocolateyPinnedTaskBarItem'.Exporting function 'Install-ChocolateyPowershellCommand'.Exporting function 'Install-ChocolateyShortcut'.Exporting function 'Install-ChocolateyVsixPackage'.Exporting function 'Install-ChocolateyZipPackage'.Exporting function 'Install-Vsix'.Exporting function 'Set-EnvironmentVariable'.Exporting function 'Set-PowerShellExitCode'.Exporting function 'Start-ChocolateyProcessAsAdmin'.Exporting function 'Test-ProcessAdminRights'.Exporting function 'Uninstall-BinFile'.Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.Exporting function 'Uninstall-ChocolateyPackage'.Exporting function 'Uninstall-ChocolateyZipPackage'.Exporting function 'Update-SessionEnvironment'.Exporting function 'Write-FunctionCallLogMessage'.Exporting function 'Install-ChocolateyDesktopLink'.Exporting function 'Write-ChocolateyFailure'.Exporting function 'Write-ChocolateySuccess'.Exporting function 'Write-FileUpdateLog'.Exporting function 'Get-AppInstallLocation'.Exporting function 'Get-AvailableDriveLetter'.Exporting function 'Get-EffectiveProxy'.Exporting function 'Get-PackageCacheLocation'.Exporting function 'Get-WebContent'.Exporting function 'Register-Application'.Exporting function 'Remove-Process'.Exporting function 'Install-WindowsUpdate'.Exporting function 'Test-WindowsUpdate'.Exporting alias 'Get-ProcessorBits'.Exporting alias 'Get-OSBitness'.Exporting alias 'Get-InstallRegistryKey'.Exporting alias 'Generate-BinFile'.Exporting alias 'Add-BinFile'.Exporting alias 'Start-ChocolateyProcess'.Exporting alias 'Invoke-ChocolateyProcess'.Exporting alias 'Remove-BinFile'.Exporting alias 'refreshenv'.vhd: 0
vhd: ERROR: Cannot bind argument to parameter 'Path' because it is an empty string.
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 1/2 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Did you know the proceeds of Pro (and some proceeds from other
vhd: licensed editions) go into bettering the community infrastructure?
vhd: Your support ensures an active community, keeps Chocolatey tip-top,
vhd: plus it nets you some awesome features!
vhd: https://chocolatey.org/compare
vhd: Running [#2]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Port '80' is in use by 'nginx' with path 'C:\tools\nginx-1.23.2\nginx.exe'...
vhd: ERROR: Please specify a different port number...
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 0/1 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd: Running [#3]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Port '80' is in use by 'nginx' with path 'C:\tools\nginx-1.23.2\nginx.exe'...
vhd: ERROR: Please specify a different port number...
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 0/1 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd: Running [#4]: choco install nginx -y --force --params /installLocation:C:\tools /port:80
vhd: Chocolatey v1.2.0
vhd: Installing the following packages:
vhd: nginx
vhd: By installing, you accept licenses for the packages.
vhd:
vhd: nginx v1.23.2 (forced) [Approved]
vhd: nginx package files install completed. Performing other installation steps.
vhd: Port '80' is in use by 'nginx' with path 'C:\tools\nginx-1.23.2\nginx.exe'...
vhd: ERROR: Please specify a different port number...
vhd: The install of nginx was NOT successful.
vhd: Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd:
vhd: Chocolatey installed 0/1 packages. 1 packages failed.
vhd: See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
vhd:
vhd: Failures
vhd: - nginx (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\nginx\tools\chocolateyInstall.ps1'.
vhd: See log for details.
vhd: Could not install nginx after 5 attempts
==> vhd: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
==> vhd: Step "StepProvision" failed
==> vhd: [c] Clean up and exit, [a] abort without cleanup, or [r] retry step (build may fail even if retry succeeds)?
Repro steps
Following this process: https://github.com/actions/runner-images/blob/main/docs/create-image-and-azure-resources.md
The text was updated successfully, but these errors were encountered: