Google cloud platform gcloud应用程序部署崩溃,出现“故障”;无法将值分配给属性';时区'&引用;云上SDK版本297.0.0
使用云SDK 297.0.0运行时,如果cron.yaml或cron.xml包含时区信息,则使用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
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组件进行更新:
。这包括此页面上的所有安装机制(包括交互式安装程序、静态版本、Windows安装程序和Homebrew),但不包括以下两个项目符号gcloud组件更新--version version
- 如果您通过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支持部门发出了通知单。 看来他们对这个错误还不是很清楚