我在一个简单的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]$发布于 2018-03-29 16:11:37
gcloud使用云存储桶将你的文件上传到谷歌(因为谷歌无法读取你本地计算机上的文件)。您可以列出对此的默认存储桶的访问权限(我相信它是staging.$APPNAME.appspot.com)。
您可以尝试使用--bucket标志将代码存放到不同的存储桶中,或者在发现存储桶丢失时使用gcloud beta app repair命令重新创建该存储桶。
https://stackoverflow.com/questions/49521145
复制相似问题