buchgr / bazel-remote

A remote cache for Bazel
https://bazel.build
Apache License 2.0
607 stars 156 forks source link

Help -- Error: RemoteErrorResultStatus: rpc error: code = Unimplemented desc = unknown service build.bazel.remote.execution.v2.Execution #762

Closed jagadeshjai closed 4 months ago

jagadeshjai commented 4 months ago

I am trying to experiment with the bazel-remote by the docker image for the Chromium build I have, but I am encountering the following error while running a testing from this script.

Client Side:

Log from the script:

Starting reproxy
Proxy started successfully.
Remotely executing "echo hello > hello"
reclient[d5999f6c-7723-4de1-951d-269ff47f8d91]: RemoteErrorResultStatus: rpc error: code = Unimplemented desc = unknown service build.bazel.remote.execution.v2.Execution
Shutting down reproxy

Environment variables:

export RBE_service=<server_ip>:9092
export RBE_service_no_auth=true
export RBE_service_no_security=true
export RBE_automatic_auth=false

Server Side:

Initial Run:

sudo docker run -u root:root -v /<actual_path>/bazel_cache:/data -p 9000:8080 -p 9092:9092 buchgr/bazel-remote-cache --max_size 5

2024/07/02 08:44:05 bazel-remote built with go1.22.4 X:nocoverageredesign from git commit fea980bd8f528ccfc38919fb709e9e47d27a1622.
2024/07/02 08:44:05 Initial RLIMIT_NOFILE cur: 1048576 max: 1048576
2024/07/02 08:44:05 Setting RLIMIT_NOFILE cur: 1048576 max: 1048576
2024/07/02 08:44:05 Storage mode: zstd
2024/07/02 08:44:05 Zstandard implementation: go
2024/07/02 08:44:05 Limiting concurrent file removals to 5000
2024/07/02 08:44:05 Loading existing files in /data.
2024/07/02 08:44:05 Scanning cache directory with 16 goroutines
2024/07/02 08:44:05 Sorting cache files by atime.
2024/07/02 08:44:05 Building LRU index.
2024/07/02 08:44:05 Finished loading disk cache files.
2024/07/02 08:44:05 Authentication: disabled
2024/07/02 08:44:05 Mangling non-empty instance names with AC keys: disabled
2024/07/02 08:44:05 Starting HTTP server for profiling on address :6060
2024/07/02 08:44:05 gRPC AC dependency checks: enabled
2024/07/02 08:44:05 experimental gRPC remote asset API: disabled
2024/07/02 08:44:05 Loaded 18936 existing disk cache items.
2024/07/02 08:44:05 Endpoint metrics: disabled
2024/07/02 08:44:05 Starting gRPC server on address :9092
2024/07/02 08:44:05 HTTP AC validation: enabled
2024/07/02 08:44:05 Starting HTTP server on address :8080

Additional log after running the script from client side:

2024/07/02 08:44:17 GRPC GETCAPABILITIES
2024/07/02 08:44:18 GRPC AC GET 09bf7508951280e7da01e525505ccbade8b0e053928ea08b7f7434f7057a3b77 NOT FOUND
2024/07/02 08:44:18 GRPC CAS HEAD e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 OK
2024/07/02 08:44:18 GRPC CAS HEAD 5f38ec3d10f8ae2c4856af2d1130d10572fdc5a7ff4fe65a75567c3aaef01450 OK
2024/07/02 08:44:18 GRPC CAS HEAD 09bf7508951280e7da01e525505ccbade8b0e053928ea08b7f7434f7057a3b77 OK
mostynb commented 4 months ago

Hi, bazel-remote only supports the REAPIv2 cache services, it does not support remote execution (it can be used with other remote execution services though).

I suggest that you take a look at buildbarn and/or buildfarm if you want to try remote execution.

jagadeshjai commented 4 months ago

Hi, bazel-remote only supports the REAPIv2 cache services, it does not support remote execution (it can be used with other remove execution services though).

I suggest that you take a look at buildbarn and/or buildfarm if you want to try remote execution.

Oh, Okay! Thanks for your response @mostynb :heart: