Closed ramakrpr closed 2 years ago
What do you consider to be "recent"? That tag was last updated on Nov 9. These are the two key changes to the image aside from any updates to Windows itself:
What do you consider to be "recent"? That tag was last updated on Nov 9. These are the two key changes to the image aside from any updates to Windows itself:
- Breaking Change: SDK container images upgraded to Visual Studio 2022 tools #848
- [.NET Framework 4.8 Container Improvements (November 2021 Update) #849](https://github.com/microsoft/dotnet-framework-docker/issues/
Well we have the same image being used in PROD and the pods are running since 26 days , so i believe an issue related to the Nov 9 update that we cannot bring our pods up in Test environment anymore
Just to be certain, could you please verify that the previous version of the image continues to work? You can use the timestamp tag for the previous version: 4.8-20211012-windowsservercore-ltsc2019
Just to be certain, could you please verify that the previous version of the image continues to work? You can use the timestamp tag for the previous version:
4.8-20211012-windowsservercore-ltsc2019
This one 4.8-20211012-windowsservercore-ltsc2019 as well breaks with the same error
Ok, then the issues I linked to above aren't relevant here. It seems possible there was a change in your environment or configuration that caused this to no longer work, rather than the image.
If you'd like to still check whether it was a change to the image that caused this, here are the most recent tags for each past month's releases.
4.8-20211012-windowsservercore-ltsc2019
4.8-20210914-windowsservercore-ltsc2019
4.8-20210810-windowsservercore-ltsc2019
4.8-20210713-windowsservercore-ltsc2019
If all of these tags yield the same error in your environment, then something must have changed in your environment or configuration.
@ramakrpr - Any follow up on narrowing down which tag caused the regression?
@ramakrpr - Any follow up on narrowing down which tag caused the regression?
yes, i managed to figure out that the issue is something related to the way the VC++ build tools needs to be installed. if i follow for example the below guidance - it is no more working. As i mentioned earlier, it used to work before.
https://docs.microsoft.com/en-us/visualstudio/install/build-tools-container?view=vs-2022
I see that the installation never happens even though there is a 'start /wait' and no downloads as well. Hence the file mentioned in the ENTRYPOINT - VsDevCmd.bat is missing and the container fails to initialize. I managed to fix this by an alternative approach which seems working every time as below;
RUN start /w C:\Temp\vs_buildtools.exe --quiet --wait --norestart --nocache --installPath C:\BuildTools --channelUri C:\Temp\VisualStudio.chman --installChannelUri C:\Temp\VisualStudio.chman --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --add Microsoft.Component.MSBuild IF "%ERRORLEVEL%"=="3010" EXIT 0
offcource after downloading the vs_buildtools.exe and VisualStudio.chman explicitly via powershell using invoke-webrequest. Maybe its good to revisit this document, the example is for Microsoft.VisualStudio.Workload.AzureBuildTools and in my case it was for Microsoft.VisualStudio.Workload.VCTools
Glad to hear you got things working. I'll follow-up on that documentation.
Describe the Bug
Hi,
Has there been any recent changes to the image mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 I see that suddenly the container creation fails. I thought initially that it might be related to the packeges we add on top of this image for our deployment to AKS, but then even with just a plain image reference i see that the container creation breaks. Sample YAML reference below. And i am doing this in AKS
Steps to Reproduce