modxevil / google-cloud-sdk

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

gcloud:deploy fails : ToolException: Could not synchronize files. The gsutil command exited with status [1] #532

Open GoogleCodeExporter opened 8 years ago

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

mvn clean install
mvn gcloud:deploy -Dgcloud.version=version1 -Dgcloud.gcloud_project=myproject

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

expect to finish deploy 
I see the following :

[INFO] Uploading   ....com/e8dbc91b1d5c0d6e37f201b897dd5a003dd680cd.js: 0 
B/51.84 KiB    
[INFO] Uploading   ....com/e8dbc91b1d5c0d6e37f201b897dd5a003dd680cd.js: 51.84 
KiB/51.84 KiB    
[INFO] CommandException: 3 files/objects could not be copied/removed.
[INFO] INFO: Error synchronizing files. Return code: 1. Retrying.
[INFO] DEBUG: Running command: [/bin/bash 
/home/tareq/google-cloud-sdk/bin/gsutil -m rsync -R -c /tmp/tmpofq2NO 
gs://staging.tradeos-test1.appspot.com/], Env: [None]
[INFO] 
[INFO] WARNING: You have requested checksumming but your crcmod installation 
isn't
[INFO] using the module's C extension, so checksumming will run very slowly. 
For help
[INFO] installing the extension, please see:
[INFO]   $ gsutil help crcmod
[INFO] 
[INFO] Building synchronization state...
[INFO] Caught non-retryable exception while listing file:///tmp/tmpofq2NO: 
[Errno 2] No such file or directory: 
'/tmp/tmpofq2NO/babfa40c84b6077baf7352fbefd86de948e26b3c.pem'
[INFO] At destination listing 10000...
[INFO] At destination listing 20000...
[INFO] CommandException: Caught non-retryable exception - aborting rsync
[INFO] INFO: Error synchronizing files. Return code: 1. Retrying.
[INFO] DEBUG: Running command: [/bin/bash 
/home/tareq/google-cloud-sdk/bin/gsutil -m rsync -R -c /tmp/tmpofq2NO 
gs://staging.tradeos-test1.appspot.com/], Env: [None]
[INFO] 
[INFO] WARNING: You have requested checksumming but your crcmod installation 
isn't
[INFO] using the module's C extension, so checksumming will run very slowly. 
For help
[INFO] installing the extension, please see:
[INFO]   $ gsutil help crcmod
[INFO] 
[INFO] Building synchronization state...
[INFO] Caught non-retryable exception while listing file:///tmp/tmpofq2NO: 
[Errno 2] No such file or directory: 
'/tmp/tmpofq2NO/babfa40c84b6077baf7352fbefd86de948e26b3c.pem'
[INFO] At destination listing 10000...
[INFO] At destination listing 20000...
[INFO] CommandException: Caught non-retryable exception - aborting rsync
[INFO] INFO: Error synchronizing files. Return code: 1. Retrying.
[INFO] DEBUG: Running command: [/bin/bash 
/home/tareq/google-cloud-sdk/bin/gsutil -m rsync -R -c /tmp/tmpofq2NO 
gs://staging.tradeos-test1.appspot.com/], Env: [None]
[INFO] 
[INFO] WARNING: You have requested checksumming but your crcmod installation 
isn't
[INFO] using the module's C extension, so checksumming will run very slowly. 
For help
[INFO] installing the extension, please see:
[INFO]   $ gsutil help crcmod
[INFO] 
[INFO] Building synchronization state...
[INFO] Caught non-retryable exception while listing file:///tmp/tmpofq2NO: 
[Errno 2] No such file or directory: 
'/tmp/tmpofq2NO/babfa40c84b6077baf7352fbefd86de948e26b3c.pem'
[INFO] At destination listing 10000...
[INFO] At destination listing 20000...
[INFO] CommandException: Caught non-retryable exception - aborting rsync
[INFO] INFO: Error synchronizing files. Return code: 1. Retrying.
[INFO] DEBUG: (gcloud.preview.app.deploy) Could not synchronize files. The 
gsutil command exited with status [1]
. Command output is available in 
[/home/tareq/.config/gcloud/logs/2016.02.09/20.18.20.168000.log].
[INFO] Traceback (most recent call last):
[INFO]   File 
"/home/tareq/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 609, in 
Execute
[INFO]     result = args.cmd_func(cli=self, args=args)
[INFO]   File 
"/home/tareq/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 
1228, in Run
[INFO]     resources = command_instance.Run(args)
[INFO]   File 
"/home/tareq/google-cloud-sdk/lib/googlecloudsdk/surface/preview/app/deploy.py",
 line 271, in Run
[INFO]     app_config.NonHermeticModules().items(), code_bucket)
[INFO]   File 
"/home/tareq/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/deploy_app_command_
util.py", line 66,
 in CopyFilesToCodeBucket
[INFO]     s=e.last_result, l=log.GetLogFilePath()))
[INFO] ToolException: Could not synchronize files. The gsutil command exited 
with status [1]. Command output is 
available in [/home/tareq/.config/gcloud/logs/2016.02.09/20.18.20.168000.log].
[INFO] ERROR: (gcloud.preview.app.deploy) Could not synchronize files. The 
gsutil command exited with status [1]
. Command output is available in 
[/home/tareq/.config/gcloud/logs/2016.02.09/20.18.20.168000.log].

What is the output of 'gcloud info'?

Google Cloud SDK [91.0.1]

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/tareq/google-cloud-sdk]
Installed Components:
  core: [2015.12.16]
  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: 
[/home/tareq/google-cloud-sdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/
bin:/sbin:/bin:/usr
/games:/usr/local/games:/opt/apache-maven-3.3.9/bin]
Cloud SDK on PATH: [True]
Installation Properties: [/home/tareq/google-cloud-sdk/properties]
User Config Directory: [/home/tareq/.config/gcloud]
User Properties: [/home/tareq/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]
Account: [tareq@freightos.com]
Project: [tradeos-test1]
Current Properties:
  [core]
    project: [tradeos-test1]
    account: [tareq@freightos.com]
    disable_usage_reporting: [True]
  [app]
    promote_by_default: [false]
    stop_previous_version: [false]
    use_appengine_api: [true]
    use_cloud_build: [false]
    suppress_change_warning: [true]
  [compute]
    region: [us-central1]
    zone: [us-central1-f]
Logs Directory: [/home/tareq/.config/gcloud/logs]
Last Log File: [/home/tareq/.config/gcloud/logs/2016.02.09/20.18.20.168000.log]

Please provide any additional information below.

im executing these command on ubuntu14.04 LTS on VM instance on project1 to 
deploy the app on another vm instance on myproject

Original issue reported on code.google.com by ta...@freightos.com on 9 Feb 2016 at 8:43

GoogleCodeExporter commented 8 years ago
please note that project1= tradeos-test2 and myproject=tradeos-test1

Original comment by ta...@freightos.com on 9 Feb 2016 at 8:47

GoogleCodeExporter commented 8 years ago
Do you mind sharing the contents of 
/home/tareq/.config/gcloud/logs/2016.02.09/20.18.20.168000.log ?

Original comment by z...@google.com on 10 Feb 2016 at 10:08