question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

local/install_deps.bash support http proxy on ubuntu18.04

See original GitHub issue

when run on ubuntu 18.04 with root user and http proxy,there is some error occur at the end:

Running: bazel run //local:create_gopath (cwd='src')
| INFO: Invocation ID: 637ff326-b2bb-4fb5-a4ca-270784072b85
| Loading:
| Loading: 0 packages loaded
| Analyzing: target //local:create_gopath (0 packages loaded, 0 targets configured)
| Analyzing: target //local:create_gopath (0 packages loaded, 0 targets configured)
| Analyzing: target //local:create_gopath (0 packages loaded, 0 targets configured)
| ERROR: /home/clusterfuzz/src/go/server/cron/BUILD.bazel:3:1: no such package '@com_google_cloud_go//datastore': failed to fetch com_google_cloud_go: 2019/02/19 15:13:43 unrecognized import path "cloud.google.com/go"
|  and referenced by '//go/server/cron:go_default_library'
| DEBUG: Rule 'org_golang_x_sys' modified arguments {"shallow_since": "1538141909 +0000"}
| DEBUG: Rule 'org_golang_x_tools' modified arguments {"sha256": "2384fa91351a7414b643c5230422ce45f5aa2be8a82727609afd4e64e6973a30"}
| ERROR: Analysis of target '//local:create_gopath' failed; build aborted: no such package '@com_google_cloud_go//datastore': failed to fetch com_google_cloud_go: 2019/02/19 15:13:43 unrecognized import path "cloud.google.com/go"
| INFO: Elapsed time: 35.316s
| INFO: 0 processes.
| FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
| ERROR: Build failed. Not running target
| FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
| Return code is non-zero (1).
| Exit.
(ENV) root@xxxx:/home/clusterfuzz

it is because can not get go packages,but i has config http proxy,so there was some other solution?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sanqingshancommented, Feb 20, 2019

I knew this issue. use HTTP(S)_PRXOY instead of http(s)_proxy. bazel only request the proxy with HTTP(S)_PROXY

thanks for you suggestion,it is right,I have resolve it,here is some tips when use http proxy by root

export http_proxy=http://x.x.x.x
export https_proxy=${http_proxy}
export HTTP_PROXY=http://x.x.x.x
export HTTPS_PROXY=${HTTP_PROXY}
alias curl='curl -x x.x.x.x '
sed -i 's/sudo//g'  local/install_deps_linux.bash 

and replace bower install to bower install --allow-root

0reactions
zlrscommented, Apr 3, 2019

Hi sanqingshan: Now I meet the similar problem,and have set no_proxy for the localhost,you mean,my proxy server must run on the machine which the clustfuzz is running on?@sanqingshan

