gcloud init cli命令:错误:gcloud崩溃(ValueError):查询包含空字符

问题描述 投票:0回答:1

我正在尝试初始化项目的gcloud设置。但是当我运行gcloud init命令时,它会给出错误gcloud崩溃。

它以前工作但今天突然这个命令崩溃了。我尝试了'gcloud auth login'并粘贴了凭据,但它仍然给出了同样的错误

    gcloud init
    Welcome! This command will take you through the configuration of gcloud.

    Settings from your current configuration [default] are:
    core:
    disable_usage_reporting: 'False'

    Pick configuration to use:
    [1] Re-initialize this configuration [default] with new settings
    [2] Create a new configuration
    Please enter your numeric choice:  1

    Your current configuration has been set to: [default]

    You can skip diagnostics next time by using the following flag:
    gcloud init --skip-diagnostics

    Network diagnostic detects and fixes local network connection issues.
    Checking network connection...done.
    Reachability Check passed.
    Network diagnostic passed (1/1 checks passed).

    ERROR: gcloud crashed (ValueError): the query contains a null character

    If you would like to report this issue, please run the following command:
    gcloud feedback

    To check gcloud for common problems, please run the following command:
    gcloud info --run-diagnostics

The actual results should be like below: 
    gcloud init

    Welcome! This command will take you through the configuration of gcloud.

    Settings from your current configuration [default] are:
    core:
    account: prajakta@gmail.com
    disable_usage_reporting: 'False'
    project: default-1234

    Pick configuration to use:
    [1] Re-initialize this configuration [default] with new settings
    [2] Create a new configuration
    Please enter your numeric choice:  1

    Your current configuration has been set to: [default]

    You can skip diagnostics next time by using the following flag:
    gcloud init --skip-diagnostics

    Network diagnostic detects and fixes local network connection issues.
    Checking network connection...done.
    Reachability Check passed.
    Network diagnostic passed (1/1 checks passed).

   Choose the account you would like to use to perform operations for
   this configuration:
   [1] prajakta@gmail.com
   [2] Log in with a new account
   Please enter your numeric choice:  1

   Pick cloud project to use:
   [1] default-1234
   [2] abc-project
   [3] Create a new project
   Please enter numeric choice or text value (must exactly match list
   item):  1

   Your current project has been set to: [default-1234].

   Your Google Cloud SDK is configured and ready to use!
google-cloud-storage gcloud gsutil
1个回答
1
投票

从您包含的输出中,它似乎已成功完成:

Your Google Cloud SDK is configured and ready to use!

你能使用任何命令吗?

gcloud config list
gcloud auth list
gcloud projects list

目前尚不清楚您正在使用哪种操作系统,但是很可能某些相关的软件升级并导致中断;和/或云SDK(又名gcloud)已在您的计算机上升级并且已损坏。

您可能最适合联系Google云支持,或者如果您没有支持合同,则可以在此处向Google问题跟踪器提交gcloud问题:

https://issuetracker.google.com/issues/new?component=187143

注意:您已经在问题中包含了您的电子邮件地址和几个项目,您可能希望对这些项目进行编辑,因为它们不是帮助回答问题所必需的。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.