gcloud login failed http://localhost:8085/ not available

5,416 views
Skip to first unread message

Peter Chung

unread,
Jul 17, 2014, 3:05:45 AM7/17/14
to google-c...@googlegroups.com
Google Cloud SDK 0.9.27

app-engine-python 1.9.7
app-engine-python-extras 1.9.6
bq 2.0.18
bq-nix 2.0.18
compute 2014.07.15
core 2014.07.15
core-nix 2014.06.17
dns 2014.04.30
gae-python 2014.05.06
gcutil 1.16.3
gcutil-nix 1.16.1
gsutil 4.3
gsutil-nix 4.3
sql 2014.07.15

-------------------------------------------------------------------------------
|                                  Packages                                   |
|-----------------------------------------------------------------------------|
| Status        | Name                                    | ID         | Size |
|---------------+-----------------------------------------+------------+------|
| Not Installed | Cloud SDK for Go Developers             | pkg-go     |      |
| Not Installed | Cloud SDK for Java Developers           | pkg-java   |      |
| Installed     | Cloud SDK Core Command Line Tools       | pkg-core   |      |
| Installed     | Cloud SDK for Python and PHP Developers | pkg-python |      |
-------------------------------------------------------------------------------


-------------------------------------------------------------------------------------------------------
|                                        Individual Components                                        |
|-----------------------------------------------------------------------------------------------------|
| Status        | Name                                        | ID                         |     Size |
|---------------+---------------------------------------------+----------------------------+----------|
| Not Installed | App Engine Command Line Interface (Preview) | app                        |   < 1 MB |
| Not Installed | App Engine SDK for Go                       | gae-go                     |          |
| Not Installed | App Engine SDK for Java                     | gae-java                   | 153.1 MB |
| Not Installed | Developer Preview gcloud Commands           | preview                    |   < 1 MB |
| Not Installed | gcloud app Go Extensions (Linux, x86_64)    | app-engine-go-linux-x86_64 |  33.8 MB |
| Not Installed | gcloud app Java Extensions                  | app-engine-java            |  65.1 MB |
| Installed     | App Engine SDK for Python and PHP           | gae-python                 |   < 1 MB |
| Installed     | BigQuery Command Line Tool                  | bq                         |   < 1 MB |
| Installed     | Cloud DNS Admin Command Line Interface      | dns                        |   < 1 MB |
| Installed     | Cloud SDK Core Libraries                    | core                       |   < 1 MB |
| Installed     | Cloud SQL Admin Command Line Interface      | sql                        |   < 1 MB |
| Installed     | Cloud Storage Command Line Tool             | gsutil                     |   2.0 MB |
| Installed     | Compute Engine Command Line Interface (RC)  | compute                    |   < 1 MB |
| Installed     | Compute Engine Command Line Tool            | gcutil                     |   < 1 MB |
| Installed     | gcloud app Python Extensions                | app-engine-python          |   6.4 MB |
-------------------------------------------------------------------------------------------------------



John Asmuth

unread,
Jul 17, 2014, 8:07:40 AM7/17/14
to Peter Chung, google-c...@googlegroups.com

Is your os set up to not allow running a service? We try to detect failure to launch the server, bit maybe there is a case we didn't consider. You can run with --no-launch-browser to side step the issue.

--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.
To post to this group, send email to google-c...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-cloud-sdk.

Peter Chung

unread,
Jul 17, 2014, 10:58:40 AM7/17/14
to google-c...@googlegroups.com, touh...@gmail.com
Thanks
I can successfully login with "--no-lauch-browser".

My OS is Debian "jessie"
Debug messages:
gcloud  --user-output-enabled true --verbosity debug auth login

DEBUG: Running gcloud.auth.login with _Args({'account': None,
 'do_not_activate': False,
 'force': False,
 'format': None,
 'h': None,
 'help': None,
 'launch_browser': True,
 'project': None,
 'quiet': None,
 'shell': None,
 'user_output_enabled': 'true',
 'verbosity': 'debug'}).
Your browser has been opened to visit:



