Reputation: 23
I'm running gcloud app deploy
on a simple python project and deploys are suddenly failing. I've tried rolling back the gcloud components version and rolling back my codebase.
We've tried multiple computers and networks and no one can deploy.
The error and logs don't provide much clarity:
Errors were encountered while copying files to App Engine.
Here's my 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]$
Upvotes: 2
Views: 943
Reputation: 3493
gcloud
uses a cloud storage bucket to upload your files to Google (since Google can't read the files on your local computer). It's possible that you list access to the default bucket for this (which I believe is staging.$APPNAME.appspot.com
).
You can try using the --bucket flag to stage code to a different bucket, or the gcloud beta app repair
command to recreate the bucket if you find that it's missing.
Upvotes: 1