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

random but frequent download failures "ERROR: The remote file either doesn't exist..." #1727

Open
LeeDr opened this issue Sep 5, 2019 · 0 comments

Comments

@LeeDr
Copy link

commented Sep 5, 2019

We use chocolaty to install nmap 7.12 on Windows (2012, 2016 Servers, and Windows 10) but quite often have download failures on nmap (and no download failures on anything else).

I don't think it's a chocolaty problem since it's clearly trying to download and that step fails.

Is there anything we can do on our end? I already put in a check and a retry on the install but it just failed twice in a row.
I've looked at getting chocolaty to have a local cache and it seems rather painful. I'm not sure exactly what the chocolaty packing does (does silent nmap install, starts a service maybe?).

00:14:54.284 + choco install -y --no-progress nmap --version 7.12 --debug --allow-empty-checksums
00:14:54.545 Chocolatey v0.10.11
00:14:54.552 Chocolatey is running on Windows v 6.3.9600.0
00:14:54.558 Command line: "C:\ProgramData\chocolatey\choco.exe" install -y --no-progress nmap --version 7.12 --debug --allow-empty-checksums
00:14:54.558 Received arguments: install -y --no-progress nmap --version 7.12 --debug --allow-empty-checksums
00:14:54.639 The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
...
...
00:14:58.075 Downloading nmap 
00:14:58.075   from 'https://nmap.org/dist/nmap-7.12-setup.exe'
00:14:58.076 Running Get-WebFile -url 'https://nmap.org/dist/nmap-7.12-setup.exe' -fileName 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\nmap\7.12\nmap-7.12-setup.exe' -options 'System.Collections.Hashtable' 
00:14:58.076 Setting request timeout to  30000
00:14:58.076 Setting read/write timeout to  2700000
00:14:58.077 Setting the UserAgent to 'chocolatey command line'
00:14:59.057 Downloading https://nmap.org/dist/nmap-7.12-setup.exe to C:\Users\vagrant\AppData\Local\Temp\chocolatey\nmap\7.12\nmap-7.12-setup.exe
00:17:09.101 ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://nmap.org/dist/nmap-7.12-setup.exe'. Exception calling "Read" with "3" argument(s): "Received an unexpected EOF or 0 bytes from the transport stream." 
00:17:09.102 This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn.
00:17:09.102  at Get-WebFile, C:\ProgramData\chocolatey\helpers\functions\Get-WebFile.ps1: line 329
00:17:09.103 at Get-ChocolateyWebFile, C:\ProgramData\chocolatey\helpers\functions\Get-ChocolateyWebFile.ps1: line 345
00:17:09.103 at Install-ChocolateyPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyPackage.ps1: line 324
00:17:09.103 at <ScriptBlock>, C:\ProgramData\chocolatey\lib\nmap\tools\chocolateyInstall.ps1: line 1
00:17:09.104 at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 48
00:17:09.104 at <ScriptBlock>, <No file>: line 1
00:17:09.104 Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\nmap\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '404'.
00:17:09.237 Calling command ['"C:\Windows\System32\shutdown.exe" /a']
00:17:09.237 Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
00:17:09.237 Capturing package files in 'C:\ProgramData\chocolatey\lib\nmap'
00:17:09.238 The install of nmap was NOT successful.
00:17:09.238 Error while running 'C:\ProgramData\chocolatey\lib\nmap\tools\chocolateyInstall.ps1'.
00:17:09.238  See log for details.
00:17:11.228 
00:17:11.228 Chocolatey installed 0/1 packages. 1 packages failed.
00:17:11.228  See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
00:17:11.228 
00:17:11.229 Failures
00:17:11.230  - nmap (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\nmap\tools\chocolateyInstall.ps1'.
00:17:11.231  See log for details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.