Quentin123345 / google-cloud-sdk

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

cloud init and login issue #440

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Welcome to the Google Cloud SDK! Run "gcloud -h" to get the list of available co
mmands.

---

D:\CloudSdk>gcloud init
Welcome! This command will take you through the configuration of gcloud.

Settings from your current configuration [default] are:
[core]
disable_usage_reporting = False
[meta]
active_config = default

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

Your current configuration has been set to: [default]

To continue, you must login. Would you like to login (Y/n)?  y

Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhos
t%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.
googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.e
mail+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.
googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%
2Fcompute&access_type=offline

ERROR: There was a problem with web authentication. Try running again with --no-
launch-browser.
ERROR: (gcloud.auth.login) Could not reach the login server. A potential cause o
f this could be because you are behind a proxy. Please set the environment varia
bles HTTPS_PROXY and HTTP_PROXY to the address of the proxy in the format "proto
col://address:port" (without quotes) and try again.
Example: HTTPS_PROXY=https://192.168.0.1:8080
[auth login --force --brief] has failed
You can use [gcloud config] to change more gcloud settings.

Your current configuration is: [default]

[core]
disable_usage_reporting = False
[meta]
active_config = default
ERROR: (gcloud.init) Failed command: [auth login --force --brief] with exit code
 [1]

D:\CloudSdk>gcloud init
Welcome! This command will take you through the configuration of gcloud.

Settings from your current configuration [default] are:
[core]
disable_usage_reporting = False
[meta]
active_config = default

Pick configuration to use:
 [1] Re-initialize this configuration [default] with new settings
 [2] Create a new configuration
 [3] Switch to and re-initialize existing configuration: [dhanunjay]
Please enter your numeric choice:
Please enter a value between 1 and 3:
Please enter a value between 1 and 3:  1

Your current configuration has been set to: [default]

To continue, you must login. Would you like to login (Y/n)?  y

Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?redirect_uri=http%3A%2F%2Flocalhos
t%3A8085%2F&prompt=select_account&response_type=code&client_id=32555940559.apps.
googleusercontent.com&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.e
mail+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.
googleapis.com%2Fauth%2Fappengine.admin+https%3A%2F%2Fwww.googleapis.com%2Fauth%
2Fcompute&access_type=offline

ERROR: There was a problem with web authentication. Try running again with --no-
launch-browser.
ERROR: (gcloud.auth.login) Could not reach the login server. A potential cause o
f this could be because you are behind a proxy. Please set the environment varia
bles HTTPS_PROXY and HTTP_PROXY to the address of the proxy in the format "proto
col://address:port" (without quotes) and try again.
Example: HTTPS_PROXY=https://192.168.0.1:8080
[auth login --force --brief] has failed
You can use [gcloud config] to change more gcloud settings.

Your current configuration is: [default]

[core]
disable_usage_reporting = False
[meta]
active_config = default
ERROR: (gcloud.init) Failed command: [auth login --force --brief] with exit code
 [1]

D:\CloudSdk>

======================================================

Could you please let me know what is the root cause

Original issue reported on code.google.com by rajub...@gmail.com on 21 Dec 2015 at 5:39

GoogleCodeExporter commented 8 years ago

Original comment by z...@google.com on 21 Dec 2015 at 5:10