【发布时间】:2018-03-27 19:37:50
【问题描述】:
我在一个简单的 python 项目上运行 gcloud app deploy 并且部署突然失败。我已经尝试回滚 gcloud 组件版本并回滚我的代码库。
我们尝试了多台计算机和网络,但没有人可以部署。
错误和日志不太清楚:
Errors were encountered while copying files to App Engine.
这是我的 app.yaml:
runtime: python27
api_version: 1
threadsafe: true
default_expiration: '1m'
handlers:
- url: /assets/
static_dir: assets/
secure: always
http_headers:
X-Frame-Options: "DENY"
Strict-Transport-Security: "max-age=2592000; includeSubdomains"
X-Content-Type-Options: "nosniff"
X-XSS-Protection: "1; mode=block"
- url: /build/
static_dir: build/
secure: always
http_headers:
X-Frame-Options: "DENY"
Strict-Transport-Security: "max-age=2592000; includeSubdomains"
X-Content-Type-Options: "nosniff"
X-XSS-Protection: "1; mode=block"
- url: /.*
script: main.app
secure: always
libraries:
- name: django
version: latest
- name: jinja2
version: latest
- name: webapp2
version: latest
skip_files:
- node_modules/
- public/
- src/
- ^.git/.*
- ^node_modules/(.*/)?
- .*node_modules
- ^js/(.*/)?
- ^less/(.*/)?
- bin/
- ^(.*/)?.*\.py[co]$
【问题讨论】:
-
尝试增加
gcloud app deploy的详细程度,也许您可以获取有关该问题的更多信息,有关详细信息,请参阅--verbosity=VERBOSITYcloud.google.com/sdk/gcloud/reference。 -
只是将@DanCornilescu 所说的加起来,您能否用
gcloud app deploy命令返回的内容更新问题并增加详细程度(与警告和错误级别特别相关)?