The tracestack is as following: INFO 2019-02-27 05:57:37,600 devappserver2.py:278] Skipping SDK update check. | INFO 2019-02-27 05:57:37,693 datastore_emulator.py:155] Starting Cloud Datastore emulator at: http://localhost:9004 | WARNING 2019-02-27 05:57:37,747 simple_search_stub.py:1196] Could not read search indexes from local/storage/search_indexes | INFO 2019-02-27 05:57:38,871 datastore_emulator.py:161] Cloud Datastore emulator responded after 1.178564 seconds | INFO 2019-02-27 05:57:38,872 api_server.py:275] Starting API server at: http://localhost:38449 | INFO 2019-02-27 05:57:38,878 api_server.py:265] Starting gRPC API server at: http://localhost:34005 | INFO 2019-02-27 05:57:38,947 dispatcher.py:256] Starting module “default” running at: http://localhost:9000 | INFO 2019-02-27 05:57:39,019 dispatcher.py:256] Starting module “cron-service” running at: http://localhost:9001 | INFO 2019-02-27 05:57:39,019 admin_server.py:150] Starting admin server at: http://localhost:9002 Bootstrapping datastore… Running: python butler.py run setup --non-dry-run --local --config-dir=configs/test | DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7. | Creating config | Creating fuzzer afl | Creating fuzzer libFuzzer | Creating template afl | Creating template libfuzzer | Creating template engine_asan | Creating template engine_ubsan | Creating template engine_msan | Done | INFO 2019-02-27 05:58:37,733 instance.py:294] Instance PID: 22299 | HTTPError() | HTTPError() | Traceback (most recent call last): | File “/usr/lib/google-cloud-sdk/platform/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py”, line 1302, in communicate | req.respond() | File “/usr/lib/google-cloud-sdk/platform/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py”, line 831, in respond | self.server.gateway(self).respond() | File “/usr/lib/google-cloud-sdk/platform/google_appengine/lib/cherrypy/cherrypy/wsgiserver/wsgiserver2.py”, line 2115, in respond | response = self.req.server.wsgi_app(self.env, self.start_response) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/wsgi_server.py”, line 292, in call | INFO 2019-02-27 05:58:38,692 module.py:861] cron-service: “GET /_ah/start HTTP/1.1” 500 - | return app(environ, start_response) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/request_rewriter.py”, line 314, in _rewriter_middleware | response_body = iter(application(environ, wrapped_start_response)) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/request_handler.py”, line 165, in call | self._flush_logs(response.get(‘logs’, [])) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/python/runtime/request_handler.py”, line 308, in _flush_logs | apiproxy_stub_map.MakeSyncCall(‘logservice’, ‘Flush’, request, response) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_stub_map.py”, line 97, in MakeSyncCall | return stubmap.MakeSyncCall(service, call, request, response) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_stub_map.py”, line 331, in MakeSyncCall | rpc.CheckSuccess() | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_rpc.py”, line 136, in CheckSuccess | self._traceback) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/api/apiproxy_rpc.py”, line 161, in _WaitImpl | self.request, self.response) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py”, line 223, in MakeSyncCall | self._MakeRealSyncCall(service, call, request, response) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/ext/remote_api/remote_api_stub.py”, line 248, in _MakeRealSyncCall | encoded_response = self._server.Send(self._path, encoded_request) | File “/usr/lib/google-cloud-sdk/platform/google_appengine/google/appengine/tools/appengine_rpc.py”, line 469, in Send | f = self.opener.open(req) | File “/usr/lib/python2.7/urllib2.py”, line 435, in open | response = meth(req, response) | File “/usr/lib/python2.7/urllib2.py”, line 548, in http_response | ‘http’, request, response, code, msg, hdrs) | File “/usr/lib/python2.7/urllib2.py”, line 473, in error | return self._call_chain(*args) | File “/usr/lib/python2.7/urllib2.py”, line 407, in _call_chain | result = func(*args) | File “/usr/lib/python2.7/urllib2.py”, line 556, in http_error_default | raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) | HTTPError: HTTP Error 504: Connection failed

I have met 500/504 error similar to yours. Network troubleshotting sucks…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to configure proxy settings on Ubuntu 18.04 - Serverlab -
The following will set a proxy for HTTP and HTTPS, while preventing local traffic from ... Open your bash profile file into a...
Read more >
How do I set system wide proxy in Ubuntu 18.04?
Set proxy details in Environment variables; Edit /etc/environment and add following lines (replace username, password, host and port with ...
Read more >
How to Set System Wide Proxy in Ubuntu 18.04 - kifarunix.com
To configure proxy settings for APT only, you can simply create proxy configuration file under /etc/apt/apt.conf.d/ . echo -e 'Acquire::http:: ...
Read more >
How to Configure Proxy Settings on Ubuntu 20.04 - phoenixNAP
1. To access proxy settings using the Ubuntu GUI, open Ubuntu's main Settings. · 2. Select the Network setting in the menu on...
Read more >
How To Set System Proxy on Ubuntu 20.04|18.04
Configure Proxy and click “OK” to save. Set System-Wide Proxy settings on CLI. We will add a shell script file under /etc/profile.d/proxy.sh.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found