Skip to content

Instantly share code, notes, and snippets.

@aaron-prindle
Created November 8, 2017 00:50
Show Gist options
  • Save aaron-prindle/7afc35a301507f6ddc0b9c7a5452141c to your computer and use it in GitHub Desktop.
Save aaron-prindle/7afc35a301507f6ddc0b9c7a5452141c to your computer and use it in GitHub Desktop.
aprindle@aprindle:~/runtimes-common/src/github.com/GoogleCloudPlatform/runtimes-common$ gcloud container builds submit --config f
tl/ftl_python_integration_tests.yaml . --project=ftl-node-test
Creating temporary tarball archive of 2092 file(s) totalling 1.0 GiB before compression.
Uploading tarball of [.] to [gs://ftl-node-test_cloudbuild/source/1510100802.54-3d47916e42ea44bab25b2f4de0c3cfd6.tgz]
Created [https://cloudbuild.googleapis.com/v1/projects/ftl-node-test/builds/cb3455a5-cf96-4b57-998a-64c8c37c1c7d].
Logs are available at [https://console.cloud.google.com/gcr/builds/cb3455a5-cf96-4b57-998a-64c8c37c1c7d?project=ftl-node-test].
------------------------------------------------------ REMOTE BUILD OUTPUT ------------------------------------------------------
starting build "cb3455a5-cf96-4b57-998a-64c8c37c1c7d"
FETCHSOURCE
Fetching storage object: gs://ftl-node-test_cloudbuild/source/1510100802.54-3d47916e42ea44bab25b2f4de0c3cfd6.tgz#1510100983552810
Copying gs://ftl-node-test_cloudbuild/source/1510100802.54-3d47916e42ea44bab25b2f4de0c3cfd6.tgz#1510100983552810...
| [1 files][962.9 MiB/962.9 MiB] 88.9 MiB/s
Operation completed over 1 objects/962.9 MiB.
BUILD
Step #0: Already have image (with digest): gcr.io/cloud-builders/bazel
Starting Step #0
Step #0: Extracting Bazel installation...
Step #0: ........................
Step #0: Loading:
Step #0: Loading: 0 packages loaded
Step #0: Loading: 0 packages loaded
Step #0: Loading: 0 packages loaded
Step #0: Loading: 0 packages loaded
Step #0: Analyzing: target //ftl:python_builder_image (1 packages loaded)
Step #0: Analyzing: target //ftl:python_builder_image (5 packages loaded)
Step #0: Analyzing: target //ftl:python_builder_image (5 packages loaded)
Step #0: Analyzing: target //ftl:python_builder_image (9 packages loaded)
Step #0: Analyzing: target //ftl:python_builder_image (19 packages loaded)
Step #0: Analyzing: target //ftl:python_builder_image (23 packages loaded)
Step #0: INFO: Analysed target //ftl:python_builder_image (27 packages loaded).
Step #0: INFO: Found 1 target...
Step #0: WARNING: failed to create one or more convenience symlinks for prefix 'bazel-':
Step #0: cannot create symbolic link bazel-out -> /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execr
oot/__main__/bazel-out: /workspace/bazel-out (File exists)
Step #0: cannot create symbolic link bazel-out -> /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execr
oot/__main__/bazel-out: /workspace/bazel-out (File exists)
Step #0: cannot create symbolic link bazel-bin -> /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execr
oot/__main__/bazel-out/local-fastbuild/bin: /workspace/bazel-bin (File exists)
Step #0: cannot create symbolic link bazel-testlogs -> /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/
execroot/__main__/bazel-out/local-fastbuild/testlogs: /workspace/bazel-testlogs (File exists)
Step #0: cannot create symbolic link bazel-genfiles -> /builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/
execroot/__main__/bazel-out/local-fastbuild/genfiles: /workspace/bazel-genfiles (File exists)
Step #0: [0 / 1] BazelWorkspaceStatusAction stable-status.txt
Step #0: [8 / 12] GUNZIP external/python_base/image/000.tar.gz.nogz; 1s linux-sandbox
Step #0: [13 / 22] GUNZIP external/python_base/image/007.tar.gz.nogz; 1s linux-sandbox
Step #0: [14 / 22] SHA256 external/python_base/image/007.tar.gz.nogz.sha256; 0s linux-sandbox
Step #0: [15 / 23] GUNZIP external/python_base/image/005.tar.gz.nogz; 1s linux-sandbox
Step #0: [15 / 23] GUNZIP external/python_base/image/005.tar.gz.nogz; 4s linux-sandbox
Step #0: [15 / 23] GUNZIP external/python_base/image/005.tar.gz.nogz; 9s linux-sandbox
Step #0: [16 / 23] SHA256 external/python_base/image/005.tar.gz.nogz.sha256
Step #0: ERROR: /workspace/ftl/BUILD:183:1: ImageLayer ftl/python_builder_image-layer.tar failed (Exit 1)
Step #0: Traceback (most recent call last):
Step #0: File "/builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/bazel-sandbox/7122158790315582750/execro
ot/__main__/bazel-out/host/bin/external/io_bazel_rules_docker/container/build_tar.runfiles/__main__/../io_bazel_rules_docker/cont
ainer/build_tar.py", line 274, in <module>
Step #0: main(FLAGS(sys.argv))
Step #0: File "/builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/bazel-sandbox/7122158790315582750/execro
ot/__main__/bazel-out/host/bin/external/io_bazel_rules_docker/container/build_tar.runfiles/__main__/../io_bazel_rules_docker/cont
ainer/build_tar.py", line 261, in main
Step #0: output.add_file(inf, tof, mode, ids, names)
Step #0: File "/builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/bazel-sandbox/7122158790315582750/execro
ot/__main__/bazel-out/host/bin/external/io_bazel_rules_docker/container/build_tar.runfiles/__main__/../io_bazel_rules_docker/cont
ainer/build_tar.py", line 124, in add_file
Step #0: gname=names[1])
Step #0: File "/builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/bazel-sandbox/7122158790315582750/execro
ot/__main__/bazel-out/host/bin/external/io_bazel_rules_docker/container/build_tar.runfiles/bazel_tools/tools/build_defs/pkg/archi
ve.py", line 279, in add_file
Step #0: with open(file_content, 'rb') as f:
Step #0: IOError: [Errno 13] Permission denied: 'ftl/python/__init__.py'
Step #0: Target //ftl:python_builder_image failed to build
Step #0: Use --verbose_failures to see the command lines of failed build steps.
Step #0: INFO: Elapsed time: 44.141s, Critical Path: 16.54s
Step #0: FAILED: Build did NOT complete successfully
Step #0: ERROR: Build failed. Not running target
Finished Step #0
ERROR
ERROR: build step "gcr.io/cloud-builders/bazel@sha256:fc5e66d43da78589ff8213557dd55eb8d5c553b40dddc706f172e5c6af7855ef" failed: e
xit status 1
---------------------------------------------------------------------------------------------------------------------------------
ERROR: (gcloud.container.builds.submit) build cb3455a5-cf96-4b57-998a-64c8c37c1c7d completed with status "FAILURE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment