Common Upload Issues
The Build Event Protocol upload timed out
The Build Event Protocol upload timed out
This error means the
bes_timeout flag is likely set to a value that’s not long enough for bazel to finish uploading all build artifacts.Solution
We recommend using the following flag to increase this upload timeout:These slow uploads should only happen once when artifacts are initially written to the cache, and shouldn’t happen on subsequent builds.
Waiting for build events upload
Waiting for build events upload
If your build has finished but you’re frequently sitting around waiting for build events to upload - you’re likely in a network constrained environment trying to upload large build artifacts like docker images or large binaries.
Solution for Network Constrained Environments
We recommend running with the flag:This will upload build, test, and profiling logs - but not the larger build artifacts that can take much longer to upload.
Quick Reference
Increase Timeout
Use
--bes_timeout=600s to allow more time for uploadsSkip Large Artifacts
Use
--noremote_upload_local_results to skip uploading large build artifacts