[16096:16096:0717/225052:ERROR:nss_util.cc(853)] After loading Root Certs, loaded==false: NSS error code: -8018
Created new window in existing browser session.
DEBUG: Sent event: Event(category='Executions', action='gcloud', label=u'2014.07.15', value=0)
DEBUG: Sent event: Event(category='Commands', action='gcloud.auth.login', label='unknown', value=0)




John Asmuth於 2014年7月17日星期四UTC+8下午8時07分40秒寫道:

Andrew Grande

unread,
Jun 1, 2015, 8:10:53 AM6/1/15
to google-c...@googlegroups.com
Hi, I'm following the Kebernetes quickstart guide, and the browser-based auth workflow fails for me - the localhost:8085 service is not bound. Have to resort to a manual auth with the 'no browser' switch.

Here are the versions:

Google Cloud SDK 0.9.61

bq 2.0.18
bq-nix 2.0.18
compute 2015.05.19
core 2015.05.19
core-nix 2014.10.20
dns 2015.05.19
gcloud 2015.05.19
gcutil 1.16.5
gcutil-nix 1.16.5
gsutil 4.12
gsutil-nix 4.6
kubectl 
kubectl-darwin-x86_64 0.17.0
preview 2015.05.19
sql 2015.05.06

-------------------------------------------------------------------------------
|                                  Packages                                   |
|-----------------------------------------------------------------------------|
| Status        | Name                                    | ID         | Size |
|---------------+-----------------------------------------+------------+------|
| Not Installed | Cloud SDK for Go Developers             | pkg-go     |      |
| Not Installed | Cloud SDK for Java Developers           | pkg-java   |      |
| Not Installed | Cloud SDK for Python and PHP Developers | pkg-python |      |
| Installed     | Cloud SDK Core Command Line Tools       | pkg-core   |      |
-------------------------------------------------------------------------------


----------------------------------------------------------------------------------------------------------
|                                         Individual Components                                          |
|--------------------------------------------------------------------------------------------------------|
| Status        | Name                                          | ID                          |     Size |
|---------------+-----------------------------------------------+-----------------------------+----------|
| Not Installed | App Engine Command Line Interface (Preview)   | app                         |   < 1 MB |
| Not Installed | App Engine Launcher Application for Mac       | gae-python-launcher-mac     |  19.0 MB |
| Not Installed | App Engine SDK for Go                         | gae-go                      |          |
| Not Installed | App Engine SDK for Java                       | gae-java                    | 156.9 MB |
| Not Installed | App Engine SDK for Python and PHP             | gae-python                  |   < 1 MB |
| Not Installed | gcloud Alpha Commands                         | alpha                       |   < 1 MB |
| Not Installed | gcloud Beta Commands                          | beta                        |   < 1 MB |
| Not Installed | gcloud app Go Extensions (Mac OS X, x86_64)   | app-engine-go-darwin-x86_64 |  24.7 MB |
| Not Installed | gcloud app Java Extensions                    | app-engine-java             |  94.5 MB |
| Not Installed | gcloud app Python Extensions                  | app-engine-python           |   6.9 MB |
| Installed     | BigQuery Command Line Tool                    | bq                          |   < 1 MB |
| Installed     | Cloud DNS Admin Command Line Interface        | dns                         |   < 1 MB |
| Installed     | Cloud SDK Core Libraries                      | core                        |   1.9 MB |
| Installed     | Cloud SQL Admin Command Line Interface        | sql                         |   < 1 MB |
| Installed     | Cloud Storage Command Line Tool               | gsutil                      |   2.5 MB |
| Installed     | Compute Engine Command Line Interface         | compute                     |   < 1 MB |
| Installed     | Compute Engine Command Line Tool (deprecated) | gcutil                      |   < 1 MB |
| Installed     | Default set of gcloud commands                | gcloud                      |   < 1 MB |
| Installed     | Developer Preview gcloud Commands             | preview                     |   < 1 MB |
| Installed     | kubectl                                       | kubectl                     |          |
----------------------------------------------------------------------------------------------------------




Zachary Newman

unread,
Jun 1, 2015, 8:42:04 AM6/1/15
to Andrew Grande, google-c...@googlegroups.com
I'm having trouble reproducing this.

