Verified
Status Update
Comments
kn...@google.com <kn...@google.com>
kn...@google.com <kn...@google.com> #2
Do you get this issue on another operating system as well?
bu...@gmail.com <bu...@gmail.com> #3
I'll try and duplicate in an Ubuntu VM, but have seen at least one other issue come in with the same error.
bu...@gmail.com <bu...@gmail.com> #4
Tested and validated same issue on Ubuntu Server:
REDACTED@ubuntu:~# gcloud info --run-diagnostics --verbosity debug
DEBUG: Running [gcloud.info ] with arguments: [--run-diagnostics: "True", --verbosity: "debug"]
Network diagnostic detects and fixes local network connection issues.
Checking network connection...failed.
DEBUG: setproxy() takes at most 7 arguments (8 given)
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 797, in Execute
resources = calliope_command.Run(cli=self, args=args)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 757, in Run
resources = command_instance.Run(args)
File "/usr/lib/google-cloud-sdk/lib/surface/info.py", line 57, in Run
network_diagnostics.NetworkDiagnostic().RunChecks()
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/diagnostic_base.py", line 57, in RunChecks
result, fixer = self._RunCheck(check)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/diagnostic_base.py", line 90, in _RunCheck
result, fixer = check.Check(first_run=first_run)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/network_diagnostics.py", line 86, in Check
fail = self._CheckURL(url)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/network_diagnostics.py", line 104, in _CheckURL
http.Http().request(url, method='GET')
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/http.py", line 254, in WrappedRequest
response = orig_request(*modified_args, **kwargs)
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1652, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1392, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1312, in _conn_request
conn.connect()
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1051, in connect
sock.setproxy(proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, proxy_pass, proxy_headers)
TypeError: setproxy() takes at most 7 arguments (8 given)
ERROR: gcloud crashed (TypeError): setproxy() takes at most 7 arguments (8 given)
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
REDACTED@ubuntu:~# gcloud info --run-diagnostics --verbosity debug
DEBUG: Running [
Network diagnostic detects and fixes local network connection issues.
Checking network connection...failed.
DEBUG: setproxy() takes at most 7 arguments (8 given)
Traceback (most recent call last):
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 797, in Execute
resources = calliope_command.Run(cli=self, args=args)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 757, in Run
resources = command_instance.Run(args)
File "/usr/lib/google-cloud-sdk/lib/surface/info.py", line 57, in Run
network_diagnostics.NetworkDiagnostic().RunChecks()
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/diagnostic_base.py", line 57, in RunChecks
result, fixer = self._RunCheck(check)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/diagnostic_base.py", line 90, in _RunCheck
result, fixer = check.Check(first_run=first_run)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/network_diagnostics.py", line 86, in Check
fail = self._CheckURL(url)
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/diagnostics/network_diagnostics.py", line 104, in _CheckURL
http.Http().request(url, method='GET')
File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/http.py", line 254, in WrappedRequest
response = orig_request(*modified_args, **kwargs)
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1652, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1392, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1312, in _conn_request
conn.connect()
File "/usr/bin/../lib/google-cloud-sdk/lib/third_party/httplib2/python2/httplib2/__init__.py", line 1051, in connect
sock.setproxy(proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, proxy_pass, proxy_headers)
TypeError: setproxy() takes at most 7 arguments (8 given)
ERROR: gcloud crashed (TypeError): setproxy() takes at most 7 arguments (8 given)
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
ja...@homedepot.com <ja...@homedepot.com> #5
Same issue occurs running `gcloud app deploy` on both Mac and Ubuntu clients but activating service accounts works fine
bu...@gmail.com <bu...@gmail.com> #6
To validate locally, just set http_proxy/https_proxy environment variables (don't have to be valid) and run `gcloud info --run-diagnostics --verbosity debug`
kn...@google.com <kn...@google.com>
kn...@google.com <kn...@google.com> #7
I would like to inform you that I have transferred the issue to the engineering team and will being looked into based on its priority, however there is no ETA for the fix. You will be able to see updates through this post.
se...@gmail.com <se...@gmail.com> #8
As a workaround, downgrading to 185 solved the issue: Go to https://storage.cloud.google.com/cloud-sdk-release , type "google-cloud-sdk-185" into the search bar, download file for you OS, unzip, etc.
zj...@google.com <zj...@google.com> #9
Cloud SDK engineer here; thanks for reporting, and thanks for posting the workaround.
We're investigating the issue and will let you know when we have updates.
We're investigating the issue and will let you know when we have updates.
zj...@google.com <zj...@google.com> #10
We've found a fix; expect it in the 187.0.0 Cloud SDK release next week.
bu...@gmail.com <bu...@gmail.com> #11
Thanks, appreciate the quick response on this!
ya...@google.com <ya...@google.com> #12
With today's release of Cloud SDK version 187.0.0, this issue should now be fixed. Please let us know if you are still seeing this issue in version 187 or a later version.
bu...@gmail.com <bu...@gmail.com> #13
Working great. Thanks!
Description
information in the report you file. In order to help diagnose the issue,
we've included some installation information in this report. Please look
through and redact any information you consider personal or sensitive
before submitting this issue.
Issue running command [gcloud info].
What steps will reproduce the problem?
Utilize http/https proxy in macOS system preferences, using google cloud sdk version 186.0.0.
What is the expected output? What do you see instead?
gcloud commands fail as below.
Please provide any additional information below.
I've tracked it down to an upgrade of httplib2 versions between google cloud sdk 185.0.0 -> 186.0.0. In 185.0.0 lib/third_party/httplib2 was version 0.9.2, in 186.0.0 is version 0.10.3.
Trace:
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/gcloud_main.py:147
gcloud_cli.Execute()
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/calliope/cli.py:823
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/calliope/cli.py:861
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/calliope/cli.py:797
resources = calliope_command.Run(cli=self, args=args)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/calliope/backend.py:757
resources = command_instance.Run(args)
surface/info.py:57
network_diagnostics.NetworkDiagnostic().RunChecks()
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/core/diagnostics/diagnostic_base.py:57
result, fixer = self._RunCheck(check)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/core/diagnostics/diagnostic_base.py:90
result, fixer = check.Check(first_run=first_run)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/core/diagnostics/network_diagnostics.py:86
fail = self._CheckURL(url)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/core/diagnostics/network_diagnostics.py:104
http.Http().request(url, method='GET')
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/core/http.py:254
response = orig_request(*modified_args, **kwargs)
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/httplib2/python2/httplib2/__init__.py:1652
(response, content) = self._request(conn, authority, uri, request_uri, method, b...
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/httplib2/python2/httplib2/__init__.py:1392
(response, content) = self._conn_request(conn, request_uri, method, body, header...
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/httplib2/python2/httplib2/__init__.py:1312
conn.connect()
/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/httplib2/python2/httplib2/__init__.py:1051
sock.setproxy(proxy_type, proxy_host, proxy_port, proxy_rdns, proxy_user, proxy_...
TypeError: setproxy() takes at most 7 arguments (8 given)
Installation information:
Google Cloud SDK [186.0.0]
Platform: [Mac OS X, x86_64] ('Darwin', 'REDACTED', '17.3.0', 'Darwin Kernel Version 17.3.0: Thu Nov 9 18:09:22 PST 2017; root:xnu-4570.31.3~1/RELEASE_X86_64', 'x86_64', 'i386')
Python Version: [2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]]
Python Location: [/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]
Installation Root: [${SDK_ROOT}]
Installed Components:
core: [2018.01.22]
gsutil: [4.28]
bq: [2.0.28]
System PATH: [${HOME}/.rvm/gems/ruby-2.4.1/bin:${HOME}/.rvm/gems/ruby-2.4.1@global/bin:${HOME}/.rvm/rubies/ruby-2.4.1/bin:${SDK_ROOT}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public/:${HOME}/.fastlane/bin:${HOME}/golang/bin:/usr/local/opt/go/libexec/bin:/usr/local/opt/gnupg/libexec/gpgbin:/usr/local/sbin:/usr/local/opt/gettext:${HOME}/.rvm/bin]
Python PATH: [${SDK_ROOT}/lib/third_party:${SDK_ROOT}/lib:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload]
Cloud SDK on PATH: [False]
Kubectl on PATH: [/usr/local/bin/kubectl]
Installation Properties: [${SDK_ROOT}/properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
Active Configuration Path: [${CLOUDSDK_CONFIG}/configurations/config_default]
Account: [None]
Project: [None]
Current Properties:
[core]
disable_usage_reporting: [True]
Environmental Proxy Settings:
type: [http]
address: [127.0.0.1]
port: [3128]
Logs Directory: [${CLOUDSDK_CONFIG}/logs]
Last Log File: [${CLOUDSDK_CONFIG}/logs/2018.01.24/19.51.29.805122.log]
git: [git version 2.16.1]
ssh: [OpenSSH_7.6p1, LibreSSL 2.6.2]