bumplzz69 / google-cloud-sdk

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

gcloud auth login Fails #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Running cloud auth login fails with Python error.

What is the expected output? What do you see instead?
I expect to be able to authenticate.  Instead, I see the following:

DerekBerubesMBP:Wildstar ServiceDesk Maven derekberube$ gcloud auth login
Traceback (most recent call last):
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 211, in <module>
    main()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 207, in main
    _cli.Execute()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 617, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1110, in Run
    result = command_instance.Run(args)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/exceptions.py", line 86, in TryFunc
    return func(*args, **kwargs)
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/login.py", line 55, in Run
    if c_gce.Metadata().connected:
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 183, in Metadata
    _metadata_lock.unlock()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/mutex.py", line 53, in unlock
    function(argument)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 181, in _CreateMetadata
    _metadata = _GCEMetadata()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 71, in __init__
    GOOGLE_GCE_METADATA_NUMERIC_PROJECT_URI)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 53, in _ReadNoProxy
    urllib2.Request(uri), timeout=1).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1045, in getresponse
    response.begin()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 373, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

What is the output of 'gcloud info'?
Similar error:

DerekBerubesMBP:Wildstar ServiceDesk Maven derekberube$ gcloud info
Traceback (most recent call last):
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 211, in <module>
    main()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 207, in main
    _cli.Execute()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 617, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1110, in Run
    result = command_instance.Run(args)
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py", line 33, in Run
    return InfoHolder()
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py", line 51, in __init__
    self.config = ConfigInfo()
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py", line 149, in __init__
    self.account = properties.VALUES.core.account.Get(validate=False)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/properties.py", line 550, in Get
    value = _GetProperty(self, _PropertiesFile.Load(), required)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/properties.py", line 804, in _GetProperty
    value = callback()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/properties.py", line 340, in _GetGCEAccount
    return c_gce.Metadata().DefaultAccount()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 183, in Metadata
    _metadata_lock.unlock()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/mutex.py", line 53, in unlock
    function(argument)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 181, in _CreateMetadata
    _metadata = _GCEMetadata()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 71, in __init__
    GOOGLE_GCE_METADATA_NUMERIC_PROJECT_URI)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 53, in _ReadNoProxy
    urllib2.Request(uri), timeout=1).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1045, in getresponse
    response.begin()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 373, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

Please provide any additional information below.

Original issue reported on code.google.com by derek.be...@wildstartech.com on 9 May 2015 at 5:07

GoogleCodeExporter commented 9 years ago
Restarted my machine and the problem still persists.  I can reach other sites 
(like code.google.com).  Here is a list of installed components:

DerekBerubesMBP:Wildstar ServiceDesk Maven derekberube$ gcloud components list
The following are the components available through the Google Cloud 
SDK.  You may choose to install one or more of the pre-configured 
packages (which contain everything you need to get started), and/or 
any of the individual components below.

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

--------------------------------------------------------------------------------
--------------------------
|                                         Individual Components                 
                         |
|-------------------------------------------------------------------------------
-------------------------|
| Status        | Name                                          | ID            
              |     Size |
|---------------+-----------------------------------------------+---------------
--------------+----------|
| Not Installed | App Engine SDK for Go                         | gae-go        
              |          |
| Installed     | App Engine Command Line Interface (Preview)   | app           
              |   < 1 MB |
| Installed     | App Engine Launcher Application for Mac       | 
gae-python-launcher-mac     |  19.2 MB |
| Installed     | App Engine SDK for Java                       | gae-java      
              | 164.3 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.8 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     | gcloud Alpha Commands                         | alpha         
              |   < 1 MB |
| Installed     | gcloud Beta Commands                          | beta          
              |   < 1 MB |
| Installed     | gcloud app Go Extensions (Mac OS X, x86_64)   | 
app-engine-go-darwin-x86_64 |  24.7 MB |
| Installed     | gcloud app Java Extensions                    | 
app-engine-java             |  96.2 MB |
| Installed     | gcloud app Python Extensions                  | 
app-engine-python           |   6.9 MB |
--------------------------------------------------------------------------------
--------------------------

Original comment by derek.berube on 9 May 2015 at 5:53

GoogleCodeExporter commented 9 years ago
I did remove and re-install the Google Cloud SDK on my machine.  I still 
experienced the same problem:

DerekBerubesMBP:Wildstar ServiceDesk Maven derekberube$ gcloud info
Traceback (most recent call last):
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 211, in <module>
    main()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 207, in main
    _cli.Execute()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 617, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1110, in Run
    result = command_instance.Run(args)
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py", line 33, in Run
    return InfoHolder()
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py", line 51, in __init__
    self.config = ConfigInfo()
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/root/info.py", line 149, in __init__
    self.account = properties.VALUES.core.account.Get(validate=False)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/properties.py", line 550, in Get
    value = _GetProperty(self, _PropertiesFile.Load(), required)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/properties.py", line 804, in _GetProperty
    value = callback()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/properties.py", line 340, in _GetGCEAccount
    return c_gce.Metadata().DefaultAccount()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 183, in Metadata
    _metadata_lock.unlock()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/mutex.py", line 53, in unlock
    function(argument)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 181, in _CreateMetadata
    _metadata = _GCEMetadata()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 71, in __init__
    GOOGLE_GCE_METADATA_NUMERIC_PROJECT_URI)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 53, in _ReadNoProxy
    urllib2.Request(uri), timeout=1).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1045, in getresponse
    response.begin()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 373, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

Original comment by derek.berube on 9 May 2015 at 6:05

GoogleCodeExporter commented 9 years ago
Now both of the following commands are working.  

gcloud info
gcloud auth login

The following is the output of gcloud info

DerekBerubesMBP:~ derekberube$ gcloud info
Google Cloud SDK [0.9.58]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.6 (default, Sep  9 2014, 15:04:36)  [GCC 4.2.1 Compatible 
Apple LLVM 6.0 (clang-600.0.39)]]
Site Packages: [Disabled]

Installation Root: [/Users/derekberube/google-cloud-sdk]
Installed Components:
  app-engine-python: [1.9.19]
  app: [2015.04.29]
  gsutil-nix: [4.6]
  app-engine-python-extras: [1.9.18]
  gsutil: [4.12]
  alpha: [2015.04.09]
  gcutil: [1.16.5]
  app-engine-java: [1.9.19]
  gcloud: [2015.04.29]
  bq: [2.0.18]
  dns: [2015.04.29]
  preview: [2015.04.29]
  gcutil-nix: [1.16.5]
  core: [2015.04.29]
  gae-java-nix: [1.9.10]
  gae-python: [2014.05.06]
  beta: [2015.04.21]
  app-engine-go-darwin-x86_64: [1.9.19]
  sql: [2015.04.09]
  gcloud-extensions-darwin-x86_64: [0.15.0]
  core-nix: [2014.10.20]
  compute: [2015.04.29]
  gae-python-launcher-mac: [1.9.19]
  gae-java: [1.9.19]
  bq-nix: [2.0.18]
System PATH: 
[/Users/derekberube/google-cloud-sdk/bin:/Library/Java/JavaVirtualMachines/jdk1.
8.0.jdk/Contents/Home/bin:/usr/local/apache-maven/apache-maven-3.3.3/bin:/usr/lo
cal/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin]
Cloud SDK on PATH: [True]

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

Account: [None]
Project: [None]

Current Properties:
  [core]
    disable_usage_reporting: [False]

Logs Directory: [/Users/derekberube/.config/gcloud/logs]
Last Log File: 
[/Users/derekberube/.config/gcloud/logs/2015.05.09/01.08.00.740642.log]

Original comment by derek.berube on 9 May 2015 at 2:03

GoogleCodeExporter commented 9 years ago
After running gcloud auth login and gcloud config set project commands, the 
following is the output of the gcloud info command.

Platform: [Mac OS X, x86_64]
Python Version: [2.7.6 (default, Sep  9 2014, 15:04:36)  [GCC 4.2.1 Compatible 
Apple LLVM 6.0 (clang-600.0.39)]]
Site Packages: [Disabled]

Installation Root: [/Users/derekberube/google-cloud-sdk]
Installed Components:
  app-engine-python: [1.9.19]
  app: [2015.04.29]
  gsutil-nix: [4.6]
  app-engine-python-extras: [1.9.18]
  gsutil: [4.12]
  alpha: [2015.04.09]
  gcutil: [1.16.5]
  app-engine-java: [1.9.19]
  gcloud: [2015.04.29]
  bq: [2.0.18]
  dns: [2015.04.29]
  preview: [2015.04.29]
  gcutil-nix: [1.16.5]
  core: [2015.04.29]
  gae-java-nix: [1.9.10]
  gae-python: [2014.05.06]
  beta: [2015.04.21]
  app-engine-go-darwin-x86_64: [1.9.19]
  sql: [2015.04.09]
  gcloud-extensions-darwin-x86_64: [0.15.0]
  core-nix: [2014.10.20]
  compute: [2015.04.29]
  gae-python-launcher-mac: [1.9.19]
  gae-java: [1.9.19]
  bq-nix: [2.0.18]
System PATH: 
[/Users/derekberube/google-cloud-sdk/bin:/Library/Java/JavaVirtualMachines/jdk1.
8.0.jdk/Contents/Home/bin:/usr/local/apache-maven/apache-maven-3.3.3/bin:/usr/lo
cal/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin]
Cloud SDK on PATH: [True]

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

Account: [derek.berube@wildstartech.com]
Project: [wildstarservicedesk-hrd]

Current Properties:
  [core]
    project: [wildstarservicedesk-hrd]
    account: [derek.berube@wildstartech.com]
    disable_usage_reporting: [False]

Logs Directory: [/Users/derekberube/.config/gcloud/logs]
Last Log File: 
[/Users/derekberube/.config/gcloud/logs/2015.05.09/09.56.49.659699.log]

Original comment by derek.berube on 9 May 2015 at 2:57

GoogleCodeExporter commented 9 years ago
It seems like I am able to create/re-create this problem by starting and then 
stopping the development environment.  For example, I'll start the local 
environment on my machine by running:

mvn clean
mvn gcloud:run

The application will start up without a problem and then I'll go and make a 
change to the code in my development environment.  I return to my console 
window from where I issued the "mvn gcloud:run" command and I press CTRL+C to 
terminate that instance of the dev environment.  I then clean and restart my 
development environment by issuing the following commands:

mvn clean
mvn gcloud:run

At this point in time, I get the following information:

[INFO] Running gcloud app run...
[INFO] Getting project name: wildstarservicedesk-hrd from gcloud settings.
[INFO] Running python -S 
/Users/derekberube/google-cloud-sdk/bin/dev_appserver.py -A 
wildstarservicedesk-hrd /Users/derekberube/Documents/Programming/Java/Wildstar 
ServiceDesk Maven/target/servicedesk-1.0-SNAPSHOT --log_level=debug
[INFO] 2015-05-09 21:54:05.989:INFO::main: Logging initialized @122ms
[INFO] INFO     2015-05-09 21:54:09,109 devappserver2.py:745] Skipping SDK 
update check.
[INFO] Traceback (most recent call last):
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/dev_appserver.py"
, line 83, in <module>
[INFO]     _run_file(__file__, globals())
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/dev_appserver.py"
, line 79, in _run_file
[INFO]     execfile(_PATHS.script_file(script_name), globals_)
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
tools/devappserver2/devappserver2.py", line 1002, in <module>
[INFO]     main()
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
tools/devappserver2/devappserver2.py", line 995, in main
[INFO]     dev_server.start(options)
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
tools/devappserver2/devappserver2.py", line 794, in start
[INFO]     request_data, storage_path, options, configuration)
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
tools/devappserver2/devappserver2.py", line 894, in _create_api_server
[INFO]     appidentity_oauth_url=options.appidentity_oauth_url)
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
tools/devappserver2/api_server.py", line 366, in setup_stubs
[INFO]     oauth_url=appidentity_oauth_url)
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
api/app_identity/app_identity_stub.py", line 196, in Create
[INFO]     dc = ai_stub.DefaultCredentialsBasedAppIdentityServiceStub()
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/google/appengine/
api/app_identity/app_identity_defaultcredentialsbased_stub.py", line 70, in 
__init__
[INFO]     client.GoogleCredentials.get_application_default())
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/lib/oauth2client/
oauth2client/client.py", line 1036, in get_application_default
[INFO]     env_name = _get_environment()
[INFO]   File 
"/Users/derekberube/google-cloud-sdk/platform/google_appengine/lib/oauth2client/
oauth2client/client.py", line 924, in _get_environment
[INFO]     response = urllib2_urlopen('http://metadata.google.internal')
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 127, in urlopen
[INFO]     return _opener.open(url, data, timeout)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 410, in open
[INFO]     response = meth(req, response)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 523, in http_response
[INFO]     'http', request, response, code, msg, hdrs)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 442, in error
[INFO]     result = self._call_chain(*args)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 382, in _call_chain
[INFO]     result = func(*args)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 629, in http_error_302
[INFO]     return self.parent.open(new, timeout=req.timeout)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 404, in open
[INFO]     response = self._open(req, data)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 422, in _open
[INFO]     '_open', req)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 382, in _call_chain
[INFO]     result = func(*args)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 1214, in http_open
[INFO]     return self.do_open(httplib.HTTPConnection, req)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.
py", line 1187, in do_open
[INFO]     r = h.getresponse(buffering=True)
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.
py", line 1045, in getresponse
[INFO]     response.begin()
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.
py", line 409, in begin
[INFO]     version, status, reason = self._read_status()
[INFO]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.
py", line 373, in _read_status
[INFO]     raise BadStatusLine(line)
[INFO] httplib.BadStatusLine: ''
[ERROR] Error: gcloud app xxx exit code is: 1
[ERROR] 
org.apache.maven.plugin.MojoExecutionException: Error: gcloud app xxx exit code 
is: 1
    at com.google.appengine.gcloudapp.AbstractGcloudMojo.startCommand(AbstractGcloudMojo.java:368)
    at com.google.appengine.gcloudapp.GCloudAppRun.execute(GCloudAppRun.java:302)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

It should be noted that I'll type gcloud auth login and I'll get an error as 
well.

DerekBerubesMBP:Wildstar ServiceDesk Maven derekberube$ gcloud auth login
Traceback (most recent call last):
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 211, in <module>
    main()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/gcloud/gcloud.py", line 207, in main
    _cli.Execute()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/cli.py", line 617, in Execute
    result = args.cmd_func(cli=self, args=args)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/backend.py", line 1110, in Run
    result = command_instance.Run(args)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/calliope/exceptions.py", line 86, in TryFunc
    return func(*args, **kwargs)
  File "/Users/derekberube/google-cloud-sdk/lib/googlecloudsdk/gcloud/sdktools/auth/login.py", line 55, in Run
    if c_gce.Metadata().connected:
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 182, in Metadata
    _metadata_lock.lock(function=_CreateMetadata, argument=None)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/mutex.py", line 44, in lock
    function(argument)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 181, in _CreateMetadata
    _metadata = _GCEMetadata()
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 71, in __init__
    GOOGLE_GCE_METADATA_NUMERIC_PROJECT_URI)
  File "/Users/derekberube/google-cloud-sdk/./lib/googlecloudsdk/core/credentials/gce.py", line 53, in _ReadNoProxy
    urllib2.Request(uri), timeout=1).read()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 442, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 629, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1045, in getresponse
    response.begin()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 373, in _read_status
    raise BadStatusLine(line)
httplib.BadStatusLine: ''

Original comment by derek.be...@wildstartech.com on 9 May 2015 at 9:59

GoogleCodeExporter commented 9 years ago
This afternoon, after doing nothing more than letting my system sit I am now 
able to run the following command without error:

mvn gcloud:run

There seems to be a problem starting and stopping the dev app server repeatedly.

Original comment by derek.be...@wildstartech.com on 10 May 2015 at 12:11