isusanin / google-cloud-sdk

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

Include instruction to run `gcloud init` in case of TLSParameterError #627

Closed GoogleCodeExporter closed 8 years ago

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

What steps will reproduce the problem?
<exclude>

What is the expected output? What do you see instead?
<exclude>

Please provide any additional information below.
The help was a little cryptic; what worked for me was re-running `gcloud init`. 
Maybe that would be helpful to include in the help. 

Traceback (most recent call last):
  File "googlecloudsdk/gcloud_main.py", line 171, in main
    gcloud_cli.Execute()
  File "googlecloudsdk/calliope/cli.py", line 646, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "googlecloudsdk/calliope/backend.py", line 1394, in Run
    resources = command_instance.Run(args)
  File "surface/preview/app/deploy.py", line 483, in Run
    config_cleanup)
  File "googlecloudsdk/api_lib/app/deploy_command_util.py", line 200, in BuildAndPushDockerImages
    cli, version_id, remote, project) as docker_client:
  File "googlecloudsdk/api_lib/app/images/docker_util.py", line 237, in __enter__
    kwargs = containers.KwargsFromEnv(self._vm.host, self._vm.cert_dir, True)
  File "googlecloudsdk/api_lib/app/containers.py", line 100, in KwargsFromEnv
    assert_hostname=False)
  File "third_party/docker/docker/tls.py", line 46, in __init__
    'Path to a certificate and key files must be provided'
TLSParameterError: Path to a certificate and key files must be provided through 
the client_config param. TLS configurations should map the Docker CLI client 
configurations. See http://docs.docker.com/examples/https/ for API details.

Installation information:

Google Cloud SDK [98.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.8 (default, Aug 26 2014, 10:34:16)  [GCC 4.2.1 (Based on 
Apple Inc. build 5658) (LLVM build 2336.11.00)]]
[output truncated]

============== TRUNCATED INFORMATION (PLEASE CONSIDER INCLUDING) ===============
Python Location: 
[/usr/local/nest-python-2.7.8-Darwin-x86_64-20140826/Python.framework/Versions/2
.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]

Installation Root: [/Users/adrianwan/google-cloud-sdk]
Installed Components:
  core: [2016.02.22]
  app-engine-python: [1.9.32]
  core-nix: [2016.02.05]
  kubectl: []
  gcloud: []
  gsutil-nix: [4.15]
  beta: [2016.01.12]
  gsutil: [4.16]
  bq: [2.0.18]
  alpha: [2016.01.12]
  bq-nix: [2.0.18]
  kubectl-darwin-x86_64: [1.1.7]
System PATH: 
[/Users/adrianwan/bin:/Users/adrianwan/google-cloud-sdk/bin:/usr/local/nest-pyth
on/bin:/usr/local/nest-python-local/bin:/usr/local/texlive/2015/bin/x86_64-darwi
n:/Users/adrianwan/.dotfiles/bin:/usr/local/git/current/bin:/usr/local/bin:/usr/
bin:/bin:/usr/local/sbin:/usr/sbin:/sbin]
Cloud SDK on PATH: [True]

WARNING: There are old versions of the Google Cloud Platform tools on your 
system PATH.
  /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/dev_appserver.py

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

Account: [awan@nestlabs.com]
Project: [h20app-1136]

Current Properties:
  [core]
    project: [h20app-1136]
    account: [awan@nestlabs.com]
    disable_usage_reporting: [False]
  [app]
    suppress_change_warning: [true]
  [container]
    cluster: [grpc-gateway-endpoint]

Logs Directory: [/Users/adrianwan/.config/gcloud/logs]
Last Log File: 
[/Users/adrianwan/.config/gcloud/logs/2016.03.04/14.45.13.092431.log]
============= END TRUNCATED INFORMATION (PLEASE CONSIDER INCLUDING) 
=============

Original issue reported on code.google.com by a...@nestlabs.com on 4 Mar 2016 at 10:49

GoogleCodeExporter commented 8 years ago

Original comment by vil...@google.com on 5 Mar 2016 at 2:18

GoogleCodeExporter commented 8 years ago
Thanks for the feedback. A fix for this was released in version 99.0.0. Please 
`gcloud components update` to receive the fix.

Original comment by vil...@google.com on 5 Mar 2016 at 2:19

GoogleCodeExporter commented 8 years ago
Great, thanks sorry I didn't do that first :)

Original comment by a...@nestlabs.com on 7 Mar 2016 at 6:39