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.

Why bazel ignore http_proxy in environment??

See original GitHub issue

Environment info

  • Operating System: Linux
uname -a
Linux ihlee 4.4.0-93-generic #116~14.04.1-Ubuntu SMP Mon Aug 14 16:07:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Bazel version (output of bazel info release):
bazel version
WARNING: ignoring http_proxy in environment.
Build label: 0.5.4
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Aug 25 10:00:00 2017 (1503655200)
Build timestamp: 1503655200
Build timestamp as int: 1503655200

I’m trying to build c++ source which contains tensorflow c++ API. But It continues to fail when it try to download tar.gz file… I think it is problem bazel ignore http_proxy in my linux environment… How can I configure for my proxy when I use bazel?? or Does anybody help me out??

bazel run -c opt //tensorflow/cc/example:basic_mlp
WARNING: ignoring http_proxy in environment.
ERROR: /home/ihlee/anaconda3/envs/tensorflow/tensorflow/tensorflow/cc/example/BUILD:20:1: error loading package 'tensorflow/core': Encountered error while reading extension file 'protobuf.bzl': no such package '@protobuf//': java.io.IOException: Error downloading [http://mirror.bazel.build/github.com/google/protobuf/archive/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz] to /home/ihlee/.cache/bazel/_bazel_ihlee/b725cdeaf9f7daef51d029bc8126d503/external/protobuf/0b059a3d8a8f8aa40dde7bea55edca4ec5dfea66.tar.gz: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and referenced by '//tensorflow/cc/example:basic_mlp'.
ERROR: Analysis of target '//tensorflow/cc/example:basic_mlp' failed; build aborted.
INFO: Elapsed time: 15.492s
ERROR: Build failed. Not running target.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
grey-eminencecommented, Feb 9, 2018

I run into similar problem and as mentioned here, changing from http(s)_proxy to HTTP(S)_PROXY helped.

2reactions
chenti2xcommented, Jun 24, 2020

I make HTTP_PROXY=http://:@:* in my .bashrc,why my bazel is not useful?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does bazel support operation behind a corporate proxy, e.g. ...
The Bazel build tool even tells me "WARNING: ignoring http_proxy in environment." My theory is that it does not take the environment variable...
Read more >
why bazel doesn't support proxy? - Google Groups
Well, you obviously need an HTTP proxy to access any HTTP server, if you need one in your environment. The problem is that...
Read more >
All properties - Synopsys Detect - Black Duck Software
DEPRECATED: This property is changing. Please use --blackduck.proxy.ignored.hosts in the future. It will cause failure in 6.0.0 and be removed in 7.0.0.
Read more >
Building with Bazel - Gerrit Code Review
To exclude tests that require very recent git client version: bazel test --test_tag_filters=-git-protocol-v2 //... To ignore cached test results:.
Read more >
Command-Line Reference | Bazel
/dev/null indicates that all further `--bazelrc`s will be ignored, ... Note that repository rules see the full environment anyway, ...
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