Failure to build #11

Closed
opened 2025-07-25 23:08:09 +00:00 by jade · 2 comments
Owner

error: /var/empty/.gerritcodereview/bazel-cache/cas (Operation not permitted)

Repro: nix build .#gerrit.



 no actions running
    Fetching ...ui_npm; Processing node_modules: installing Bazel packages and\
 generating BUILD files 61s



INFO: Invocation ID: 6eb86191-5cb9-4d2d-95d4-774f83bfe953
ERROR: /var/empty/.gerritcodereview/bazel-cache/cas (Operation not permitted)
INFO: Reading 'startup' options from /nix/store/7ywkiqkv7x71ms5v3nij5xjy3kmxkhg8-bazel-rc: --server_javabase=/nix/store/jfxsvqhkxza9vrmpjw2nfxyz32883q1b-openjdk-headless-21.0.7+6
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=0
INFO: Reading rc options for 'build' from /nix/var/nix/builds/nix-build-oauth.jar-deps.drv-0/b/oauth-src/.bazelrc:
  Inherited 'common' options: --noenable_bzlmod --incompatible_enable_proto_toolchain_resolution
INFO: Reading rc options for 'build' from /nix/store/7ywkiqkv7x71ms5v3nij5xjy3kmxkhg8-bazel-rc:
  'build' options: --extra_toolchains=@bazel_tools//tools/jdk:all --tool_java_runtime_version=local_jdk --java_runtime_version=local_jdk
INFO: Reading rc options for 'build' from /nix/var/nix/builds/nix-build-oauth.jar-deps.drv-0/b/oauth-src/.bazelrc:
  'build' options: --workspace_status_command=python3 ./tools/workspace_status.py --repository_cache=~/.gerritcodereview/bazel-cache/repository --action_env=PATH --disk_cache=~/.gerritcodereview/bazel-cache/cas --java_language_version=21 --java_runtime_version=remotejdk_21 --tool_java_language_version=21 --tool_java_runtime_version=remotejdk_21 --incompatible_strict_action_env --announce_rc
INFO: Reading rc options for 'build' from /nix/store/bbqgv0qbd7jdyzn525gr149pfr4qf6p7-bazelrc:
  'build' options: --action_env=SSL_CERT_FILE --action_env=GERRIT_CACHE_HOME --tool_java_runtime_version=local_jdk --java_runtime_version=local_jdk --workspace_status_command=cat .version --javacopt=-XepDisableAllChecks
ERROR: Error initializing RemoteModule

error: `/var/empty/.gerritcodereview/bazel-cache/cas (Operation not permitted)` Repro: `nix build .#gerrit`. ```    no actions running Fetching ...ui_npm; Processing node_modules: installing Bazel packages and\ generating BUILD files 61s   INFO: Invocation ID: 6eb86191-5cb9-4d2d-95d4-774f83bfe953 ERROR: /var/empty/.gerritcodereview/bazel-cache/cas (Operation not permitted) INFO: Reading 'startup' options from /nix/store/7ywkiqkv7x71ms5v3nij5xjy3kmxkhg8-bazel-rc: --server_javabase=/nix/store/jfxsvqhkxza9vrmpjw2nfxyz32883q1b-openjdk-headless-21.0.7+6 INFO: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=0 INFO: Reading rc options for 'build' from /nix/var/nix/builds/nix-build-oauth.jar-deps.drv-0/b/oauth-src/.bazelrc: Inherited 'common' options: --noenable_bzlmod --incompatible_enable_proto_toolchain_resolution INFO: Reading rc options for 'build' from /nix/store/7ywkiqkv7x71ms5v3nij5xjy3kmxkhg8-bazel-rc: 'build' options: --extra_toolchains=@bazel_tools//tools/jdk:all --tool_java_runtime_version=local_jdk --java_runtime_version=local_jdk INFO: Reading rc options for 'build' from /nix/var/nix/builds/nix-build-oauth.jar-deps.drv-0/b/oauth-src/.bazelrc: 'build' options: --workspace_status_command=python3 ./tools/workspace_status.py --repository_cache=~/.gerritcodereview/bazel-cache/repository --action_env=PATH --disk_cache=~/.gerritcodereview/bazel-cache/cas --java_language_version=21 --java_runtime_version=remotejdk_21 --tool_java_language_version=21 --tool_java_runtime_version=remotejdk_21 --incompatible_strict_action_env --announce_rc INFO: Reading rc options for 'build' from /nix/store/bbqgv0qbd7jdyzn525gr149pfr4qf6p7-bazelrc: 'build' options: --action_env=SSL_CERT_FILE --action_env=GERRIT_CACHE_HOME --tool_java_runtime_version=local_jdk --java_runtime_version=local_jdk --workspace_status_command=cat .version --javacopt=-XepDisableAllChecks ERROR: Error initializing RemoteModule  ```
Author
Owner

cc @raito

cc @raito
Author
Owner

Okay it's not Lix's fault, I tried a 2.91.1 from ages ago, which exonerates any suspicion of recent changes.

Okay it's not Lix's fault, I tried a 2.91.1 from ages ago, which exonerates any suspicion of recent changes.
jade changed title from Failure to build (possibly caused by newer Lix versions doing something to the sandbox?) to Failure to build 2025-07-25 23:12:56 +00:00
jade self-assigned this 2025-07-25 23:22:25 +00:00
jade closed this issue 2025-07-26 00:21:52 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: the-distro/nix-gerrit#11
No description provided.