Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
What steps will reproduce the problem?
Running [gcloud compute reset-windows-password] in powershell with gcloud CLI versions `509.0.0` to `511.0.0`.
What is the expected output? What do you see instead?
I expect the command to succeed and the new password to be printed out.
Please provide any additional information below.
This bug does not happen with gcloud CLI versions `508.0.0` and bellow.
This bug does not happen on Debian with the same versions.
Trace:
Traceback (most recent call last):
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\command_lib\crash_handling.py", line 199, in Wrapper
target_function(*args, **kwargs)
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\gcloud_main.py", line 199, in main
gcloud_cli.Execute()
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 1007, in Execute
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 1044, in _HandleAllErrors
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\exceptions.py", line 586, in HandleError
core_exceptions.reraise(exc)
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\core\exceptions.py", line 149, in reraise
six.reraise(type(exc_value), exc_value, tb)
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\six\__init__.py", line 719, in reraise
raise value
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 981, in Execute
resources = calliope_command.Run(cli=self, args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 934, in Run
resources = command_instance.Run(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\surface\compute\reset_windows_password.py", line 365, in Run
crypt.GetPublicKey(key))
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bob\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\api_lib\compute\windows_encryption_utils.py", line 157, in GetPublicKey
if not self.crypt_export_key(key,
^^^^^^^^^^^^^^^^^^^^^^^^^^
ctypes.ArgumentError: argument 5: TypeError: expected LP_c_ubyte instance instead of c_byte_Array_276
Installation information:
Google Cloud SDK [511.0.0]
Platform: [Windows, x86_64] uname_result(system='Windows', node='win_laptop', release='11', version='10.0.26100', machine='AMD64')
Locale: ('English_Netherlands', '1252')
Python Version: [3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]]
Python Location: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe]
OpenSSL: [OpenSSL 3.0.15 3 Sep 2024]
Requests Version: [2.32.3]
urllib3 Version: [2.2.2]
Default CA certs file: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party\certifi\cacert.pem]
Site Packages: [Disabled]
Installation Root: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
beta: [2025.02.18]
bq: [2.1.13]
core: [2025.02.18]
gcloud-crc32c: [1.0.0]
gsutil: [5.33]
System PATH: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\sdk;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;${HOME}\AppData\Local\Microsoft\WindowsApps;C:\ProgramData\${USER}\GitHubDesktop\bin;${HOME}\AppData\Local\GitHubDesktop\bin;${HOME}\AppData\Local\Programs\Microsoft VS Code\bin;${HOME}\AppData\Local\Programs\Azure Data Studio\bin;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin;${HOME}\.dotnet\tools]
Python PATH: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python312.zip;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\DLLs;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\Lib;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython]
Cloud SDK on PATH: [False]
Kubectl on PATH: [False]
Installation Properties: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
Active Configuration Path: [${CLOUDSDK_CONFIG}\configurations\config_default]
Account: [g..n@s..l]
Project: [c..e]
Universe Domain: [
Current Properties:
[accessibility]
screen_reader: [False] (property file)
[compute]
zone: [europe-west4-a] (property file)
region: [europe-west4] (property file)
[core]
account: [g..n@s..l] (property file)
disable_usage_reporting: [True] (property file)
project: [c..e] (property file)
Logs Directory: [${CLOUDSDK_CONFIG}\logs]
Last Log File: [${CLOUDSDK_CONFIG}\logs\2025.02.24\13.04.08.775224.log]
git: [git version 2.45.2.windows.1]
ssh: [OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
]