Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install/upgrade - Chocolatey still fails on failing source repositories #1774

Closed
ferventcoder opened this issue Mar 22, 2019 · 2 comments
Closed
Assignees
Milestone

Comments

@ferventcoder
Copy link
Member

ferventcoder commented Mar 22, 2019

What You Are Seeing?

It appears the fixes in #612 were not sufficient when attempting to install from a failing repository.

From conversation with @chriszuercher on Gitter - March 19, 2019 6:54 AM

What is Expected?

No failures.

How Did You Get This To Happen? (Steps to Reproduce)

Have a failing source and attempt to install something.

Output Log

Full Log Output

This is from https://gist.github.com/chriszuercher/9530d0106e665cf8db9ef6a77ab7d372

2019-03-20 16:01:01,829 1016 [DEBUG] - XmlConfiguration is now operational
2019-03-20 16:01:01,892 1016 [INFO ] - ============================================================
2019-03-20 16:01:02,110 1016 [INFO ] - Chocolatey v0.10.13
2019-03-20 16:01:02,126 1016 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-03-20 16:01:02,126 1016 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-03-20 16:01:02,126 1016 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-03-20 16:01:02,142 1016 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" search 7-zip
2019-03-20 16:01:02,142 1016 [DEBUG] - Received arguments: search 7-zip
2019-03-20 16:01:02,204 1016 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-03-20 16:01:02,204 1016 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-03-20 16:01:02,220 1016 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-03-20 16:01:02,267 1016 [DEBUG] - Performing validation checks.
2019-03-20 16:01:02,282 1016 [DEBUG] - Global Configuration Validation Checks:
2019-03-20 16:01:02,282 1016 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2019-03-20 16:01:02,282 1016 [DEBUG] - System State Validation Checks:
2019-03-20 16:01:02,282 1016 [DEBUG] -  Reboot Requirement Checks:
2019-03-20 16:01:02,282 1016 [DEBUG] -  - Pending Computer Rename = Checked
2019-03-20 16:01:02,282 1016 [DEBUG] -  - Pending Component Based Servicing = Checked
2019-03-20 16:01:02,282 1016 [DEBUG] -  - Pending Windows Auto Update = Checked
2019-03-20 16:01:02,282 1016 [DEBUG] -  - Pending File Rename Operations = Checked
2019-03-20 16:01:02,282 1016 [DEBUG] -  - Pending Windows Package Installer = Checked
2019-03-20 16:01:02,298 1016 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2019-03-20 16:01:02,298 1016 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2019-03-20 16:01:02,298 1016 [DEBUG] - The source 'C:\company\chocolatey\SW-packages;https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-03-20 16:01:02,298 1016 [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.
2019-03-20 16:01:02,313 1016 [DEBUG] - Configuration: CommandName='search'|
CacheLocation='C:\Users\companyService\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='False'|
CommandExecutionTimeoutSeconds='0'|WebRequestTimeoutSeconds='30'|
Sources='C:\company\chocolatey\SW-packages;https://chocolatey.org/api/v2/'|

SourceType='normal'|Debug='False'|Verbose='False'|Trace='False'|
Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='7-zip'|AllVersions='False'|
SkipPackageInstallProvider='False'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows 8.1'|
Information.ChocolateyVersion='0.10.13.0'|
Information.ChocolateyProductVersion='0.10.13'|
Information.FullName='choco, Version=0.10.13.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='companyService'|
Information.UserDomainName='product-PCT'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='False'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='True'|
Features.SkipPackageUpgradesWhenNotInstalled='True'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.ScriptsCheckLastExitCode='False'|
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'|
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.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2019-03-20 16:01:02,313 1016 [DEBUG] - _ Chocolatey:ChocolateyListCommand - Normal Run Mode _
2019-03-20 16:01:02,313 1016 [DEBUG] - Searching for package information
2019-03-20 16:01:02,329 1016 [DEBUG] - Running list with the following filter = '7-zip'
2019-03-20 16:01:02,329 1016 [DEBUG] - --- Start of List ---
2019-03-20 16:01:02,438 1016 [WARN ] - [NuGet] Not able to contact source 'https://chocolatey.org/api/v2/'. Error was The remote name could not be resolved: 'chocolatey.org'
2019-03-20 16:01:02,438 1016 [WARN ] - [NuGet] Not able to contact source 'https://chocolatey.org/api/v2/'. Error was The remote name could not be resolved: 'chocolatey.org'
2019-03-20 16:01:02,563 1016 [INFO ] - 7zip.install 19.0
2019-03-20 16:01:02,563 1016 [DEBUG] - --- End of List ---
2019-03-20 16:01:02,563 1016 [WARN ] - 1 packages found.
2019-03-20 16:01:02,563 1016 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-03-20 16:01:02,563 1016 [DEBUG] - Exiting with 0
2019-03-20 16:01:04,907 5824 [DEBUG] - XmlConfiguration is now operational
2019-03-20 16:01:04,970 5824 [INFO ] - ============================================================
2019-03-20 16:01:05,204 5824 [INFO ] - Chocolatey v0.10.13
2019-03-20 16:01:05,204 5824 [DEBUG] - Chocolatey is running on Windows v 6.3.9600.0
2019-03-20 16:01:05,220 5824 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2019-03-20 16:01:05,220 5824 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2019-03-20 16:01:05,220 5824 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install 7-zip
2019-03-20 16:01:05,220 5824 [DEBUG] - Received arguments: install 7-zip
2019-03-20 16:01:05,282 5824 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2019-03-20 16:01:05,298 5824 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2019-03-20 16:01:05,298 5824 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2019-03-20 16:01:05,360 5824 [DEBUG] - Performing validation checks.
2019-03-20 16:01:05,376 5824 [DEBUG] - Global Configuration Validation Checks:
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2019-03-20 16:01:05,376 5824 [DEBUG] - System State Validation Checks:
2019-03-20 16:01:05,376 5824 [DEBUG] -  Reboot Requirement Checks:
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Pending Computer Rename = Checked
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Pending Component Based Servicing = Checked
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Pending Windows Auto Update = Checked
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Pending File Rename Operations = Checked
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Pending Windows Package Installer = Checked
2019-03-20 16:01:05,376 5824 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2019-03-20 16:01:05,392 5824 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2019-03-20 16:01:05,392 5824 [DEBUG] - The source 'C:\company\chocolatey\SW-packages;https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2019-03-20 16:01:05,392 5824 [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.
2019-03-20 16:01:05,407 5824 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\companyService\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='False'|
CommandExecutionTimeoutSeconds='0'|WebRequestTimeoutSeconds='30'|
Sources='C:\company\chocolatey\SW-packages;https://chocolatey.org/api/v2/'|

SourceType='normal'|Debug='False'|Verbose='False'|Trace='False'|
Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='7-zip'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='7-zip'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows 8.1'|
Information.ChocolateyVersion='0.10.13.0'|
Information.ChocolateyProductVersion='0.10.13'|
Information.FullName='choco, Version=0.10.13.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='companyService'|
Information.UserDomainName='product-PCT'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='False'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='True'|
Features.SkipPackageUpgradesWhenNotInstalled='True'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.ScriptsCheckLastExitCode='False'|
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'|
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.Remove='False'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|Proxy.BypassOnLocal='True'|
2019-03-20 16:01:05,407 5824 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2019-03-20 16:01:05,407 5824 [INFO ] - Installing the following packages:
2019-03-20 16:01:05,407 5824 [INFO ] - 7-zip
2019-03-20 16:01:05,407 5824 [INFO ] - By installing you accept licenses for the packages.
2019-03-20 16:01:05,501 5824 [DEBUG] - Using 'C:\company\chocolatey\SW-packages'.
2019-03-20 16:01:05,501 5824 [DEBUG] - - Supports prereleases? 'True'.
2019-03-20 16:01:05,501 5824 [DEBUG] - - Is ServiceBased? 'False'.
2019-03-20 16:01:05,610 5824 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2019-03-20 16:01:05,657 5824 [WARN ] - 
Chocolatey installed 0/0 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-03-20 16:01:05,673 5824 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-03-20 16:01:05,673 5824 [ERROR] - The remote name could not be resolved: 'chocolatey.org'
2019-03-20 16:01:05,673 5824 [DEBUG] - Exiting with 1

References

Related to #612
Related to #1397

@ferventcoder ferventcoder added this to the 0.10.14 milestone Mar 22, 2019
@ferventcoder ferventcoder self-assigned this Mar 22, 2019
@ferventcoder ferventcoder changed the title Chocolatey still fails during install/upgrade on failing repositories install/upgrade - Chocolatey still fails on failing source repositories Mar 22, 2019
ferventcoder added a commit that referenced this issue Mar 22, 2019
When attempting packaging operations like install/upgrade and a
repositories fails, log a warning and continue on. #612 implemented
some of the fixes for ignoring failing repositories, but apparently
that didn't apply when querying those repositories outside of the
package manager that was implemented with #1397.
ferventcoder added a commit that referenced this issue Mar 22, 2019
* stable:
  (GH-1774) log on failing repo
  (GH-1770) Feature - usePackageRepositoryOptimizations
  (GH-1771) Download nupkg, extract nuspec
  (maint) formatting
  (maint) ensure config for removing nuget cache
  (doc) update copyright year
@chriszuercher
Copy link

We tested the new Beta and our problem seems to be solved with this. Thank you for you support!

@ferventcoder
Copy link
Member Author

Thanks!

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

No branches or pull requests

3 participants