bazel-central-registry icon indicating copy to clipboard operation
bazel-central-registry copied to clipboard

[Bug]: GET returned 403 Forbidden from bcr.bazel.build

Open prestonvanloon opened this issue 1 year ago • 0 comments

What happened?

ERROR: /opt/actions-runner/_work/eth-client-docker-image-builder/eth-client-docker-image-builder/source/cmd/validator/BUILD.bazel:38:10: While resolving toolchains for target //cmd/validator:validator (64afcc3): invalid registered toolchain '//toolchains:all': while parsing '//toolchains:all': no such package '@@rules_cc~//cc': java.io.IOException: Error downloading [https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch] to /data/gh-home/.cache/bazel/_bazel_root/e06669d813ee8962af5ff3fbbdf856de/external/rules_cc~/.tmp_remote_patches/module_dot_bazel_version.patch: GET returned 403 Forbidden

Version

Development (host) and target OS/architectures:

Output of bazel --version: bazel 7.1.0

Version of relevant rules from the WORKSPACE or MODULE.bazel file: https://github.com/prysmaticlabs/prysm

Language(s) and/or frameworks involved: go

How to reproduce

Not sure, but our build runners were hitting this issue until we disabled bzlmod.

Any other information?

What causes a 403? How can it be prevented?

How exactly do I setup a registry mirrior? Can it be done with a simple GCP bucket or does a server need to be online to serve requests.

prestonvanloon avatar May 14 '24 11:05 prestonvanloon