Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google cloud platform gcloud应用程序部署崩溃,出现“故障”;无法将值分配给属性';时区'&引用;云上SDK版本297.0.0_Google Cloud Platform_Gcloud - Fatal编程技术网

Google cloud platform gcloud应用程序部署崩溃,出现“故障”;无法将值分配给属性';时区'&引用;云上SDK版本297.0.0

Google cloud platform gcloud应用程序部署崩溃,出现“故障”;无法将值分配给属性';时区'&引用;云上SDK版本297.0.0,google-cloud-platform,gcloud,Google Cloud Platform,Gcloud,使用云SDK 297.0.0运行时,如果cron.yaml或cron.xml包含时区信息,则使用gcloud app deploy部署到应用引擎将失败 例如: [INFO] GCLOUD: ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/path/to/file/cron.yaml] [INFO] GCLOUD: Unable to assign value 'America/New_York' to attr

使用云SDK 297.0.0运行时,如果cron.yaml或cron.xml包含时区信息,则使用
gcloud app deploy
部署到应用引擎将失败

例如:

[INFO] GCLOUD: ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/path/to/file/cron.yaml]
[INFO] GCLOUD: Unable to assign value 'America/New_York' to attribute 'timezone':
[INFO] GCLOUD: timezone 'America/New_York' is unknown

解决办法是降级到云SDK的296.0.1版本。(以下版本替换为296.0.1。)

  • 如果直接安装SDK(在包管理器之外),则应使用gcloud组件进行更新:
    gcloud组件更新--version version
    。这包括此页面上的所有安装机制(包括交互式安装程序、静态版本、Windows安装程序和Homebrew),但不包括以下两个项目符号

  • 如果您通过Debian/Ubuntu的rapture repo安装:
    sudo-apt-get-update&&sudo-apt-get-install-google-cloud-sdk=VERSION-0

  • 如果您通过RedHat/CentOS的rapture repo安装:
    sudo yum降级google cloud sdk版本


如果由于任何原因上述任何一项都不起作用,请使用手动下载较旧版本,然后使用进行安装。

我遇到了相同的问题,并向GCP支持部门发出了通知单。 看来他们对这个错误还不是很清楚