venf2k / google-cloud-sdk

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

"gcloud preview app deploy" crashes with "BadFileException ..source-context.json... not found or not accessible" #730

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud preview app deploy].

What steps will reproduce the problem?
> gcloud auth activate-service-account [service account] --key-file [service 
account json]
> gcloud --project=[project name] preview app deploy [path to app.yaml] 
--docker-build=local --version [version] --quiet

What is the expected output? What do you see instead?
I expected the App to deploy to App Engine.
I see:
ERROR: gcloud crashed (MaxRetrialsException): last_result=(None, (<class 
'googlecloudsdk.calliope.exceptions.BadFileException'>, 
BadFileException('[/home/heavy/git/easy-easy-apps-site/target/tmp/source-context
.json] not found or not accessible',), <traceback object at 0x7f2e7fc9c050>)), 
last_retrial=3, time_passed_ms=0,time_to_wait=0

Please provide any additional information below.
Truncated information:
gsutil: [4.18]
  bq: [2.0.24]
  bq-nix: [2.0.24]
System PATH: 
[/home/heavy/google-cloud-sdk/bin:/home/heavy/.rvm/gems/jruby-1.7.4/bin:/home/he
avy/.rvm/gems/jruby-1.7.4@global/bin:/home/heavy/.rvm/rubies/jruby-1.7.4/bin:/us
r/local/apache-maven/apache-maven-3.1.1/bin:/home/heavy/google-cloud-sdk/bin:/us
r/local/apache-maven/apache-maven-3.1.1/bin:/home/heavy/Development/packer:/home
/heavy/Development/android-sdk-linux/tools:/home/heavy/Development/android-sdk-l
inux/platform-tools:/home/heavy/Development/crosswalk-cordova/bin:/usr/local/sbi
n:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/
lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-
oracle/jre/bin:/home/heavy/.rvm/bin:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/
java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin:/home/heavy/.rvm/bin:/ho
me/heavy/.rvm/bin:/home/heavy/.rvm/bin]
Cloud SDK on PATH: [True]

Installation Properties: [/home/heavy/google-cloud-sdk/properties]
User Config Directory: [/home/heavy/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: 
[/home/heavy/.config/gcloud/configurations/config_default]

Account: [oheavy@www-easyeasyapps-staging.iam.gserviceaccount.com]
Project: [byclosure-infrastructure]

Current Properties:
  [core]
    project: [byclosure-infrastructure]
    account: [oheavy@www-easyeasyapps-staging.iam.gserviceaccount.com]
    disable_usage_reporting: [False]
  [app]
    suppress_change_warning: [true]
  [compute]
    region: [us-central1]
    zone: [us-central1-c]

Logs Directory: [/home/heavy/.config/gcloud/logs]
Last Log File: [/home/heavy/.config/gcloud/logs/2016.04.14/11.55.51.335520.log]

Trace:
googlecloudsdk/gcloud_main.py:169
 gcloud_cli.Execute()
googlecloudsdk/calliope/cli.py:654
 result = args.cmd_func(cli=self, args=ar...
googlecloudsdk/calliope/backend.py:1401
 resources = command_instance.Run(args)
surface/preview/app/deploy.py:522
 storage_client)
googlecloudsdk/api_app/deploy_app_command_util.py:170
 _UploadFiles(files_to_upload, bucket_ref...
googlecloudsdk/api_app/deploy_app_command_util.py:113
 args=(bucket_ref, path, sha1_hash, stora...
googlecloudsdk/core/util/retry.py:176
 TryFunc, should_retry_if=should_retry, s...
googlecloudsdk/core/util/retry.py:234
 self._RaiseIfStop(result, state)
googlecloudsdk/core/util/retry.py:109
 raise MaxRetrialsException('Reached', re...
MaxRetrialsException: last_result=(None, (<class 
'googlecloudsdk.calliope.exceptions.BadFileException'>, 
BadFileException('[/home/heavy/git/easy-easy-apps-site/target/tmp/source-context
.json] not found or not accessible',), <traceback object at 0x7f2e7fc9c050>)), 
last_retrial=3, time_passed_ms=0,time_to_wait=0Installation information:

Google Cloud SDK [105.0.0]

Platform: [Linux, x86_64]
Python Version: [2.7.6 (default, Jun 22 2015, 17:58:13)  [GCC 4.8.2]]
Python Location: [/usr/bin/python2]
Site Packages: [Disabled]

Installation Root: [/home/heavy/google-cloud-sdk]
Installed Components:
  core: [2016.04.11]
  core-nix: [2016.03.28]
  gcloud: []
  gsutil-nix: [4.18]
[output truncated]

Original issue reported on code.google.com by luis.vie...@byclosure.com on 14 Apr 2016 at 11:09

GoogleCodeExporter commented 8 years ago
You can work around by running `gcloud config set app/use_gsutil true`.

Original comment by z...@google.com on 14 Apr 2016 at 1:42