Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set #21525

Open
meteorcloudy opened this issue Feb 29, 2024 · 0 comments
Assignees
Labels
P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug

Comments

@meteorcloudy
Copy link
Member

meteorcloudy commented Feb 29, 2024

Description of the bug:

Recently, we enabled ipv6 support for bazel.build #21155

However, our CI revealed the issue described in the title.

The underlying problem is that with --host_jvm_args=-Djava.net.preferIPv6Addresses=true:

  • HttpURLConnection can connect from a ipv4 only machine to a ipv4 host (e.g. github.com)
  • HttpURLConnection can NOT connect from a ipv4 only machine to a ipv4 ipv6 dual stacked host (e.g. google.com)

The problem is similar to #2486

https://buildkite.com/bazel/bazel-bazel/builds/27029

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Run bazel --host_jvm_args=-Djava.net.preferIPv6Addresses=true build //... with Bzlmod enabled on a ipv4 only machine.

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@meteorcloudy meteorcloudy added P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website and removed untriaged labels Feb 29, 2024
@meteorcloudy meteorcloudy changed the title Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set Feb 29, 2024
@meteorcloudy meteorcloudy self-assigned this Feb 29, 2024
copybara-service bot pushed a commit that referenced this issue Feb 29, 2024
Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set. Our GCP VMs are ipv4 only and we recently enabled ipv6 for bcr.bazel.build.

Related #21525

PiperOrigin-RevId: 611465054
Change-Id: I0c3d144d12ab167a18075e6719ff8597161798d1
iancha1992 pushed a commit to iancha1992/bazel that referenced this issue Feb 29, 2024
Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set. Our GCP VMs are ipv4 only and we recently enabled ipv6 for bcr.bazel.build.

Related bazelbuild#21525

PiperOrigin-RevId: 611465054
Change-Id: I0c3d144d12ab167a18075e6719ff8597161798d1
meteorcloudy added a commit to meteorcloudy/bazel that referenced this issue Mar 4, 2024
Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set. Our GCP VMs are ipv4 only and we recently enabled ipv6 for bcr.bazel.build.

Related bazelbuild#21525

PiperOrigin-RevId: 611465054
Change-Id: I0c3d144d12ab167a18075e6719ff8597161798d1
github-merge-queue bot pushed a commit that referenced this issue Mar 4, 2024
…21546)

Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with
--host_jvm_args=-Djava.net.preferIPv6Addresses=true set. Our GCP VMs are
ipv4 only and we recently enabled ipv6 for bcr.bazel.build.

Related #21525

PiperOrigin-RevId: 611465054
Change-Id: I0c3d144d12ab167a18075e6719ff8597161798d1
fweikert pushed a commit to fweikert/bazel that referenced this issue Mar 5, 2024
Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with --host_jvm_args=-Djava.net.preferIPv6Addresses=true set. Our GCP VMs are ipv4 only and we recently enabled ipv6 for bcr.bazel.build.

Related bazelbuild#21525

PiperOrigin-RevId: 611465054
Change-Id: I0c3d144d12ab167a18075e6719ff8597161798d1
meteorcloudy added a commit that referenced this issue Mar 5, 2024
Bazel cannot reach to bcr.bazel.build from a ipv4 only machine with
--host_jvm_args=-Djava.net.preferIPv6Addresses=true set. Our GCP VMs are
ipv4 only and we recently enabled ipv6 for bcr.bazel.build.

Related #21525

PiperOrigin-RevId: 611465054
Change-Id: I0c3d144d12ab167a18075e6719ff8597161798d1

Co-authored-by: Googler <pcloudy@google.com>
@meteorcloudy meteorcloudy added P2 We'll consider working on this in future. (Assignee optional) and removed P1 I'll work on this now. (Assignee required) labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug
Projects
None yet
Development

No branches or pull requests

3 participants