【问题标题】:I am not able to run gcloud commands on lubuntu我无法在 lubuntu 上运行 gcloud 命令
【发布时间】:2019-12-20 09:51:25
【问题描述】:

我在 lubuntu-32bit 系统上安装了 gcloud SDK,但是在运行 gcloud 命令时出现错误。

错误

ERROR: gcloud crashed (OperationalError): database is locked

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

再次重新安装但无法弄清楚。

【问题讨论】:

    标签: gcloud


    【解决方案1】:

    该错误表明某些东西使gcloud 的数据库保持打开状态。这可能是由多种原因造成的,一些可能性和建议是:

    • 确保您没有并行运行多个“gcloud”命令,因为目前不支持此功能,并且该 here 的功能请求已打开。

    • 避免安装 Cloud SDK 或将凭据存储在 NFS 上。如果有,请将 Cloud SDK 安装在本地目录中,或者通过将环​​境变量 CLOUDSDK_CONFIG 设置为本地磁盘位置(即如果您使用 bash)将凭据存储在本地磁盘中:

      export CLOUDSDK_CONFIG=/some/local/path/.gcloudconfig

    • 最后,通过运行 gcloud components update 仔细检查您是否使用最新版本的 Cloud SDK(尽管我假设您是)。或者,您可以运行 gcloud components reinstall 来尝试修复损坏的 Cloud SDK 安装,过去曾帮助过其他人。

    【讨论】:

    • 谢谢,我重新安装并重新启动了系统,现在可以正常工作了。
    猜你喜欢
    • 2016-02-01
    • 2017-10-03
    • 2022-10-05
    • 2021-01-01
    • 1970-01-01
    • 2017-11-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多