Docker build failed because of bazel build Timed out

67 views
Skip to first unread message

Viet Hoang Le

unread,
Nov 17, 2022, 7:37:11 PM11/17/22
to bazel-discuss
Hi,

I tried to run `bazel build` with Github Action and it seems my Docker build was failed because of Timed Out issue.
I tried to search for solution, but only PULLER_TIMEOUT environment for pulling container images.
May I have some help to know how to increase the Timeout in this case?
Below are the logs of my build.


```
ERROR: An error occurred during the fetch of repository 'opencti-platform-image':
Traceback (most recent call last):
File "/home/runner/.cache/bazel/_bazel_runner/d8466fb45ee98180472924375306ec29/external/io_bazel_rules_docker/contrib/dockerfile_build.bzl", line 83, column 13, in _impl
fail("docker build command failed: {} ({})".format(
Error in fail: docker build command failed: Timed out (/usr/bin/docker build --no-cache -f /home/runner/work/opencti/opencti/opencti/opencti-platform/Dockerfile -t opencti-platform-image:dockerfile_image /home/runner/work/opencti/opencti/opencti/opencti-platform)
ERROR: /home/runner/work/opencti/opencti/WORKSPACE:113:17: fetching dockerfile_image rule //external:opencti-platform-image: Traceback (most recent call last):
File "/home/runner/.cache/bazel/_bazel_runner/d8466fb45ee98180472924375306ec29/external/io_bazel_rules_docker/contrib/dockerfile_build.bzl", line 83, column 13, in _impl
fail("docker build command failed: {} ({})".format(
Error in fail: docker build command failed: Timed out (/usr/bin/docker build --no-cache -f /home/runner/work/opencti/opencti/opencti/opencti-platform/Dockerfile -t opencti-platform-image:dockerfile_image /home/runner/work/opencti/opencti/opencti/opencti-platform)
ERROR: /home/runner/work/opencti/opencti/opencti/BUILD.bazel:17:16: //opencti:opencti-platform-image depends on @opencti-platform-image//image:dockerfile_image.tar in repository @opencti-platform-image which failed to fetch. no such package '@opencti-platform-image//image': docker build command failed: Timed out (/usr/bin/docker build --no-cache -f /home/runner/work/opencti/opencti/opencti/opencti-platform/Dockerfile -t opencti-platform-image:dockerfile_image /home/runner/work/opencti/opencti/opencti/opencti-platform)
ERROR: Analysis of target '//opencti:all_prod_images' failed; build aborted:
INFO: Elapsed time: 623.601s
```
Reply all
Reply to author
Forward
Message has been deleted
0 new messages