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
I am encountering an error when running the command gcloud beta interactive. The command fails and produces a JSONDecodeError with the following message:
ERROR: gcloud crashed (JSONDecodeError): Expecting value: line 1 column 1 (char 0)
Use code with caution.
This prevents me from using the interactive shell for Google Cloud Platform via the gcloud CLI.
Impact:
I am unable to utilize the gcloud beta interactive feature, hindering my ability to test/use experimental features and efficiently manage my GCP resources via an interactive command-line interface.
Reproduction Steps:
Open a terminal.
Ensure the Google Cloud SDK (gcloud) is installed and configured.
Run the command: gcloud beta interactive
Troubleshooting Steps Already Attempted:
gcloud info --run-diagnostics: I have run this command to check for common problems. The output is attached to this ticket.
gcloud init: I have re-initialized the gcloud SDK using this command.
gcloud components update: I have updated the gcloud SDK to the latest version.
Configuration Directory Check: I've inspected the gcloud configuration directory ( ~/.config/gcloud ) for empty or corrupted JSON files, but I did not find anything obviously wrong, though, it's hard to be sure exactly which files would be an issue.
Environment Variable Check: I have reviewed my environment variables for potential conflicts with Python or JSON processing, but didn't find any that seemed directly related.
Additional Information:
Google Cloud SDK [509.0.0]
Platform: [Linux, x86_64] uname_result(system='Linux', node='ubuntu-v22', release='6.8.0-1021-gcp', version='#23~22.04.1-Ubuntu SMP Thu Jan 16 02:17:57 UTC 2025', machine='x86_64')
Locale: ('C', 'UTF-8')
Python Version: [3.12.8 (main, Jan 24 2025, 11:12:05) [Clang 19.1.6 ]]
Python Location: [[USER_HOME]/google-cloud-sdk/platform/bundledpythonunix/bin/python3]
OpenSSL: [OpenSSL 3.0.15 3 Sep 2024]
Requests Version: [2.32.3]
urllib3 Version: [2.2.2]
Default CA certs file: [[USER_HOME]/google-cloud-sdk/lib/third_party/certifi/cacert.pem]
Site Packages: [Enabled]
Installation Root: [[USER_HOME]/google-cloud-sdk]
Installed Components:
bundled-python3-unix: [3.12.8]
bq: [2.1.12]
beta: [2025.01.31]
gsutil: [5.33]
core: [2025.01.31]
gcloud-crc32c: [1.0.0]
System PATH: [[USER_HOME]/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin]
Python PATH: [[USER_HOME]/google-cloud-sdk/lib/third_party:[USER_HOME]/google-cloud-sdk/lib:[USER_HOME]/google-cloud-sdk/platform/bundledpythonunix/lib/python312.zip:[USER_HOME]/google-cloud-sdk/platform/bundledpythonunix/lib/python3.12:[USER_HOME]/google-cloud-sdk/platform/bundledpythonunix/lib/python3.12/lib-dynload:[USER_HOME]/google-cloud-sdk/platform/bundledpythonunix/lib/python3.12/site-packages]
Cloud SDK on PATH: [True]
Kubectl on PATH: [False]
Installation Properties: [[USER_HOME]/google-cloud-sdk/properties]
User Config Directory: [[USER_HOME]/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: [[USER_HOME]/.config/gcloud/configurations/config_default]
Account: [sa-orange-compute@[ORGANIZATION]-
Project: [[ORGANIZATION]-gcp-prod-sec-core-0]
Universe Domain: [
Current Properties:
[core]
account: [sa-orange-compute@[ORGANIZATION]-
disable_usage_reporting: [False] (property file)
project: [[ORGANIZATION]-gcp-prod-sec-core-0] (callback)
Logs Directory: [[USER_HOME]/.config/gcloud/logs]
Last Log File: [[USER_HOME]/.config/gcloud/logs/2025.02.06/07.37.33.179670.log]
git: [git version 2.34.1]
ssh: [OpenSSH_8.9p1 Ubuntu-3ubuntu0.10, OpenSSL 3.0.2 15 Mar 2022]
Attachments:
gcloud info --run-diagnostics
Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.
Reachability Check passed.
Network diagnostic passed (1/1 checks passed).
Expected Behavior:
I expect the gcloud beta interactive command to launch an interactive shell allowing me to interact with GCP services.
Request:
I would appreciate assistance in diagnosing and resolving this JSONDecodeError. Please let me know if you require any further information from my end. I'm particularly concerned if this indicates a corrupted installation or wider issue with the tooling.