jberezanski / ChocolateyPackages

Chocolatey packages maintained by me
MIT License
83 stars 51 forks source link

Visual studio install problem in windows-servercore:ltsc2022 docker image #140

Closed WeakV closed 1 year ago

WeakV commented 1 year ago

Hi, Thanks for maintaining all of the chocolatey packages 🙏 I am trying to install visualstudio2019buildtools in docker image, which fails with following info:

2022-10-18 07:25:33,930 2360 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2022-10-18 07:25:33,930 2360 [DEBUG] - Request Headers:
2022-10-18 07:25:33,930 2360 [DEBUG] -   'Accept':'*/*'
2022-10-18 07:25:33,930 2360 [DEBUG] -   'User-Agent':'chocolatey command line'
2022-10-18 07:26:05,551 2360 [INFO ] - Attempt to get headers for https://aka.ms/vs/16/release/channel failed.
  The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://aka.ms/vs/16/release/channel'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
2022-10-18 07:26:05,555 2360 [INFO ] - Downloading channel manifest
  from 'https://aka.ms/vs/16/release/channel'
2022-10-18 07:26:05,569 2360 [DEBUG] - Running Get-WebFile -url 'https://aka.ms/vs/16/release/channel' -fileName 'C:\Users\ContainerAdministrator\AppData\Local\Temp\chocolatey\chocolatey-visualstudio.extension\ChannelManifest_-602808024.man' -options 'System.Collections.Hashtable'
2022-10-18 07:26:05,572 2360 [DEBUG] - Setting request timeout to  30000
2022-10-18 07:26:05,572 2360 [DEBUG] - Setting read/write timeout to  2700000
2022-10-18 07:26:05,572 2360 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2022-10-18 07:26:37,632 2360 [INFO ] - VERBOSE: No ISO to dismount
2022-10-18 07:26:37,632 2360 [ERROR] - ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://aka.ms/vs/16/release/channel'. Exception calling "GetResponse" with "0" argument(s): "The operation has timed out"
2022-10-18 07:26:37,641 2360 [DEBUG] - 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\visualstudio2019buildtools\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '404'.

However, when I try to install same package on a host outside docker environment, the installation succeeds. I tried finding issues similar to this one, but I failed in finding one. Any kind of tip would be greatly appreciated!

WeakV commented 1 year ago

Solved the problem, here is the Github issue that solved my specific problem: https://github.com/microsoft/Windows-Containers/issues/181

Closing this issue because it's solved