Skip to content

Instantly share code, notes, and snippets.

@choco-bot
Created May 6, 2024 23:25
Show Gist options
  • Save choco-bot/c41a4032923bcbb9c2cea0916e0dd02c to your computer and use it in GitHub Desktop.
Save choco-bot/c41a4032923bcbb9c2cea0916e0dd02c to your computer and use it in GitHub Desktop.
server-jre9 v9.0.4 - Failed - Package Tests Results

server-jre9 v9.0.4 - Failed - Package Test Results

  • https://community.chocolatey.org/packages/server-jre9/9.0.4
  • Tested 06 May 2024 23:25:53 +00:00
  • Tested against chocolatey/test-environment 3.0.0 (Windows Server 2019)
  • Tested with the latest version of choco, possibly a beta version.
  • Tested with chocolatey-package-verifier service v1.1.0
  • Install failed. Note that the process may have hung, indicating a not completely silent install. This is usually seen when the last entry in the log is calling the install. This can also happen when a window pops up and needs to be closed to continue.
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\server-jre9\server-jre9.nupkg" checksum="55A4DC13B5B9903CAA2B0860B05C28F6" />
<file path="C:\ProgramData\chocolatey\lib\server-jre9\server-jre9.nuspec" checksum="7A47E88174C290CE188C21F42E5467EB" />
<file path="C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1" checksum="18945EFB43F1BE1E15310B8808002E09" />
<file path="C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyUninstall.ps1" checksum="86DFA3A1D1C320EEAD986497DDBA6048" />
</files>
</fileSnapshot>
2024-05-06 23:25:32,624 1044 [DEBUG] - XmlConfiguration is now operational
2024-05-06 23:25:32,795 1044 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,795 1044 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,795 1044 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,795 1044 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,811 1044 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,811 1044 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,811 1044 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,811 1044 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,811 1044 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
2024-05-06 23:25:32,830 1044 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2024-05-06 23:25:32,830 1044 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco'
2024-05-06 23:25:33,625 1044 [DEBUG] - Adding new type 'EmptyOrInvalidUrlMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,641 1044 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,641 1044 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,641 1044 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,641 1044 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,656 1044 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,656 1044 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,656 1044 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,656 1044 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,673 1044 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
2024-05-06 23:25:33,685 1044 [DEBUG] - Registering new command 'cache' in assembly 'choco'
2024-05-06 23:25:33,685 1044 [DEBUG] - Registering new command 'list' in assembly 'choco'
2024-05-06 23:25:33,704 1044 [DEBUG] - Registering new command 'template' in assembly 'choco'
2024-05-06 23:25:33,704 1044 [DEBUG] - Registering new command 'export' in assembly 'choco'
2024-05-06 23:25:33,704 1044 [DEBUG] - Registering new command 'info' in assembly 'choco'
2024-05-06 23:25:33,704 1044 [DEBUG] - Registering new command 'help' in assembly 'choco'
2024-05-06 23:25:33,719 1044 [DEBUG] - Registering new command 'config' in assembly 'choco'
2024-05-06 23:25:33,719 1044 [DEBUG] - Registering new command 'feature' in assembly 'choco'
2024-05-06 23:25:33,719 1044 [DEBUG] - Registering new command 'new' in assembly 'choco'
2024-05-06 23:25:33,719 1044 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2024-05-06 23:25:33,735 1044 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2024-05-06 23:25:33,735 1044 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2024-05-06 23:25:33,735 1044 [DEBUG] - Registering new command 'push' in assembly 'choco'
2024-05-06 23:25:33,735 1044 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2024-05-06 23:25:33,735 1044 [DEBUG] - Registering new command 'source' in assembly 'choco'
2024-05-06 23:25:33,751 1044 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2024-05-06 23:25:33,751 1044 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2024-05-06 23:25:33,751 1044 [DEBUG] - Registering new command 'search' in assembly 'choco'
2024-05-06 23:25:33,764 1044 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2024-05-06 23:25:33,764 1044 [DEBUG] - Registering new command 'install' in assembly 'choco'
2024-05-06 23:25:33,963 1044 [INFO ] - ============================================================
2024-05-06 23:25:34,279 1044 [INFO ] - Chocolatey v2.2.2
2024-05-06 23:25:34,294 1044 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2024-05-06 23:25:34,294 1044 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2024-05-06 23:25:34,312 1044 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2024-05-06 23:25:34,325 1044 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install server-jre9 --version 9.0.4 -fdvy --execution-timeout=2700 --allow-downgrade
2024-05-06 23:25:34,325 1044 [DEBUG] - Received arguments: install server-jre9 --version 9.0.4 -fdvy --execution-timeout=2700 --allow-downgrade
2024-05-06 23:25:34,450 1044 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2024-05-06 23:25:34,480 1044 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2024-05-06 23:25:34,512 1044 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2024-05-06 23:25:34,683 1044 [DEBUG] - Performing validation checks.
2024-05-06 23:25:34,683 1044 [DEBUG] - Global Configuration Validation Checks:
2024-05-06 23:25:34,702 1044 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2024-05-06 23:25:34,702 1044 [DEBUG] - System State Validation Checks:
2024-05-06 23:25:34,721 1044 [DEBUG] - Reboot Requirement Checks:
2024-05-06 23:25:34,721 1044 [DEBUG] - - Pending Computer Rename = Checked
2024-05-06 23:25:34,732 1044 [DEBUG] - - Pending Component Based Servicing = Checked
2024-05-06 23:25:34,732 1044 [DEBUG] - - Pending Windows Auto Update = Checked
2024-05-06 23:25:34,748 1044 [DEBUG] - - Pending File Rename Operations = Ignored
2024-05-06 23:25:34,748 1044 [DEBUG] - - Pending Windows Package Installer = Checked
2024-05-06 23:25:34,748 1044 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
2024-05-06 23:25:34,767 1044 [DEBUG] - Cache Folder Lockdown Checks:
2024-05-06 23:25:34,767 1044 [DEBUG] - - Elevated State = Checked
2024-05-06 23:25:34,767 1044 [DEBUG] - - Folder Exists = Checked
2024-05-06 23:25:34,779 1044 [DEBUG] - - Folder lockdown = Checked
2024-05-06 23:25:34,798 1044 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
2024-05-06 23:25:34,829 1044 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
2024-05-06 23:25:34,841 1044 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
2024-05-06 23:25:34,860 1044 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\vagrant\AppData\Local\Temp\chocolatey'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='c:\cached-packages;https://community.chocolatey.org/api/v2/'|
SourceType='normal'|ShowOnlineHelp='False'|Debug='True'|Verbose='True'|
Trace='False'|Force='True'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='False'|DisableCompatibilityChecks='False'|
AcceptLicense='True'|AllowUnofficialBuild='False'|Input='server-jre9'|
Version='9.0.4'|AllVersions='False'|SkipPackageInstallProvider='False'|
SkipHookScripts='False'|PackageNames='server-jre9'|Prerelease='False'|
ForceX86='False'|OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='True'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17763.0'|
Information.PlatformName='Windows Server 2016'|
Information.ChocolateyVersion='2.2.2.0'|
Information.ChocolateyProductVersion='2.2.2'|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
Information.UserName='vagrant'|
Information.UserDomainName='WIN-QBOJ09ARQC0'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|
Information.IsLicensedAssemblyLoaded='False'|
Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Users\vagrant'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='True'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='False'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2024-05-06 23:25:34,860 1044 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2024-05-06 23:25:34,872 1044 [INFO ] - Installing the following packages:
2024-05-06 23:25:34,872 1044 [INFO ] - server-jre9
2024-05-06 23:25:34,891 1044 [INFO ] - By installing, you accept licenses for the packages.
2024-05-06 23:25:34,907 1044 [DEBUG] - Current environment values (may contain sensitive data):
2024-05-06 23:25:34,907 1044 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
2024-05-06 23:25:34,921 1044 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2024-05-06 23:25:34,921 1044 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
2024-05-06 23:25:34,921 1044 [DEBUG] - * 'ChocolateyLastPathUpdate'='133594745240340318' ('User')
2024-05-06 23:25:34,921 1044 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
2024-05-06 23:25:34,921 1044 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
2024-05-06 23:25:34,938 1044 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
2024-05-06 23:25:34,948 1044 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;' ('Machine')
2024-05-06 23:25:34,948 1044 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
2024-05-06 23:25:34,948 1044 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
2024-05-06 23:25:34,948 1044 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
2024-05-06 23:25:34,948 1044 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
2024-05-06 23:25:34,973 1044 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
2024-05-06 23:25:34,980 1044 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
2024-05-06 23:25:34,980 1044 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
2024-05-06 23:25:35,002 1044 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='10' ('Machine')
2024-05-06 23:25:35,002 1044 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
2024-05-06 23:25:35,002 1044 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 85 Stepping 7, GenuineIntel' ('Machine')
2024-05-06 23:25:35,012 1044 [DEBUG] - * 'PROCESSOR_REVISION'='5507' ('Machine')
2024-05-06 23:25:35,012 1044 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
2024-05-06 23:25:35,612 1044 [DEBUG] - Running list with the following filter = ''
2024-05-06 23:25:35,623 1044 [DEBUG] - --- Start of List ---
2024-05-06 23:25:35,675 1044 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
2024-05-06 23:25:36,061 1044 [DEBUG] - chocolatey 2.2.2
2024-05-06 23:25:36,077 1044 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
2024-05-06 23:25:36,077 1044 [DEBUG] - KB2919355 1.0.20160915
2024-05-06 23:25:36,095 1044 [DEBUG] - KB2919442 1.0.20160915
2024-05-06 23:25:36,095 1044 [DEBUG] - KB2999226 1.0.20181019
2024-05-06 23:25:36,108 1044 [DEBUG] - KB3035131 1.0.3
2024-05-06 23:25:36,108 1044 [DEBUG] - KB3118401 1.0.5
2024-05-06 23:25:36,155 1044 [DEBUG] - virtualbox-guest-additions-guest.install 7.0.18
2024-05-06 23:25:36,155 1044 [DEBUG] - --- End of List ---
2024-05-06 23:25:36,173 1044 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
2024-05-06 23:25:36,924 1044 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
2024-05-06 23:25:37,528 1044 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='server-jre9',Version='9.0.4')
2024-05-06 23:25:37,808 1044 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='server-jre9',Version='9.0.4') 275ms
2024-05-06 23:25:38,057 1044 [DEBUG] - Resolving resource DependencyInfoResource for source c:\cached-packages
2024-05-06 23:25:39,169 1044 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
2024-05-06 23:25:39,200 1044 [INFO ] - [NuGet] CACHE https://community.chocolatey.org/api/v2/Packages(Id='server-jre9',Version='9.0.4')
2024-05-06 23:25:39,699 1044 [INFO ] - [NuGet] Resolving dependency information took 0 ms
2024-05-06 23:25:39,735 1044 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
2024-05-06 23:25:39,841 1044 [DEBUG] - Attempting to delete file "".
2024-05-06 23:25:39,907 1044 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/package/server-jre9/9.0.4
2024-05-06 23:25:40,511 1044 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/package/server-jre9/9.0.4 603ms
2024-05-06 23:25:40,634 1044 [INFO ] - [NuGet] Acquiring lock for the installation of server-jre9 9.0.4
2024-05-06 23:25:40,799 1044 [INFO ] - [NuGet] Acquired lock for the installation of server-jre9 9.0.4
2024-05-06 23:25:41,905 1044 [INFO ] - [NuGet] Installed server-jre9 9.0.4 from https://community.chocolatey.org/api/v2/ with content hash 1JByOA2czvyLsYFhyvEMYF8GpziOKSJKhb/yhkhyoP6XzfWT7gOJH8HaVu1znVID3L0/Eh1P2hi60QV8J9hFRg==.
2024-05-06 23:25:42,057 1044 [INFO ] - [NuGet] Adding package 'server-jre9.9.0.4' to folder 'C:\ProgramData\chocolatey\lib'
2024-05-06 23:25:42,372 1044 [INFO ] - [NuGet] Added package 'server-jre9.9.0.4' to folder 'C:\ProgramData\chocolatey\lib'
2024-05-06 23:25:42,423 1044 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\server-jre9/9.0.4\server-jre9.9.0.4.nupkg".
2024-05-06 23:25:42,437 1044 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\server-jre9/9.0.4\.nupkg.metadata".
2024-05-06 23:25:42,454 1044 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\server-jre9/9.0.4\server-jre9.9.0.4.nupkg.sha512".
2024-05-06 23:25:42,465 1044 [INFO ] -
server-jre9 v9.0.4 (forced) [Approved]
2024-05-06 23:25:42,762 1044 [INFO ] - server-jre9 package files install completed. Performing other installation steps.
2024-05-06 23:25:42,936 1044 [DEBUG] - Setting installer args for server-jre9
2024-05-06 23:25:42,953 1044 [DEBUG] - Setting package parameters for server-jre9
2024-05-06 23:25:42,984 1044 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1':
2024-05-06 23:25:43,064 1044 [DEBUG] - $packageName = $env:chocolateyPackageName
# The buildNumber should be easier to determine or pass from the nuspec
$buildNumber = "11"
$checksum = "6126cffa9f4a937d1435a21815c714654939e1054c9a8539156e40f4c5e54b95"
$downloadHash= "c2514751926b4512b076cc82f959763f"
# Discard any -pre/-beta/-testing appended to avoid releasing an unfinished on Chocolatey.org
$semanticVersion = $env:chocolateyPackageVersion.Split("-")[0]
#9.0.xx to jdk1.9.0_xx
$versionArray = $semanticVersion.Split(".")
$majorVersion = $versionArray[0]
$minorVersion = $versionArray[1]
$updateVersion = $versionArray[2]
$folderVersion = "jdk1.$majorVersion.$($minorVersion)_$updateVersion"
$fileNameBase = "serverjre-$($majorVersion).$($minorVersion).$($updateVersion)_windows-x64_bin"
$fileName = "$fileNameBase.tar.gz"
$url = "http://download.oracle.com/otn-pub/java/jdk/$($majorVersion).$($minorVersion).$($updateVersion)+$($buildNumber)/$downloadHash/$fileName"
#$url = "http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/serverjre-9.0.4_windows-x64_bin.tar.gz"
$osBitness = Get-ProcessorBits
# 32-bit not supported
if ($osBitness -eq 32) {
Throw "The package $packageName is only available for 64-bit architectures"
}
$arguments = @{}
# Now we can use the $env:chocolateyPackageParameters inside the Chocolatey package
$packageParameters = $env:chocolateyPackageParameters
# Default value
# uses deprecated Get-BinRoot
#$InstallationPath = Join-Path (Get-BinRoot) "Java/server-jre"
$InstallationPath = Join-Path (Get-ToolsLocation) "Java/server-jre"
$ForceEnvVars = $false
$EnvVariableType = "Machine"
# Now parse the packageParameters using good old regular expression
if ($packageParameters) {
$match_pattern = "\/(?<option>([a-zA-Z0-9]+)):(?<value>([`"'])?([a-zA-Z0-9- \(\)\s_\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
$option_name = 'option'
$value_name = 'value'
if ($packageParameters -match $match_pattern ){
$results = $packageParameters | Select-String $match_pattern -AllMatches
$results.matches | % {
$arguments.Add(
$_.Groups[$option_name].Value.Trim(),
$_.Groups[$value_name].Value.Trim())
}
}
else
{
Throw "Package Parameters were found but were invalid (REGEX Failure)"
}
if ($arguments.ContainsKey("InstallationPath")) {
Write-Host "InstallationPath Argument Found"
$InstallationPath = $arguments["InstallationPath"]
}
if ($arguments.ContainsKey("Force")) {
Write-Host "Force Argument Found"
$ForceEnvVars = $true
}
if ($arguments.ContainsKey("User")) {
Write-Host "User Argument Found"
$EnvVariableType = "User"
}
} else {
Write-Debug "No Package Parameters Passed in"
}
Write-Debug "Installing to $InstallationPath, Params: ForceEnvVars=$ForceEnvVars, EnvVariableType=$EnvVariableType"
# Future state, write install options file to use in uninstall (ie /Machine or /User /InstallationPath)
# This would be easier if installed with Install-ChocolateyZipFile and writing the parameters to $toolsDir aka Invocation.
#Create Temp Folder
$chocTempDir = Join-Path $env:TEMP "chocolatey"
$tempDir = Join-Path $chocTempDir "$packageName"
if ($env:packageVersion -ne $null) {$tempDir = Join-Path $tempDir "$env:packageVersion"; }
if (![System.IO.Directory]::Exists($tempDir)) {[System.IO.Directory]::CreateDirectory($tempDir) | Out-Null}
$tarGzFile = "$tempDir\$fileName"
$tarFile = "$tempDir\$fileNameBase.tar"
if ([System.IO.File]::Exists($tarGzFile)) {
Write-Debug "Checking if existing file $tarGzFile matches checksum"
#Check sum of existing file
Try {
Get-ChecksumValid -File $tarGzFile -Checksum $checksum -ChecksumType SHA256 -ErrorAction Stop
}
Catch{
Write-Debug "Checksum failed, deleting old file $tarGzFile"
Remove-Item $tarGzFile
}
}
# Added some .NET code to remove the dependency on wget
# If chocolatey >= 0.9.10 could use Get-ChocolateyWebFile with $options
# Currently investigating a bug where it doesn't seem to pass the cookie in properly
#if ($env:ChocolateyVersion -gt "0.9.10") {
#$options =
#@{
# Headers = @{
# Cookie = " oraclelicense=accept-securebackup-cookie";
# }
#}
#
#Write-Debug "Downloading file $tarGzFile using Get-ChocolateyWebFile"
#Get-ChocolateyWebFile -PackageName $packageName -FileFullPath $tarGzFile -Url $url -Checksum $checksum -ChecksumType SHA256 -Options $options
# } # End Get-ChocolateyWebFile
#
# } else {
# Native .NET download for choco < 0.9.10
Write-Debug "Downloading file $tarGzFile using System.Net.WebClient"
$wc = New-Object System.Net.WebClient
$wc.Headers.Add([System.Net.HttpRequestHeader]::Cookie, "oraclelicense=accept-securebackup-cookie");
$wc.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
$wc.DownloadFile($url, $tarGzFile)
Get-ChecksumValid -File $tarGzFile -Checksum $checksum -ChecksumType SHA256
# } # End native .NET block
# Wget dependency block {
#if (![System.IO.File]::Exists($tarGzFile)) {
# $wget = Join-Path "$env:ChocolateyInstall" '\bin\wget.exe'
# Write-Debug "wget found at `'$wget`'"
#
# #Download file. Must set Cookies to accept license
# Write-Debug "Downloading file $tarGzFile"
# .$wget --quiet --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" $url -O $tarGzFile
# Get-ChecksumValid -File $tarGzFile -Checksum $checksum -ChecksumType SHA256
#}
# } # End wget dependency block
#Extract gz to .tar File
Get-ChocolateyUnzip $tarGzFile $tempDir
#Extract tar to destination
Get-ChocolateyUnzip $tarFile $InstallationPath
$newJavaHome = Join-Path $InstallationPath $folderVersion
$oldJavaHome = Get-EnvironmentVariable "JAVA_HOME" $EnvVariableType
if(($oldJavaHome -eq "") -or $ForceEnvVars) {
Write-Host "Setting JAVA_HOME to $newJavaHome"
Install-ChocolateyEnvironmentVariable -variableName "JAVA_HOME" -variableValue $newJavaHome -variableType $EnvVariableType
}
else {
Write-Debug "JAVA_HOME already set to $oldJavaHome."
}
# Need to do an existance check to see if the variable version is already in PATH
Install-ChocolateyPath '%JAVA_HOME%\bin' $EnvVariableType
Get-EnvironmentVariable -Name 'PATH' -Scope $EnvVariableType -PreserveVariables
#Remove-Item -Recurse $tempDir
2024-05-06 23:25:43,246 1044 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null']
2024-05-06 23:25:43,246 1044 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
2024-05-06 23:25:44,236 1044 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.3770' and CLR Version is '4.0.30319.42000'.
2024-05-06 23:25:44,809 1044 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2024-05-06 23:25:44,809 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2024-05-06 23:25:44,809 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2024-05-06 23:25:44,825 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2024-05-06 23:25:44,840 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2024-05-06 23:25:44,840 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2024-05-06 23:25:44,858 1044 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2024-05-06 23:25:44,875 1044 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2024-05-06 23:25:44,875 1044 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2024-05-06 23:25:44,887 1044 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2024-05-06 23:25:44,887 1044 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2024-05-06 23:25:44,887 1044 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2024-05-06 23:25:44,887 1044 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2024-05-06 23:25:44,911 1044 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2024-05-06 23:25:44,917 1044 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2024-05-06 23:25:44,917 1044 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2024-05-06 23:25:44,917 1044 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2024-05-06 23:25:44,917 1044 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2024-05-06 23:25:44,942 1044 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2024-05-06 23:25:44,949 1044 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2024-05-06 23:25:44,949 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2024-05-06 23:25:44,949 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2024-05-06 23:25:44,949 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2024-05-06 23:25:44,971 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2024-05-06 23:25:44,981 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2024-05-06 23:25:44,981 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2024-05-06 23:25:44,981 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2024-05-06 23:25:45,000 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2024-05-06 23:25:45,000 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2024-05-06 23:25:45,000 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2024-05-06 23:25:45,015 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2024-05-06 23:25:45,015 1044 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2024-05-06 23:25:45,015 1044 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2024-05-06 23:25:45,034 1044 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2024-05-06 23:25:45,034 1044 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2024-05-06 23:25:45,044 1044 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2024-05-06 23:25:45,044 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2024-05-06 23:25:45,067 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2024-05-06 23:25:45,076 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2024-05-06 23:25:45,076 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2024-05-06 23:25:45,094 1044 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2024-05-06 23:25:45,094 1044 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2024-05-06 23:25:45,137 1044 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2024-05-06 23:25:45,137 1044 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2024-05-06 23:25:45,153 1044 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2024-05-06 23:25:45,153 1044 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2024-05-06 23:25:45,153 1044 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2024-05-06 23:25:45,173 1044 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2024-05-06 23:25:45,173 1044 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2024-05-06 23:25:45,185 1044 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2024-05-06 23:25:45,185 1044 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2024-05-06 23:25:45,216 1044 [DEBUG] - Loading community extensions
2024-05-06 23:25:45,251 1044 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
2024-05-06 23:25:45,251 1044 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
2024-05-06 23:25:45,409 1044 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2024-05-06 23:25:45,409 1044 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2024-05-06 23:25:45,420 1044 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2024-05-06 23:25:45,420 1044 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2024-05-06 23:25:45,420 1044 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
2024-05-06 23:25:45,440 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
2024-05-06 23:25:45,440 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
2024-05-06 23:25:45,451 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
2024-05-06 23:25:45,451 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
2024-05-06 23:25:45,451 1044 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
2024-05-06 23:25:45,451 1044 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
2024-05-06 23:25:45,451 1044 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
2024-05-06 23:25:45,473 1044 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
2024-05-06 23:25:45,481 1044 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
2024-05-06 23:25:45,481 1044 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
2024-05-06 23:25:45,481 1044 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
2024-05-06 23:25:45,481 1044 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
2024-05-06 23:25:45,481 1044 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
2024-05-06 23:25:45,505 1044 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
2024-05-06 23:25:45,511 1044 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
2024-05-06 23:25:45,511 1044 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
2024-05-06 23:25:45,544 1044 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
2024-05-06 23:25:45,564 1044 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
2024-05-06 23:25:45,576 1044 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
2024-05-06 23:25:45,591 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
2024-05-06 23:25:45,640 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
2024-05-06 23:25:45,654 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
2024-05-06 23:25:45,654 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
2024-05-06 23:25:45,654 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
2024-05-06 23:25:45,654 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
2024-05-06 23:25:45,654 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
2024-05-06 23:25:45,675 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
2024-05-06 23:25:45,685 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
2024-05-06 23:25:45,685 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
2024-05-06 23:25:45,685 1044 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
2024-05-06 23:25:45,685 1044 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
2024-05-06 23:25:45,708 1044 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
2024-05-06 23:25:45,716 1044 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
2024-05-06 23:25:45,716 1044 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
2024-05-06 23:25:45,716 1044 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
2024-05-06 23:25:45,716 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
2024-05-06 23:25:45,716 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
2024-05-06 23:25:45,741 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
2024-05-06 23:25:45,746 1044 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
2024-05-06 23:25:45,746 1044 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
2024-05-06 23:25:45,773 1044 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
2024-05-06 23:25:45,779 1044 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
2024-05-06 23:25:45,779 1044 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
2024-05-06 23:25:45,779 1044 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
2024-05-06 23:25:45,800 1044 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
2024-05-06 23:25:45,800 1044 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
2024-05-06 23:25:45,812 1044 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
2024-05-06 23:25:45,812 1044 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
2024-05-06 23:25:45,812 1044 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
2024-05-06 23:25:45,830 1044 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
2024-05-06 23:25:45,830 1044 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
2024-05-06 23:25:45,830 1044 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
2024-05-06 23:25:45,846 1044 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
2024-05-06 23:25:45,846 1044 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
2024-05-06 23:25:45,857 1044 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
2024-05-06 23:25:45,857 1044 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
2024-05-06 23:25:45,857 1044 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
2024-05-06 23:25:45,876 1044 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
2024-05-06 23:25:45,886 1044 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
2024-05-06 23:25:45,886 1044 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
2024-05-06 23:25:45,886 1044 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
2024-05-06 23:25:45,907 1044 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
2024-05-06 23:25:45,935 1044 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
2024-05-06 23:25:45,950 1044 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
2024-05-06 23:25:45,950 1044 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
2024-05-06 23:25:45,950 1044 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
2024-05-06 23:25:45,972 1044 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
2024-05-06 23:25:45,972 1044 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
2024-05-06 23:25:45,983 1044 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
2024-05-06 23:25:46,000 1044 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
2024-05-06 23:25:46,000 1044 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
2024-05-06 23:25:46,000 1044 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
2024-05-06 23:25:46,017 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
2024-05-06 23:25:46,017 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
2024-05-06 23:25:46,047 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
2024-05-06 23:25:46,047 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
2024-05-06 23:25:46,078 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
2024-05-06 23:25:46,089 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
2024-05-06 23:25:46,089 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
2024-05-06 23:25:46,110 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
2024-05-06 23:25:46,110 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
2024-05-06 23:25:46,123 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
2024-05-06 23:25:46,123 1044 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
2024-05-06 23:25:46,123 1044 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
2024-05-06 23:25:46,143 1044 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
2024-05-06 23:25:46,143 1044 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
2024-05-06 23:25:46,155 1044 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
2024-05-06 23:25:46,155 1044 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
2024-05-06 23:25:46,155 1044 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
2024-05-06 23:25:46,155 1044 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
2024-05-06 23:25:46,175 1044 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
2024-05-06 23:25:46,185 1044 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
2024-05-06 23:25:46,185 1044 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
2024-05-06 23:25:46,185 1044 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
2024-05-06 23:25:46,207 1044 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
2024-05-06 23:25:46,207 1044 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
2024-05-06 23:25:46,217 1044 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
2024-05-06 23:25:46,217 1044 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
2024-05-06 23:25:46,217 1044 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
2024-05-06 23:25:46,217 1044 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
2024-05-06 23:25:46,217 1044 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
2024-05-06 23:25:46,239 1044 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
2024-05-06 23:25:46,239 1044 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
2024-05-06 23:25:46,248 1044 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
2024-05-06 23:25:46,248 1044 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
2024-05-06 23:25:46,424 1044 [DEBUG] - ---------------------------Script Execution---------------------------
2024-05-06 23:25:46,436 1044 [DEBUG] - Running 'ChocolateyScriptRunner' for server-jre9 v9.0.4 with packageScript 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\server-jre9', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2024-05-06 23:25:46,466 1044 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1'
2024-05-06 23:25:46,656 1044 [DEBUG] - Running Get-ProcessorBits
2024-05-06 23:25:46,762 1044 [DEBUG] - Running Get-ToolsLocation
2024-05-06 23:25:46,902 1044 [DEBUG] - Running Set-EnvironmentVariable -Name 'ChocolateyToolsLocation' -Value 'C:\tools' -Scope 'User'
2024-05-06 23:25:46,934 1044 [DEBUG] - Registry type for ChocolateyToolsLocation is/will be String
2024-05-06 23:25:46,968 1044 [DEBUG] -
using System;
using System.Runtime.InteropServices;
namespace Win32
{
public class NativeMethods
{
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern IntPtr SendMessageTimeout(
IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam,
uint fuFlags, uint uTimeout, out UIntPtr lpdwResult);
}
}
2024-05-06 23:25:47,449 1044 [DEBUG] - Running Update-SessionEnvironment
2024-05-06 23:25:47,474 1044 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
2024-05-06 23:25:48,121 1044 [DEBUG] - No Package Parameters Passed in
2024-05-06 23:25:48,121 1044 [DEBUG] - Installing to C:\tools\Java\server-jre, Params: ForceEnvVars=False, EnvVariableType=Machine
2024-05-06 23:25:48,154 1044 [DEBUG] - Downloading file C:\Users\vagrant\AppData\Local\Temp\chocolatey\server-jre9\9.0.4\serverjre-9.0.4_windows-x64_bin.tar.gz using System.Net.WebClient
2024-05-06 23:25:49,900 1044 [ERROR] - ERROR: Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1: line 124
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 63
at <ScriptBlock>, <No file>: line 1
2024-05-06 23:25:49,900 1044 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'.
2024-05-06 23:25:49,923 1044 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2024-05-06 23:25:50,044 1044 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2024-05-06 23:25:50,063 1044 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
2024-05-06 23:25:50,063 1044 [DEBUG] - The following values have been added/changed (may contain sensitive data):
2024-05-06 23:25:50,077 1044 [DEBUG] - * ChocolateyLastPathUpdate='133595115473422948' (User)
2024-05-06 23:25:50,077 1044 [DEBUG] - * ChocolateyToolsLocation='C:\tools' (User)
2024-05-06 23:25:50,204 1044 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\server-jre9'
2024-05-06 23:25:50,204 1044 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\server-jre9\server-jre9.nupkg'
with checksum '55A4DC13B5B9903CAA2B0860B05C28F6'
2024-05-06 23:25:50,204 1044 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\server-jre9\server-jre9.nuspec'
with checksum '7A47E88174C290CE188C21F42E5467EB'
2024-05-06 23:25:50,204 1044 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1'
with checksum '18945EFB43F1BE1E15310B8808002E09'
2024-05-06 23:25:50,221 1044 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyUninstall.ps1'
with checksum '86DFA3A1D1C320EEAD986497DDBA6048'
2024-05-06 23:25:50,264 1044 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4".
2024-05-06 23:25:50,285 1044 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4\.files'
2024-05-06 23:25:50,328 1044 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4\.arguments".
2024-05-06 23:25:50,328 1044 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4\.extra".
2024-05-06 23:25:50,346 1044 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4\.version".
2024-05-06 23:25:50,346 1044 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4\.sxs".
2024-05-06 23:25:50,346 1044 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\server-jre9.9.0.4\.pin".
2024-05-06 23:25:50,361 1044 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2024-05-06 23:25:50,375 1044 [ERROR] - The install of server-jre9 was NOT successful.
2024-05-06 23:25:50,375 1044 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1'.
See log for details.
2024-05-06 23:25:50,392 1044 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2024-05-06 23:25:50,407 1044 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad\server-jre9".
2024-05-06 23:25:50,407 1044 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\server-jre9 to C:\ProgramData\chocolatey\lib-bad\server-jre9\9.0.4
2024-05-06 23:25:50,422 1044 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\server-jre9'
to 'C:\ProgramData\chocolatey\lib-bad\server-jre9\9.0.4'
2024-05-06 23:25:52,469 1044 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2024-05-06 23:25:52,488 1044 [INFO ] -
2024-05-06 23:25:52,488 1044 [ERROR] - Failures
2024-05-06 23:25:52,499 1044 [ERROR] - - server-jre9 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\server-jre9\tools\chocolateyInstall.ps1'.
See log for details.
2024-05-06 23:25:52,521 1044 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2024-05-06 23:25:52,528 1044 [DEBUG] - Exiting with -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment