Bazel remote execution

Running bazel build with --remote_execution returns error failed to compile capnp files


I am using buildfarm project for my remote executor

ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/segmentation_prediction.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/segmentation_prediction.capnp:12:14-28: error: Import failed: tensor.capnp
external/com_nvidia_isaac_sdk/messages/segmentation_prediction.capnp:21:18-29: error: Not defined: TensorProto
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/tensor.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/tensor.capnp:12:14-34: error: Import failed: element_type.capnp
external/com_nvidia_isaac_sdk/messages/tensor.capnp:17:19-30: error: Not defined: ElementType
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/geometry.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/geometry.capnp:13:14-26: error: Import failed: math.capnp
external/com_nvidia_isaac_sdk/messages/geometry.capnp:17:15-28: error: Not defined: Vector3dProto
external/com_nvidia_isaac_sdk/messages/geometry.capnp:24:12-25: error: Not defined: Vector3dProto
external/com_nvidia_isaac_sdk/messages/geometry.capnp:26:12-25: error: Not defined: Vector3dProto
external/com_nvidia_isaac_sdk/messages/geometry.capnp:12:14-26: error: Import failed: math.capnp
external/com_nvidia_isaac_sdk/messages/geometry.capnp:32:12-25: error: Not defined: Vector2dProto
external/com_nvidia_isaac_sdk/messages/geometry.capnp:34:12-25: error: Not defined: Vector2dProto
external/com_nvidia_isaac_sdk/messages/geometry.capnp:45:17-30: error: Not defined: Vector2dProto
external/com_nvidia_isaac_sdk/messages/geometry.capnp:45:12-16: error: 'List' requires exactly one parameter.
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/differential_base.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:12:14-26: error: Import failed: math.capnp
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:18:18-29: error: Not defined: Pose2dProto
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:13:14-26: error: Import failed: math.capnp
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:19:13-26: error: Not defined: Vector2dProto
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:21:20-33: error: Not defined: Vector2dProto
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:30:18-29: error: Not defined: Pose2dProto
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:30:13-17: error: 'List' requires exactly one parameter.
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:38:12-23: error: Not defined: Pose2dProto
external/com_nvidia_isaac_sdk/messages/differential_base.capnp:51:18-29: error: Not defined: Pose2dProto
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/marker_list.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/marker_list.capnp:12:14-26: error: Import failed: math.capnp
external/com_nvidia_isaac_sdk/messages/marker_list.capnp:27:22-35: error: Not defined: Vector3dProto
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/pose_tree.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/pose_tree.capnp:12:14-26: error: Import failed: math.capnp
external/com_nvidia_isaac_sdk/messages/pose_tree.capnp:31:21-32: error: Not defined: Pose3dProto
external/com_nvidia_isaac_sdk/messages/pose_tree.capnp:33:20-31: error: Not defined: Pose3dProto
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/parking.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/parking.capnp:12:14-30: error: Import failed: geometry.capnp
external/com_nvidia_isaac_sdk/messages/parking.capnp:19:11-26: error: Not defined: Polyline2dProto
ERROR: /home/inmind/.cache/bazel/_bazel_inmind/662f71751ea13b9e707ef188c3fd0188/external/com_nvidia_isaac_sdk/messages/BUILD:21:1: Couldn't build file external/com_nvidia_isaac_sdk/messages/mission.capnp.c++: Compiling cap'n'proto... failed (Exit 1)
external/com_nvidia_isaac_sdk/messages/mission.capnp:12:14-26: error: Import failed: uuid.capnp
external/com_nvidia_isaac_sdk/messages/mission.capnp:21:12-21: error: Not defined: UuidProto
external/com_nvidia_isaac_sdk/messages/mission.capnp:13:14-26: error: Import failed: json.capnp
external/com_nvidia_isaac_sdk/messages/mission.capnp:23:15-24: error: Not defined: JsonProto
external/com_nvidia_isaac_sdk/messages/mission.capnp:32:12-21: error: Not defined: UuidProto

Do things build properly with Bazel locally? Which version of Bazel are you using? We do not test ourselves with Bazel remote execution yet, so any issues you find would be great to know more about and to report to the Bazel community as well of course.

Yes building stuff locally works,when I switch to remote exec I get these error message.Using remote_local_fallback seems to help with this issue as I’lI can reach a working state after running the build after the second build.However after compiling multiple times I get these errors back.
My bazel version is 3.10.0