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.

Download via bazelisk fails with 404 on AARCH64

See original GitHub issue

Description of the bug:

If using .bazelversion to specify a commit hash, it fails to download the required artifact with a 404 error like this $ bazel --version 2022/08/06 09:47:13 Using unreleased version at commit f440f8ec3f63e5d663e1f9d9614f05a39422102a 2022/08/06 09:47:13 Downloading https://storage.googleapis.com/bazel-builds/artifacts/ubuntu1404_arm64/f440f8ec3f63e5d663e1f9d9614f05a39422102a/bazel... 2022/08/06 09:47:13 could not download Bazel: HTTP GET https://storage.googleapis.com/bazel-builds/artifacts/ubuntu1404_arm64/f440f8ec3f63e5d663e1f9d9614f05a39422102a/bazel failed with error 404 Assuming that URL used by bazelisk is correct that suggests that bazel is not building or uploading the AARCH64 binary for intermediate builds referenced only by a commit hash. Is that possible? Or is the URL used not correct?

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

Setup .bazelversion like this and using bazelisk 1.12.0 $ cat .bazelversion f440f8ec3f63e5d663e1f9d9614f05a39422102a $ bazel version

Which operating system are you running Bazel on?

Ubuntu 18.04

What is the output of bazel info release?

As above, fails to run

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

n/a

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

`$ git remote get-url origin; git rev-parse master; git rev-parse HEAD
https://github.com/tensorflow/tensorflow.git
6479186fba791386a5962f53c1e2d2cbf51c3dc0
b265fdbcce6b9cd960a4c482a5bd487489fbd641
`

Have you found anything relevant by searching the web?

This is linked to bazelisk issue https://github.com/bazelbuild/bazelisk/issues/317 which seems to have been resolved with the 1.12.0 release, at least at the bazelisk end and assuming that the URL being used is correct.

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

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
elfringhamcommented, Aug 15, 2022

@sgowroji What is the reason for the ‘more data needed’ tag? I do not see a question being asked.

Also FWIW https://storage.googleapis.com/bazel-builds/artifacts/ubuntu1404/f440f8ec3f63e5d663e1f9d9614f05a39422102a/bazel is a valid download link, so while Ubuntu 14.04 may not be a supported platform, for some reason it works as a download link to reach the x86 artifact.

1reaction
elfringhamcommented, Aug 8, 2022

@sgowroji

On a AARCH64 architecture machine `$ mkdir wksp

$ cd wksp

$ touch WORKSPACE

$ echo f440f8ec3f63e5d663e1f9d9614f05a39422102a>.bazelversion

$ wget https://github.com/bazelbuild/bazelisk/releases/download/v1.12.0/bazelisk-linux-arm64

$ chmod +x bazelisk-linux-arm64

$ ./bazelisk-linux-arm64 version

2022/08/08 09:30:31 Using unreleased version at commit f440f8ec3f63e5d663e1f9d9614f05a39422102a

022/08/08 09:30:31 Downloading https://storage.googleapis.com/bazel-builds/artifacts/ubuntu1404_arm64/f440f8ec3f63e5d663e1f9d9614f05a39422102a/bazel

2022/08/08 09:30:31 could not download Bazel: HTTP GET https://storage.googleapis.com/bazel-builds/artifacts/ubuntu1404_arm64/f440f8ec3f63e5d663e1f9d9614f05a39422102a/bazel failed with error 404 `

Read more comments on GitHub >

github_iconTop Results From Across the Web

bazelisk from homebrew looks for macOS arm binary 4.0.0 ...
bazelisk from homebrew looks for macOS arm binary 4.0.0 and 404s #245 ... build/4.0.0/release/bazel-4.0.0-darwin-arm64 failed with error 404.
Read more >
Building Bazel and TensorFlow on AArch64 - AI and ML blog
In this blog, read the steps in order to build Bazel and TensorFlow on AArch64.
Read more >
What could be the alternative type of 'darwin-arm64' on bazel ...
The error you are seeing is because the .bazelversion file in the ... can download the required version directly using this command:\n (cd ......
Read more >
Installing / Updating Bazel using Bazelisk
It automatically downloads and installs the appropriate version of Bazel. Use Bazelisk if you need to switch between different versions of Bazel ...
Read more >
[SOLVED] error 404 in package downloads - Arch Linux Forums
i tried to install firefox, opera, pm-utils,polkit-gnome gvfs. while installation i am getting this errors as mentioned below and nothing got ...
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