Skip to content

[Bazel CI] Failure: Error loading image: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock #701

Description

@deepalak56

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5586#019f2103-0622-4be9-8391-b5cd951d74c0

Platform: Ubuntu

Logs:

(04:08:24) FAIL: //:container_test (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test_attempts/attempt_1.log)
--
  | (04:08:24) FAIL: //:container_test (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test_attempts/attempt_2.log)
  | (04:08:24) FAIL: //:container_test (Exit 1) (see /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test.log)
  |  
  | FAILED: //:container_test (Summary)
  | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test.log
  | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test_attempts/attempt_1.log
  | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test_attempts/attempt_2.log
  | (04:08:24) INFO: Found 2 test targets...
  | (04:08:24) INFO: Elapsed time: 0.933s, Critical Path: 0.72s
  | (04:08:24) INFO: 3 processes: 2 remote cache hit, 1 internal, 5 linux-sandbox.
  | (04:08:24) INFO: Build completed, 1 test FAILED, 3 total actions
  | //:tests                                                                 PASSED in 0.2s
  | //:container_test                                                        FAILED in 3 out of 3 in 0.2s
  | Stats over 3 runs: max = 0.2s, min = 0.1s, avg = 0.1s, dev = 0.0s
  | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test.log
  | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test_attempts/attempt_1.log
  | /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/682bc16f1e845beeb2c92cf4e0d94eae/execroot/_main/bazel-out/k8-fastbuild/testlogs/container_test/test_attempts/attempt_2.log
  |  
  | Executed 2 out of 2 tests: 1 test passes and 1 fails locally.
  | (04:08:24) INFO: Streaming build results to: https://btx.cloud.google.com/invocations/34b0cd8a-7d99-4708-9cb4-b60fdf385dae
  | bazel info output_base
  | buildkite-agent artifact upload --content-type text/plain;charset=utf-8 container_test/test_attempts/attempt_1.log
  | WARNING: Option 'enable_bzlmod' is deprecated

Culprit:

Steps:

git clone -v https://github.com/bazelbuild/examples.git
git reset dbf3399 --hard
export USE_BAZEL_VERSION=a45dcf345eca057ddd0248ae21fcccefa8db08ca
bazel build --build_event_json_file=/tmp/tmprsbi1kkn/build_bep.json ...

CC Greenteam @fweikert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions