You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ... Installation of chocolatey removed from output
GCEMetadataScripts.exe: Chocolatey v2.2.2
GCEMetadataScripts.exe: Installing the following packages:
GCEMetadataScripts.exe: python312
GCEMetadataScripts.exe: By installing, you accept licenses for the packages.
Progress: Downloading KB2919355 1.0.20160915... 100%
GCEMetadataScripts.exe:
GCEMetadataScripts.exe: KB2919355 v1.0.20160915 [Approved]
GCEMetadataScripts.exe: KB2919355 package files install completed. Performing other installation steps.
GCEMetadataScripts.exe: Skipping installation because this hotfix only applies to Windows 8.1 and Windows Server 2012 R2.
GCEMetadataScripts.exe: The install of KB2919355 was successful.
GCEMetadataScripts.exe: Software install location not explicitly set, it could be in package or
GCEMetadataScripts.exe: default install location of installer.
Progress: Downloading KB2999226 1.0.20181019... 100%
GCEMetadataScripts.exe:
GCEMetadataScripts.exe: KB2999226 v1.0.20181019 [Approved]
GCEMetadataScripts.exe: KB2999226 package files install completed. Performing other installation steps.
GCEMetadataScripts.exe: Skipping installation because update KB2999226 does not apply to this operating system (Microsoft Windows Server 2022 Datacenter).
GCEMetadataScripts.exe: The install of KB2999226 was successful.
GCEMetadataScripts.exe: Software install location not explicitly set, it could be in package or
GCEMetadataScripts.exe: default install location of installer.
Progress: Downloading KB3035131 1.0.3... 100%
GCEMetadataScripts.exe:
GCEMetadataScripts.exe: KB3035131 v1.0.3 [Approved]
GCEMetadataScripts.exe: KB3035131 package files install completed. Performing other installation steps.
GCEMetadataScripts.exe: Skipping installation because update KB3035131 does not apply to this operating system (Microsoft Windows Server 2022 Datacenter).
GCEMetadataScripts.exe: The install of KB3035131 was successful.
GCEMetadataScripts.exe: Software install location not explicitly set, it could be in package or
GCEMetadataScripts.exe: default install location of installer.
Progress: Downloading KB3033929 1.0.5... 100%
GCEMetadataScripts.exe:
GCEMetadataScripts.exe: KB3033929 v1.0.5 [Approved]
GCEMetadataScripts.exe: KB3033929 package files install completed. Performing other installation steps.
GCEMetadataScripts.exe: Skipping installation because update KB3033929 does not apply to this operating system (Microsoft Windows Server 2022 Datacenter).
GCEMetadataScripts.exe: The install of KB3033929 was successful.
GCEMetadataScripts.exe: Software install location not explicitly set, it could be in package or
GCEMetadataScripts.exe: default install location of installer.
Progress: Downloading vcredist140 14.40.33810... 100%
GCEMetadataScripts.exe:
GCEMetadataScripts.exe: vcredist140 v14.40.33810 [Approved]
GCEMetadataScripts.exe: vcredist140 package files install completed. Performing other installation steps.
GCEMetadataScripts.exe: Downloading vcredist140-x86
GCEMetadataScripts.exe: from 'https://download.visualstudio.microsoft.com/download/pr/9c69db26-cda4-472d-bdae-f2b87f4a0177/A32DD41EAAB0C5E1EAA78BE3C0BB73B48593DE8D97A7510B97DE3FD993538600/VC_redist.x86.exe'
Progress: 100% - Completed download of C:\Windows\TEMP\chocolatey\vcredist140\14.40.33810\VC_redist.x86.exe (13.22 MB).
GCEMetadataScripts.exe: Download of VC_redist.x86.exe (13.22 MB) completed.
GCEMetadataScripts.exe: Hashes match.
GCEMetadataScripts.exe: Installing vcredist140-x86...
GCEMetadataScripts.exe: vcredist140-x86 has been installed.
GCEMetadataScripts.exe: Downloading vcredist140-x64 64 bit
GCEMetadataScripts.exe: from 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe'
Progress: 100% - Completed download of C:\Windows\TEMP\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe (24.22 MB).
GCEMetadataScripts.exe: Download of VC_redist.x64.exe (24.22 MB) completed.
GCEMetadataScripts.exe: Hashes match.
GCEMetadataScripts.exe: Installing vcredist140-x64...
GCEMetadataScripts.exe: vcredist140-x64 has been installed.
GCEMetadataScripts.exe: vcredist140 may be able to be automatically uninstalled.
GCEMetadataScripts.exe: The install of vcredist140 was successful.
GCEMetadataScripts.exe: Software installed as 'exe', install location is likely default.
Progress: Downloading vcredist2015 14.0.24215.20170201... 100%
GCEMetadataScripts.exe:
GCEMetadataScripts.exe: vcredist2015 v14.0.24215.20170201 [Approved]
GCEMetadataScripts.exe: vcredist2015 package files install completed. Performing other installation steps.
GCEMetadataScripts.exe: The install of vcredist2015 was successful.
GCEMetadataScripts.exe: Software installed to 'C:\ProgramData\chocolatey\lib\vcredist2015'
GCEMetadataScripts.exe: error while communicating with "windows-startup-script-ps1" script: bufio.Scanner: token too long
Result
Metadata Script logs error GCEMetadataScripts.exe: error while communicating with "windows-startup-script-ps1" script: bufio.Scanner: token too long
Ends prematurely
Not running any lines after the choco install.
Expected result
No error
Continue running
The reason for this is probably because choco will try to overwrite the previous line (CR instead of CRLF) while printing progress lines.
Detail
Here's an excerpt of what choco's output looks like when piped through xxd:
You can see it uses 0d (CR) to move the cursor back to the start of the line, not detecting that this is not an interactive terminal.
Still, this shouldn't break startup scripts.
A workaround is to just pipe the output to NUL.
The text was updated successfully, but these errors were encountered:
Please note that what wasn't reported in #215; this problem will actually cause GCEMetadaScripts to crash, which terminates any processes that have been started by the startup scripts - which is the main workload of the machine in our case.
Reproduction
Create a Windows Server VM with a
windows-startup-script-ps1
which contains the following:Actual Output
Result
GCEMetadataScripts.exe: error while communicating with "windows-startup-script-ps1" script: bufio.Scanner: token too long
choco install
.Expected result
The reason for this is probably because choco will try to overwrite the previous line (CR instead of CRLF) while printing progress lines.
Detail
Here's an excerpt of what choco's output looks like when piped through
xxd
:You can see it uses
0d
(CR) to move the cursor back to the start of the line, not detecting that this is not an interactive terminal.Still, this shouldn't break startup scripts.
A workaround is to just pipe the output to NUL.
The text was updated successfully, but these errors were encountered: