Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bazel] current user is root error with container image based execution #1536

Open
prabhu opened this issue Jan 7, 2025 · 0 comments
Open

Comments

@prabhu
Copy link
Collaborator

prabhu commented Jan 7, 2025

If the definition of 'repository @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'rules_python~~python~python_3_11_x86_64-unknown-linux-gnu':
   Traceback (most recent call last):
        File "/root/.cache/bazel/_bazel_root/8c069df52082beee3c95ca17836fb8e2/external/rules_python~/python/repositories.bzl", line 200, column 25, in _python_repository_impl
                fail("The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.")
Error in fail: The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.
ERROR: no such package '@@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//': The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.
ERROR: /root/.cache/bazel/_bazel_root/8c069df52082beee3c95ca17836fb8e2/external/bazel_tools/tools/jdk/BUILD:133:10: @@bazel_tools//tools/jdk:proguard_whitelister depends on @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//:python_runtimes in repository @@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu which failed to fetch. no such package '@@rules_python~~python~python_3_11_x86_64-unknown-linux-gnu//': The current user is root, please run as non-root when using the hermetic Python interpreter. See https://github.com/bazelbuild/rules_python/pull/713.
Use --verbose_failures to see the command lines of failed build steps.
ERROR: Analysis of target '//deploy:jazzer_standalone_version_test' failed; build aborted: Analysis failed
INFO: Elapsed time: 3.760s, Critical Path: 0.06s
INFO: 38 processes: 38 internal.
ERROR: Build did NOT complete successfully
FAILED:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant