You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing the parameter BAZEL_REMOTE_ENABLE_AC_KEY_INSTANCE_MANGLING as true when using Kubernets and passing the BAZEL_REMOTE_DIR env witha value like /cacheDir the service is pointing always to /data instead.
I've noted the comments on the README about mangling but did not understand exactly what is the impact on this. Should I have passes cacheDir instead? (whithout the /)
Disabling mangling solves the problem.
The text was updated successfully, but these errors were encountered:
This is unexpected. When the enable_ac_key_instance_mangling feature is enabled, bazel-remote is supposed to take the action cache hash and hash that along with the instance string, to give a new internal action cache lookup key, so different instances effectively have separate action caches. It should not change the data dir at all.
The docker container uses the path /data internally, when running with the docker runtime you're supposed to map a host directory to /data inside the container. I wonder if there's a kubernetes misconfiguration happening here...
Are you able to reproduce this issue without kubernetes? (That would be a lot easier for me to debug.)
Something to double check with kubernetes deployments- if it is named bazel-remote or something similar, then some environment variables will be set that can conflict with your configuration. This has tripped up a several people before.
When passing the parameter
BAZEL_REMOTE_ENABLE_AC_KEY_INSTANCE_MANGLING
astrue
when using Kubernets and passing theBAZEL_REMOTE_DIR
env witha value like/cacheDir
the service is pointing always to/data
instead.I've noted the comments on the README about mangling but did not understand exactly what is the impact on this. Should I have passes
cacheDir
instead? (whithout the/
)Disabling mangling solves the problem.
The text was updated successfully, but these errors were encountered: