chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.4k stars 904 forks source link

Multiple package are encountering unexpected EOF during download and unable to install #2960

Closed foryayfan closed 1 year ago

foryayfan commented 1 year ago

Checklist

What You Are Seeing?

I have 67 packages installed. Recently when running "choco upgrade all" I found that many, but not all of the packages were failing to update. All of the failures were reporting "Received an unexpected EOF or 0 bytes from the transport stream."

Here is an example output: PS C:\Windows\system32> choco upgrade chocolatey -v Chocolatey v1.2.0 Upgrading the following packages: chocolatey By upgrading, you accept licenses for the packages. chocolatey is not installed. Installing... Progress: Downloading chocolatey 1.2.1... 12% chocolatey not installed. An error occurred during installation: Received an unexpected EOF or 0 bytes from the transport stream. chocolatey package files upgrade failed with exit code 1. Performing other installation steps. The upgrade of chocolatey was NOT successful. chocolatey not installed. An error occurred during installation: Received an unexpected EOF or 0 bytes from the transport stream.

Chocolatey upgraded 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

What is Expected?

I expect the packages to download completely with no errors.

How Did You Get This To Happen?

I ran "choco upgrade all -y" and encountered many packages reporting unexpected EOF. I then ran "choco upgrade chocolatey" and encountered the same error on that specific package

System Details

Installed Packages

Chocolatey v1.2.0
7zip 22.1
7zip.install 22.1
adobereader 2022.003.20282
amd-ryzen-chipset 2022.11.21
anki 2.1.56
ant-renamer 2.12.0.20170526
autohotkey.portable 1.1.34.04
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-misc-helpers.extension 0.0.4
chocolatey-windowsupdate.extension 1.0.5
deepl 4.0.6052
discord 1.0.9005
discord.install 1.0.9005
dotnet-7.0-desktopruntime 7.0.1
dotnet-desktopruntime 7.0.1
DotNet4.5.2 4.5.2.20140902
dotnetfx 4.8.0.20220524
drawio 20.7.4
emulationstation.install 2.0.1.01
Everything 1.4.11022
ffmpeg-batch 2.8.2
ffmpeg-batch.install 2.8.2
foobar2000 1.6.13
freefilesync 10.2.0.20180914
gpu-z 2.50.0
hwinfo 7.30
hwinfo.install 7.30
javaruntime 8.0.231
jre8 8.0.351
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
keepass 2.52
keepass.install 2.52
kindle 1.39.65383
logitech-options 9.70.68
logitechgaming 9.04.49
microsoft-teams 1.5.00.33362
mkvtoolnix 71.1.0
netfx-4.7.2 4.7.2.0
notepadplusplus.install 8.4.5
obs-studio 28.0.3
powertoys 0.63.0
python 3.11.0
python3 3.11.0
qbittorrent 4.4.5
retroarch 1.14.0
rufus 3.21
setpoint 6.70.55
sharex 14.1.0
skype 8.92.0.401
steam 3.0.1.20200226
steam-client 2.10.91.92
teraterm 4.106
vcredist140 14.34.31931
vcredist2015 14.0.24215.20170201
vcredist2017 14.16.27033
veracrypt 1.25.9
vivaldi 5.6.2867.50
vivaldi.install 5.6.2867.50
vivaldi.portable 5.6.2867.50
vlc.install 3.0.18
67 packages installed.

Output Log

2023-01-10 08:07:56,459 38984 [DEBUG] - _ Chocolatey:ChocolateyListCommand - Normal Run Mode _
2023-01-10 08:07:56,462 38984 [DEBUG] - Searching for package information
2023-01-10 08:07:56,465 38984 [DEBUG] - Running list with the following filter = 'chocolatey.extension'
2023-01-10 08:07:56,466 38984 [DEBUG] - --- Start of List ---
2023-01-10 08:07:56,487 38984 [DEBUG] - Using 'C:\ProgramData\chocolatey\lib'.
2023-01-10 08:07:56,488 38984 [DEBUG] - - Supports prereleases? 'True'.
2023-01-10 08:07:56,488 38984 [DEBUG] - - Is ServiceBased? 'False'.
2023-01-10 08:07:56,565 38984 [DEBUG] - --- End of List ---
2023-01-10 08:07:56,566 38984 [WARN ] - 0 packages installed.
2023-01-10 08:07:56,568 38984 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-01-10 08:07:56,569 38984 [DEBUG] - Exiting with 0
2023-01-10 08:08:38,561 34392 [DEBUG] - XmlConfiguration is now operational
2023-01-10 08:08:38,589 34392 [DEBUG] - Adding new type 'WebPiService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:08:38,589 34392 [DEBUG] - Adding new type 'WindowsFeatureService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:08:38,590 34392 [DEBUG] - Adding new type 'CygwinService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:08:38,590 34392 [DEBUG] - Adding new type 'PythonService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:08:38,590 34392 [DEBUG] - Adding new type 'RubyGemsService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:08:38,591 34392 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-01-10 08:08:38,655 34392 [DEBUG] - Registering new command 'template' in assembly 'choco'
2023-01-10 08:08:38,656 34392 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-01-10 08:08:38,656 34392 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-01-10 08:08:38,656 34392 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-01-10 08:08:38,657 34392 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-01-10 08:08:38,657 34392 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-01-10 08:08:38,657 34392 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-01-10 08:08:38,658 34392 [DEBUG] - Registering new command 'features' in assembly 'choco'
2023-01-10 08:08:38,658 34392 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-01-10 08:08:38,658 34392 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-01-10 08:08:38,659 34392 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-01-10 08:08:38,659 34392 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-01-10 08:08:38,659 34392 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-01-10 08:08:38,660 34392 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-01-10 08:08:38,660 34392 [DEBUG] - Registering new command 'sources' in assembly 'choco'
2023-01-10 08:08:38,660 34392 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-01-10 08:08:38,661 34392 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-01-10 08:08:38,661 34392 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-01-10 08:08:38,727 34392 [INFO ] - ============================================================
2023-01-10 08:08:38,792 34392 [INFO ] - 1.2.0
2023-01-10 08:08:38,793 34392 [DEBUG] - Exiting with 0
2023-01-10 08:09:49,550 36872 [DEBUG] - XmlConfiguration is now operational
2023-01-10 08:09:49,578 36872 [DEBUG] - Adding new type 'WebPiService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:09:49,578 36872 [DEBUG] - Adding new type 'WindowsFeatureService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:09:49,578 36872 [DEBUG] - Adding new type 'CygwinService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:09:49,579 36872 [DEBUG] - Adding new type 'PythonService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:09:49,579 36872 [DEBUG] - Adding new type 'RubyGemsService' for type 'ISourceRunner' from assembly 'choco'
2023-01-10 08:09:49,580 36872 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
2023-01-10 08:09:49,644 36872 [DEBUG] - Registering new command 'template' in assembly 'choco'
2023-01-10 08:09:49,644 36872 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
2023-01-10 08:09:49,644 36872 [DEBUG] - Registering new command 'export' in assembly 'choco'
2023-01-10 08:09:49,645 36872 [DEBUG] - Registering new command 'list' in assembly 'choco'
2023-01-10 08:09:49,645 36872 [DEBUG] - Registering new command 'info' in assembly 'choco'
2023-01-10 08:09:49,646 36872 [DEBUG] - Registering new command 'help' in assembly 'choco'
2023-01-10 08:09:49,646 36872 [DEBUG] - Registering new command 'config' in assembly 'choco'
2023-01-10 08:09:49,646 36872 [DEBUG] - Registering new command 'features' in assembly 'choco'
2023-01-10 08:09:49,647 36872 [DEBUG] - Registering new command 'new' in assembly 'choco'
2023-01-10 08:09:49,647 36872 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
2023-01-10 08:09:49,647 36872 [DEBUG] - Registering new command 'pack' in assembly 'choco'
2023-01-10 08:09:49,648 36872 [DEBUG] - Registering new command 'pin' in assembly 'choco'
2023-01-10 08:09:49,648 36872 [DEBUG] - Registering new command 'push' in assembly 'choco'
2023-01-10 08:09:49,648 36872 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
2023-01-10 08:09:49,649 36872 [DEBUG] - Registering new command 'sources' in assembly 'choco'
2023-01-10 08:09:49,649 36872 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
2023-01-10 08:09:49,649 36872 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
2023-01-10 08:09:49,650 36872 [DEBUG] - Registering new command 'install' in assembly 'choco'
2023-01-10 08:09:49,715 36872 [INFO ] - ============================================================
2023-01-10 08:09:49,780 36872 [INFO ] - Chocolatey v1.2.0
2023-01-10 08:09:49,784 36872 [DEBUG] - Chocolatey is running on Windows v 10.0.19044.0
2023-01-10 08:09:49,785 36872 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2023-01-10 08:09:49,786 36872 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2023-01-10 08:09:49,791 36872 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade chocolatey --debug --verbose
2023-01-10 08:09:49,791 36872 [DEBUG] - Received arguments: upgrade chocolatey --debug --verbose
2023-01-10 08:09:49,819 36872 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2023-01-10 08:09:49,826 36872 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2023-01-10 08:09:49,830 36872 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2023-01-10 08:09:49,854 36872 [DEBUG] - Performing validation checks.
2023-01-10 08:09:49,856 36872 [DEBUG] - Global Configuration Validation Checks:
2023-01-10 08:09:49,857 36872 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2023-01-10 08:09:49,858 36872 [DEBUG] - System State Validation Checks:
2023-01-10 08:09:49,859 36872 [DEBUG] -  Reboot Requirement Checks:
2023-01-10 08:09:49,862 36872 [DEBUG] -  - Pending Computer Rename = Checked
2023-01-10 08:09:49,863 36872 [DEBUG] -  - Pending Component Based Servicing = Checked
2023-01-10 08:09:49,864 36872 [DEBUG] -  - Pending Windows Auto Update = Checked
2023-01-10 08:09:49,865 36872 [DEBUG] -  - Pending File Rename Operations = Ignored
2023-01-10 08:09:49,866 36872 [DEBUG] -  - Pending Windows Package Installer = Checked
2023-01-10 08:09:49,867 36872 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2023-01-10 08:09:49,870 36872 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2023-01-10 08:09:49,878 36872 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2023-01-10 08:09:49,880 36872 [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.
2023-01-10 08:09:49,885 36872 [DEBUG] - Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\happy\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|
DisableCompatibilityChecks='False'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='chocolatey'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
PackageNames='chocolatey'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.19044.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='1.2.0.0'|
Information.ChocolateyProductVersion='1.2.0'|
Information.FullName='choco, Version=1.2.0.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='[Removed for privacy]'|
Information.UserDomainName='[Removed for privacy]'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Information.CurrentDirectory='C:\Windows\system32'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
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='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
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'|
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'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='unknown'|
2023-01-10 08:09:49,890 36872 [DEBUG] - _ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
2023-01-10 08:09:49,899 36872 [INFO ] - Upgrading the following packages:
2023-01-10 08:09:49,900 36872 [INFO ] - chocolatey
2023-01-10 08:09:49,901 36872 [INFO ] - By upgrading, you accept licenses for the packages.
2023-01-10 08:09:49,981 36872 [WARN ] - chocolatey is not installed. Installing...
2023-01-10 08:09:50,009 36872 [DEBUG] - Using 'https://chocolatey.org/api/v2/'.
2023-01-10 08:09:50,864 36872 [DEBUG] - - Supports prereleases? 'True'.
2023-01-10 08:09:50,866 36872 [DEBUG] - - Is ServiceBased? 'True'.
2023-01-10 08:09:51,088 36872 [DEBUG] - Package 'chocolatey' found on source 'https://chocolatey.org/api/v2/'
2023-01-10 08:09:54,951 36872 [ERROR] - chocolatey not installed. An error occurred during installation:
 Received an unexpected EOF or 0 bytes from the transport stream.
2023-01-10 08:09:54,956 36872 [INFO ] - chocolatey package files upgrade failed with exit code 1. Performing other installation steps.
2023-01-10 08:09:54,959 36872 [DEBUG] - No package information as package is null.
2023-01-10 08:09:54,968 36872 [DEBUG] - No package information to save as package is null.
2023-01-10 08:09:54,969 36872 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2023-01-10 08:09:54,972 36872 [ERROR] - The upgrade of chocolatey was NOT successful.
2023-01-10 08:09:54,974 36872 [ERROR] - chocolatey not installed. An error occurred during installation:
 Received an unexpected EOF or 0 bytes from the transport stream.
2023-01-10 08:09:54,981 36872 [WARN ] - 
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-01-10 08:09:54,981 36872 [INFO ] - 
2023-01-10 08:09:54,982 36872 [ERROR] - Failures
2023-01-10 08:09:54,983 36872 [ERROR] -  - chocolatey (exited 1) - chocolatey not installed. An error occurred during installation:
 Received an unexpected EOF or 0 bytes from the transport stream.
2023-01-10 08:09:54,984 36872 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-01-10 08:09:54,987 36872 [DEBUG] - Exiting with 1

Additional Context

No response

gep13 commented 1 year ago

@foryayfan we haven't been able to reproduce this problem, can you confirm if you are still having this problem.

This feels like it could be a local environmental problem, rather than an issue with Chocolatey itself. Are you using any form of proxy, or other network related tools, within your environment?

pauby commented 1 year ago

Due to this issue being stale, I'm going to go ahead and close it. We can always re-open it again if needed.