binbeobo / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 1 forks source link

gcloud deployment failed #392

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Run:
gcloud preview app deploy app.yaml --promote --project myapp-1001 --version 
20151105t191258 --force

What is the expected output? What do you see instead?

I expected the app to be deployed.  Instead, I got this error:

Copying files to Google Cloud Storage...
Synchronizing files to [gs://staging.myapp-1001.appspot.com/].
Updating module [default]...failed.
ERROR: (gcloud.preview.app.deploy) Error Response: [400] Invalid character in 
filename: 
node_modules/gcloud/node_modules/gce-images/node_modules/google-auto-auth/node_m
odules/google-auth-library/node_modules/jws/node_modules/base64url/node_modules/
meow/node_modules/indent-string/node_modules/repeating/node_modules/is-finite/no
de_modules/number-is-nan/index.js

What is the output of 'gcloud info'?

Google Cloud SDK [0.9.86]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Aug 22 2015, 20:33:39)  [GCC 4.2.1 Compatible 
Apple LLVM 7.0.0 (clang-700.0.59.1)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]

Installation Root: [/Users/john/google-cloud-sdk]
Installed Components:
  core: [2015.11.06]
  app-engine-python: [1.9.28]
  core-nix: [2015.09.03]
  app: []
  gcloud: []
  gsutil-nix: [4.14]
  gsutil: [4.15]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: 
[/Users/john/google-cloud-sdk/bin:/opt/ImageMagick/bin:/Applications/AMPPS/php-5
.5/bin:/usr/local/sbin:/Users/john/phalcon-tools:/usr/local/bin:/usr/bin:/bin:/u
sr/sbin:/sbin:/opt/ImageMagick/bin:/Users/john/google-cloud-sdk/bin:/Application
s/AMPPS/php-5.5/bin:/usr/local/sbin:/Users/john/phalcon-tools:/usr/local/lib/nod
e_modules/npm/bin/node-gyp-bin:/Applications/AMPPS/www/myapp/node_modules/.bin]
Cloud SDK on PATH: [True]

Installation Properties: [/Users/john/google-cloud-sdk/properties]
User Config Directory: [/Users/john/.config/gcloud]
User Properties: [/Users/john/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [itsplesiosaur@gmail.com]
Project: [myapp-1001]

Current Properties:
  [core]
    project: [myapp-1001]
    account: [itsplesiosaur@gmail.com]
    disable_usage_reporting: [True]
  [app]
    use_appengine_api: [True]
    suppress_change_warning: [true]
  [compute]
    region: [us-central1]
    zone: [us-central1-b]

Logs Directory: [/Users/john/.config/gcloud/logs]
Last Log File: [/Users/john/.config/gcloud/logs/2015.11.18/12.51.44.306312.log]

Please provide any additional information below.

Original issue reported on code.google.com by itsplesi...@gmail.com on 18 Nov 2015 at 12:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I've encountered the same issue. For me the issue is caused by a file that 
isn't even part of Docker image that is being deployed. I've created a minimal 
setup that reproduces the error:

https://github.com/arjenvanderende/gcloud-managedvms-deploy-fail

Original comment by ar...@q42.nl on 23 Nov 2015 at 8:11

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. We're working on a fix.

The recommended workaround right now is to add 'node_modules' to the 
'skip_files' clause of app.yaml, as described here: 
https://cloud.google.com/appengine/docs/python/config/appconfig?hl=en#Python_app
_yaml_Skipping_files

It'll look something like:

    skip_files:
    - ^(.*/)?#.*#$
    - ^(.*/)?.*~$
    - ^(.*/)?.*\.py[co]$
    - ^(.*/)?.*/RCS/.*$
    - ^(.*/)?\..*$
    - ^node_modules/.*$

Original comment by z...@google.com on 24 Nov 2015 at 9:36