A few questions to narrow in on the problem:
* I see the Darwin version of the kubectl component installed, so I assume you're running OS X: which version?
* What behavior do you see when you attempt to do the normal login flow? Does everything seem to go well until the browser tries to send a request to the local port, or is there a spectacular crash (or message that the service cannot be started and a smooth fallback)?
* Do you have any unusual network settings that could be interfering: firewall, another service on that port, etc.?

Cheers,
Zack

--
You received this message because you are subscribed to the Google Groups "google-cloud-sdk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-s...@googlegroups.com.

Andrew Grande

unread,
Jun 1, 2015, 12:12:19 PM6/1/15
to google-c...@googlegroups.com, aper...@gmail.com
Hi Zack,


A few questions to narrow in on the problem:
* I see the Darwin version of the kubectl component installed, so I assume you're running OS X: which version?

10.10.3 (14D136)
 
* What behavior do you see when you attempt to do the normal login flow? Does everything seem to go well until the browser tries to send a request to the local port, or is there a spectacular crash (or message that the service cannot be started and a smooth fallback)?

The browser opens up a standard google prompt for account access permissions, but after clicking Accept it goes back to localhost:8085 - there's nothing bound there (and no port conflict, as I'm getting no http response there in the browser).

If I do a terminal-only auth and copy the url, then this prompt proceeds to the google server which generates the token for me to copy. Must be the URL that it generates.

If that makes a difference I installed a gcloud preview (following the kubernetes guide)
 
* Do you have any unusual network settings that could be interfering: firewall, another service on that port, etc.?

Nothing that comes to mind, it's a localhost address after all :) 

Zachary Newman

unread,
Jun 2, 2015, 11:53:33 AM6/2/15
to Andrew Grande, google-c...@googlegroups.com
Hi Andrew,

Thanks for the details.
Hmm...let's try to isolate this:

Run the following commands:
    PYTHONPATH=~/google-cloud-sdk/lib
    python -Sc "import oauth2client.tools as t; import googlecloudsdk.core.credentials.flow as f; t.ClientRedirectServer(('localhost', 8085), f.ClientRedirectHandler).handle_request()"

NOTE: this assumes the default installation location for the Cloud SDK (`~/google-cloud-sdk`. If you have installed it elsewhere, please replace the PYTHONPATH part of the command with `PYTHONPATH=/path/to/google-cloud-sdk/lib` (where `/path/to` is the actual path to your installation).

This will run just the part of the auth flow relating to setting up the localhost HTTP server. It should pause and wait for browser input without printing anything.

Then, in a browser, navigate to <http://localhost:8085>. If all goes well, you should be redirected to <https://cloud.google.com/sdk/auth_failure>.

Let me know what behavior you see. This works for me, also on OS X 10.10.3 (14D136).

Cheers,
Zack

A couple responses inline, too:

On Mon, Jun 1, 2015 at 12:12 PM, Andrew Grande <aper...@gmail.com> wrote:
Hi Zack,

A few questions to narrow in on the problem:
* I see the Darwin version of the kubectl component installed, so I assume you're running OS X: which version?

10.10.3 (14D136)

Looks like we match. 
 
* What behavior do you see when you attempt to do the normal login flow? Does everything seem to go well until the browser tries to send a request to the local port, or is there a spectacular crash (or message that the service cannot be started and a smooth fallback)?

The browser opens up a standard google prompt for account access permissions, but after clicking Accept it goes back to localhost:8085 - there's nothing bound there (and no port conflict, as I'm getting no http response there in the browser).

If I do a terminal-only auth and copy the url, then this prompt proceeds to the google server which generates the token for me to copy. Must be the URL that it generates.

Yes, this is expected. 

If that makes a difference I installed a gcloud preview (following the kubernetes guide)

Shouldn't make a difference in this case, but good information for us to have.
 
* Do you have any unusual network settings that could be interfering: firewall, another service on that port, etc.?

Nothing that comes to mind, it's a localhost address after all :) 

Just have to cover all the bases :) 
Reply all
Reply to author
Forward
0 new messages