venf2k / google-cloud-sdk

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

ERROR: gcloud crashed (OSError): Config directory does not exist: /usr/local/google/home/<USER>/.config/gcloud #759

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Issue running command [gcloud init].

What steps will reproduce the problem?

Noogler - installed gcloud SDK from the dogfood link 
"bash 
/google/data/rw/teams/cloud-sdk/components/release_channels/dogfood/latest/insta
ll_google_cloud_sdk.bash" then ran "gcloud init", browser popped up, granted 
access and then saw the gcloud crash in the terminal.

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

Instead of creating the configuration file, I see a gcloud crash. Output is 
below:

quote
Your active configuration is: [default]

[core]
disable_usage_reporting = False

Pick configuration to use:
 [1] Re-initialize this configuration [default] with new settings
 [2] Create a new configuration
Please enter your numeric choice:  2

Enter configuration name:  gke-regtest
Your current configuration has been set to: [gke-regtest]

To continue, you must log in. Would you like to log in (Y/n)?

Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?redirect_uri=XXXXXX

Created new window in existing browser session.
ERROR: gcloud crashed (OSError): Config directory does not exist: 
/usr/local/google/home/gkalele/.config/gcloud

If you would like to report this issue, please run the following command:
  gcloud feedback

unquote

Please provide any additional information below.

I believe the ~/.config/gcloud directory did not exist for me since this is the 
very first time I am running gcloud on this new developer server.

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/init.py:106
 if not self._PickAccount(args.console_on...
surface/init.py:150
 disable_user_output=False):
surface/init.py:437
 result = self.cli.Execute(args)
googlecloudsdk/calliope/cli.py:654
 result = args.cmd_func(cli=self, args=ar...
googlecloudsdk/calliope/backend.py:1401
 resources = command_instance.Run(args)
googlecloudsdk/calliope/exceptions.py:110
 return func(*args, **kwargs)
surface/auth/login.py:148
 args.brief)
surface/auth/login.py:163
 client.save_to_well_known_file(google_cr...
third_party/oauth2client/client.py:1277
 raise OSError('Config directory does not...
OSError: Config directory does not exist: 
/usr/local/google/home/gkalele/.config/gcloudInstallation information:

Google Cloud SDK [HEAD]

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: [/usr/local/google/home/gkalele/google-cloud-sdk]
Release Channel: [dogfood]
Repository URL: 
[https://cloud-sdk-components.corp.google.com/release_channels/dogfood/latest/co
mponents-2.json]
Installed Components:
  core: [2016.04.13]
  core-nix: [2016.03.21]
[output truncated]

Original issue reported on code.google.com by gkal...@google.com on 19 Apr 2016 at 5:57

GoogleCodeExporter commented 8 years ago
I manually created the directory and gcloud init worked the next time.

mkdir -p ~/.config/gcloud

Original comment by gkal...@google.com on 19 Apr 2016 at 5:59

GoogleCodeExporter commented 8 years ago

Original comment by che...@google.com on 20 Apr 2016 at 11:42