modxevil / google-cloud-sdk

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

gcloud preview app deploy fails saying "Cannot copy the file to AppEngine" #505

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
gcloud preview app deploy build/staged-app/app.yaml --promote --version 2 
--verbosity debug

What is the expected output? What do you see instead?
Expected the app to get deployed on a manged vm. Instead got the error message 
saying "ERROR: (gcloud.preview.app.deploy) Error Response: [13] Errors were 
encountered while copying files to App Engine."

What is the output of 'gcloud info'?
Google Cloud SDK [93.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Jul 14 2015, 19:46:27)  [GCC 4.2.1 Compatible 
Apple LLVM 6.0 (clang-600.0.39)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]

Installation Root: [/Users/vinay/google-cloud-sdk]
Installed Components:
  core: [2016.01.14]
  app-engine-python: [1.9.30]
  core-nix: [2015.11.24]
  app-engine-java: [1.9.30]
  gcloud: []
  gsutil-nix: [4.15]
  gsutil: [4.16]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: 
[/Users/vinay/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
/usr/local/go/bin:/usr/local/go/bin]
Cloud SDK on PATH: [True]

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

Account: [vinay@yawasa.com]
Project: [managed-vm-1194]

Current Properties:
  [core]
    project: [managed-vm-1194]
    account: [vinay@yawasa.com]
    disable_usage_reporting: [False]
  [app]
    use_appengine_api: [true]
    suppress_change_warning: [true]

Logs Directory: [/Users/vinay/.config/gcloud/logs]
Last Log File: [/Users/vinay/.config/gcloud/logs/2016.01.28/21.16.09.244644.log]

Please provide any additional information below.

Original issue reported on code.google.com by vi...@yawasa.com on 28 Jan 2016 at 3:49

GoogleCodeExporter commented 8 years ago
Copy / paste of the error message
ERROR: (gcloud.preview.app.deploy) Error Response: [13] Errors were encountered 
while copying files to App Engine.

Details: [
  [
    {
      "@type": "type.googleapis.com/google.rpc.ResourceInfo",
      "description": "Failed to copy file.",
      "resourceName": "https://storage.googleapis.com/staging.managed-vm-1194.appspot.com/b3644d5fbbbfa01d0db4a2427b2ec054a3afad67.jar",
      "resourceType": "file"
    }
  ]
]

Anonymous callers do not have storage.objects.get access to object 
staging.managed-vm-1194.appspot.com/b3644d5fbbbfa01d0db4a2427b2ec054a3afad67.jar
.

Original comment by vi...@yawasa.com on 28 Jan 2016 at 4:11

GoogleCodeExporter commented 8 years ago
Hey,

Thanks for reporting the issue. Does this reproduce consistently? If so, could 
you please attach the full output of "gcloud preview app deploy" with 
"--verbosity=debug" and the app.yaml you're using?

If you don't want to attach it to this bug, feel free to email it to me 
directly at dlorenc@google.com

Original comment by dlor...@google.com on 28 Jan 2016 at 5:06

GoogleCodeExporter commented 8 years ago
Thanks for responding dlorenc.
Just figured out that my appengine-web.xml was missing <vm>True</vm>. Once I 
added that back, sanity returned:).
Thanks again.

Original comment by vi...@yawasa.com on 28 Jan 2016 at 5:20