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 #439

Open GoogleCodeExporter opened 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:38

GoogleCodeExporter commented 8 years ago
Issue 440 has been merged into this issue.

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

GoogleCodeExporter commented 8 years ago
Are you behind a proxy? If so, did you set the HTTP_PROXY/HTTPS_PROXY 
environment variables as the error message suggests?

If not, are there any other unusual network settings in your current 
environment?

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

GoogleCodeExporter commented 8 years ago
Thanks very much  for reply
Could you please let me know wat i have to set the variable and where.I am
new to this bit confusion.

Original comment by rajub...@gmail.com on 21 Dec 2015 at 5:51

GoogleCodeExporter commented 8 years ago
This error occurs when gcloud cannot reach the login server 
(https://accounts.google.com/). If you need to use a proxy to reach this 
address, set the environment variables as described here: 
https://wiki.archlinux.org/index.php/Proxy_settings

Original comment by z...@google.com on 21 Dec 2015 at 6:16

GoogleCodeExporter commented 8 years ago
Dear Team,

Thanks for updating information.How to start dataflow example from eclipse
and how to deploy the bigquery.

Could you please provide  how to start data flow example from cloud. n how
to deploy..

could you help me please

Original comment by rajub...@gmail.com on 21 Dec 2015 at 6:25

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

Failed to run [auth login --force --brief]
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 crashed (ValueError): invalid literal for int() with base 10:
'808
5;https:'

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

D:\CloudSdk>gcloud auth login
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: gcloud crashed (ValueError): invalid literal for int() with base 10:
'808
5;https:'

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

D:\CloudSdk>

Based on error i set the environment variable but its not working.

in environment variable:

HTTP_PROXY=http://1192.168.0.1:8080;http://localhost:808o;

HTTPS_PROXY=https://192.168.0.1:8080;https://localhost:8080;

Stiil getting issue Please help what is the root cause;

Original comment by rajub...@gmail.com on 23 Dec 2015 at 12:25

GoogleCodeExporter commented 8 years ago
Dear friends,

Please let me know the solution for below.I am getting below issue

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

Failed to run [auth login --force --brief]
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 crashed (ValueError): invalid literal for int() with base 10:
'808
5;https:'

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

D:\CloudSdk>gcloud auth login
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: gcloud crashed (ValueError): invalid literal for int() with base 10:
'808
5;https:'

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

D:\CloudSdk>

Based on error i set the environment variable but its not working.

in environment variable:

HTTP_PROXY=http://1192.168.0.1:8080;http://localhost:808o;

HTTPS_PROXY=https://192.168.0.1:8080;https://localhost:8080;

Stiil getting issue Please help what is the root cause;

Original comment by rajub...@gmail.com on 24 Dec 2015 at 8:39

GoogleCodeExporter commented 8 years ago
This is not a correct address:
HTTP_PROXY=http://1192.168.0.1:8080;http://localhost:808o;
No address can have 1192 as an IP segment. I think you meant 192.
Also 808o is not a valid number. I think you meant 8080.

I would also suggest you try with just one address, not two. Either 192.168.0.1 
or localhost, but not both.

Original comment by svalen...@google.com on 26 Dec 2015 at 1:18

GoogleCodeExporter commented 8 years ago
Issue 438 has been merged into this issue.

Original comment by svalen...@google.com on 26 Dec 2015 at 1:19