-
Notifications
You must be signed in to change notification settings - Fork 159
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
Remote Downloader: No retry after receiving a CacheNotFoundException #377
Comments
Thanks for the bug report- could you please share the function/rule (not sure of the terminology here) for this item in your WORKSPACE file? Is it a It's strange that bazel doesn't attempt to download this resource itself after getting a cache miss- I suspect that is something that should be fixed on the bazel side. |
FYI, I was having this problem a ton but then I upgraded to a version manually built after #318 and it has not yet recurred. |
(It would be nice if the docker containers were pushed) |
The bazel log mentions
If I add that to my WORKSAPCE, then run bazel-remote (from the tip of the master branch) like so: And build a bazel project with Then I can see the following in the bazel-remote logs:
Which seems to be working as expected. |
For me it was nondeterministic and seemed to depend on how many concurrent bazel workers there were. Worked most of the time, so I would expect a simple test to not have any issues. |
@dhalperi: that definitely sounds like something #323 would have fixed. I forgot that I hadn't made a new release since that landed. Tagged the tip of master as v1.3.0, and I will try to get the image on dockerhub updated (it might take a few days). You can track the progress in #378. |
@mmikitka: could you try the v1.3.0 release (you may need to build it locally) and report back if this is still a problem? |
The dockerhub image has been updated. I'm not sure how frequently you were seeing this problem, but let's wait a week or so before closing this issue. |
I've had no issues (for almost 3 weeks) along these lines after upgrading |
Thanks for following up. |
Note: I originally submitted this ticket to
bazelbuild/bazel
and was told to redirect it here. See bazelbuild/bazel#12417 for details.Description of the problem / feature request:
Using
--experimental_remote_downloader
with a https://github.com/buchgr/bazel-remote remote cache, the build failed with the following error, upon encountering a CacheNotFoundException.I expected Bazel to fallback to fetching the artifact in the event of a cache miss.
Feature requests: what underlying problem are you trying to solve with this feature?
More reliable builds.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Unsure.
What operating system are you running Bazel on?
Linux Ubuntu 18.04
What's the output of bazel info release?
release 3.4.1
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 ?
N/A
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
Here are all the remote-related configs:
The text was updated successfully, but these errors were encountered: