我在一个简单的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]$
答案 0 :(得分:1)
gcloud
使用云存储桶将您的文件上传到Google(因为Google无法读取您本地计算机上的文件)。您可以列出对此默认存储区的访问权限(我认为是staging.$APPNAME.appspot.com
)。
您可以尝试使用--bucket标记将代码转移到其他存储桶,或者gcloud beta app repair
命令重新创建存储桶,如果您发现它已丢失。