Skip to content

[Bug]: CI build canceled, seeming problem in TestCLIBuildBase. #1250

Open

Description

@jglogan

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

This happens intermittently in CI. The TestCLIRunInitImage suite runs to completion, and then no additional output appears in the logs (see below), and eventually the action is canceled at 1 hour.

All that's needed to reproduce is to run a PRB, merge, or release build on GH.

Current behavior

The TestCLIRunInitImage suite starts at 2026-02-22 20:20:18.512 and appears to run until 2026-02-22T20:20:21.562Z based on a log search:

% cat ~/Downloads/logs/* | sort | grep initimage | tail -5
2026-02-22T20:20:21.561Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "acquirer": handleContainerExit(id:code:)]: releasing lock
2026-02-22T20:20:21.562Z [debug] com.apple.container APIServer ["acquirer": handleContainerExit(id:code:), "id": testrunwithexplicitdefaultinitimage]: holding lock
2026-02-22T20:20:21.562Z [debug] com.apple.container APIServer ["acquirer": handleContainerExit(id:code:), "id": testrunwithexplicitdefaultinitimage]: releasing lock
2026-02-22T20:20:21.562Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "func": stop(id:options:)]: ContainersService: exit
2026-02-22T20:20:21.562Z [info] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "rc": ExitStatus(exitCode: 137, exitedAt: 2026-02-22 20:20:21 +0000)]: handling container exit

The tests after TestCLIRunInitImage are TestCLIBuildBase. These tests appear to run until the last captured logs at 2026-02-22T20:22:47.300Z:

% cat ~/Downloads/logs/* | sort | tail -10                
2026-02-22T20:22:47.281Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "acquirer": startProcess(id:processID:)]: acquiring lock
2026-02-22T20:22:47.281Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "acquirer": startProcess(id:processID:)]: holding lock
2026-02-22T20:22:47.281Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "func": wait(id:processID:)]: ContainersService: enter
2026-02-22T20:22:47.281Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": wait(_:)]: enter
2026-02-22T20:22:47.282Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": startProcess(_:)]: enter
2026-02-22T20:22:47.298Z [debug] com.apple.container RuntimeLinuxHelper ["func": startProcess(_:), "uuid": buildkit]: exit
2026-02-22T20:22:47.298Z [error] com.apple.container RuntimeLinuxHelper ["error": internalError: "failed to start process" (cause: "internal error (13): startProcess: failed to start process: internalError: "vmexec error: internalError: "read ack pipe"""), "route": com.apple.container.sandbox/start, "uuid": buildkit]: route handler threw an error
2026-02-22T20:22:47.299Z [debug] com.apple.container APIServer ["func": startProcess(id:processID:), "id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8]: ContainersService: exit
2026-02-22T20:22:47.299Z [debug] com.apple.container APIServer ["id": buildkit, "processId": 40a77656-d4d4-42ab-aae7-90db60d118c8, "acquirer": startProcess(id:processID:)]: releasing lock
2026-02-22T20:22:47.300Z [error] com.apple.container APIServer ["error": internalError: "failed to start process 40a77656-d4d4-42ab-aae7-90db60d118c8 in container buildkit" (cause: "internalError: "failed to start process (cause: "internal error (13): startProcess: failed to start process: internalError: "vmexec error: internalError: "read ack pipe""")""), "route": containerStartProcess]: route handler threw an error

Expected behavior

Tests should not hang.

Environment

- OS: 26.2
- Xcode: Apple Swift version 6.2.3 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
- Container: main

Relevant log output

see above

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Feb 23, 2026
  2. added a commit that references this issue on Feb 24, 2026
  3. jglogan commented on Mar 3, 2026

    @jglogan
    ContributorAuthor

    Merged logs, now that we're collecting CI commands:

    2026-03-03T09:17:27.767Z [info] com.apple.container NetworkVmnetHelper ["id": default, "hostname": testrunwithexplicitdefaultinitimage]: released attachments
    2026-03-03T09:17:27.768Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "func": _cleanUp(id:)]: ContainersService: enter
    2026-03-03T09:17:27.868Z [debug] com.apple.container APIServer ["acquirer": handleContainerExit(id:code:), "id": testrunwithexplicitdefaultinitimage]: holding lock
    2026-03-03T09:17:27.868Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "acquirer": handleContainerExit(id:code:)]: releasing lock
    2026-03-03T09:17:27.868Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "func": _cleanUp(id:)]: ContainersService: exit
    2026-03-03T09:17:27.868Z [debug] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "func": stop(id:options:)]: ContainersService: exit
    2026-03-03T09:17:27.869Z [debug] com.apple.container APIServer ["acquirer": handleContainerExit(id:code:), "id": testrunwithexplicitdefaultinitimage]: releasing lock
    2026-03-03T09:17:27.869Z [info] com.apple.container APIServer ["id": testrunwithexplicitdefaultinitimage, "rc": ExitStatus(exitCode: 137, exitedAt: 2026-03-03 09:17:27 +0000)]: handling container exit
    2026-03-03T09:17:27.873Z [info] com.apple.container.test clitests ["status": 0, "stderr": "Warning! Running debug build. Performance may be degraded.\n", "stdout": "testrunwithexplicitdefaultinitimage\n", "seq": 7, "testID": testRunWithExplicitDefaultInitImage, "suite": TestCLIRunInitImage]: command end
    2026-03-03T09:18:08.671Z [error] com.apple.container ImagesHelper ["error": HTTPClientError.invalidProxyResponse, "route": imagePull]: route handler threw an error
    2026-03-03T09:18:08.671Z [error] com.apple.container ImagesHelper ["route": imagePull, "error": HTTPClientError.invalidProxyResponse]: route handler threw an error
    2026-03-03T09:18:08.697Z [info] com.apple.container.test clitests ["seq": 3, "stdout": "", "status": 1, "stderr": "Warning! Running debug build. Performance may be degraded.\nError", "suite": TestCLIRunInitImage, "testID": testCreateWithNonExistentInitImage]: command end
    2026-03-03T09:18:08.697Z [info] com.apple.container.test clitests ["stdout": "", "status": 1, "stderr": "Warning! Running debug build. Performance may be degraded.\nError", "testID": testRunWithNonExistentInitImage, "seq": 1, "suite": TestCLIRunInitImage]: command end
    2026-03-03T09:18:08.698Z [info] com.apple.container.test clitests ["seq": 8, "args": delete --force testrunwithnonexistentinitimage, "testID": testRunWithNonExistentInitImage, "suite": TestCLIRunInitImage]: command start
    2026-03-03T09:18:08.698Z [info] com.apple.container.test clitests ["testID": testCreateWithNonExistentInitImage, "seq": 9, "suite": TestCLIRunInitImage, "args": delete --force testcreatewithnonexistentinitimage]: command start
    2026-03-03T09:18:08.768Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: enter
    2026-03-03T09:18:08.768Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: enter
    2026-03-03T09:18:08.768Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: exit
    2026-03-03T09:18:08.769Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: exit
    2026-03-03T09:18:08.770Z [info] com.apple.container.test clitests ["stdout": "", "testID": testCreateWithNonExistentInitImage, "status": 1, "stderr": "Warning! Running debug build. Performance may be degraded.\nError", "seq": 9, "suite": TestCLIRunInitImage]: command end
    2026-03-03T09:18:08.771Z [info] com.apple.container.test clitests ["stdout": "", "testID": testRunWithNonExistentInitImage, "status": 1, "stderr": "Warning! Running debug build. Performance may be degraded.\nError", "seq": 8, "suite": TestCLIRunInitImage]: command end
    2026-03-03T09:18:09.790Z [info] com.apple.container.test clitests ["testID": testBuildEnvironmentOnlyImageFromScratch, "seq": 0, "args": builder delete --force, "suite": CLIBuilderEnvOnlyTest]: command start
    2026-03-03T09:18:09.823Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: enter
    2026-03-03T09:18:09.824Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: exit
    2026-03-03T09:18:09.893Z [info] com.apple.container.test clitests ["suite": CLIBuilderEnvOnlyTest, "seq": 0, "stderr": "Warning! Running debug build. Performance may be degraded.\n", "status": 0, "stdout": "", "testID": testBuildEnvironmentOnlyImageFromScratch]: command end
    2026-03-03T09:18:09.893Z [info] com.apple.container.test clitests ["suite": CLIBuilderEnvOnlyTest, "seq": 1, "testID": testBuildEnvironmentOnlyImageFromScratch, "args": builder start -c 2 -m 2GB]: command start
    2026-03-03T09:18:09.941Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: enter
    2026-03-03T09:18:09.941Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: exit
    2026-03-03T09:18:12.879Z [error] com.apple.container ImagesHelper ["error": notFound: "image snapshot for ghcr.io/apple/container-builder-shim/builder:0.8.0 with platform linux/arm64/v8", "route": snapshotGet]: route handler threw an error
    2026-03-03T09:18:21.837Z [debug] com.apple.container APIServer ["func": list()]: NetworksService: enter
    2026-03-03T09:18:21.838Z [debug] com.apple.container APIServer ["func": list()]: NetworksService: exit
    2026-03-03T09:18:21.848Z [debug] com.apple.container APIServer ["platform": SystemPlatform(os: Containerization.SystemPlatform.OS.linux, architecture: Containerization.SystemPlatform.Architecture.arm64), "func": getDefaultKernel(platform:)]: KernelService: enter
    2026-03-03T09:18:21.849Z [debug] com.apple.container APIServer ["platform": SystemPlatform(os: Containerization.SystemPlatform.OS.linux, architecture: Containerization.SystemPlatform.Architecture.arm64), "func": getDefaultKernel(platform:)]: KernelService: exit
    2026-03-03T09:18:21.858Z [debug] com.apple.container APIServer ["id": buildkit, "func": create(configuration:kernel:options:initImage:)]: ContainersService: enter
    2026-03-03T09:18:21.859Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": create(configuration:kernel:options:initImage:)]: acquiring lock
    2026-03-03T09:18:21.860Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": create(configuration:kernel:options:initImage:)]: holding lock
    2026-03-03T09:18:21.861Z [debug] com.apple.container APIServer ["id": buildkit]: ContainersService: get init block
    2026-03-03T09:18:21.875Z [debug] com.apple.container APIServer ["id": buildkit, "ref": ghcr.io/apple/container-builder-shim/builder:0.8.0]: create snapshot
    2026-03-03T09:18:21.879Z [debug] com.apple.container APIServer ["id": buildkit, "initfs": ghcr.io/apple/containerization/vminit:0.26.5, "kernel": file:///Users/runner/actions-runner/_work/_temp/tmp.vcHezDiCwa/kernels/vmlinux-6.18.5-177]: configure runtime
    2026-03-03T09:18:21.883Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": create(configuration:kernel:options:initImage:)]: releasing lock
    2026-03-03T09:18:21.884Z [debug] com.apple.container APIServer ["id": buildkit, "func": create(configuration:kernel:options:initImage:)]: ContainersService: exit
    2026-03-03T09:18:21.886Z [debug] com.apple.container APIServer ["id": buildkit, "func": bootstrap(id:stdio:)]: ContainersService: enter
    2026-03-03T09:18:21.887Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": bootstrap(id:stdio:)]: acquiring lock
    2026-03-03T09:18:21.888Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": bootstrap(id:stdio:)]: holding lock
    2026-03-03T09:18:21.891Z [debug] com.apple.container NetworkVmnetHelper ["func": allocate(_:), "id": default]: enter
    2026-03-03T09:18:21.892Z [info] com.apple.container NetworkVmnetHelper ["macAddress": fa:11:d3:fa:f5:c1, "id": default, "ipv6Address": fd28:5290:68ca:20bf:f811:d3ff:fefa:f5c1/64, "hostname": buildkit, "ipv4Gateway": 192.168.64.1, "ipv4Address": 192.168.64.66/24]: allocated attachment
    2026-03-03T09:18:21.893Z [debug] com.apple.container NetworkVmnetHelper ["func": allocate(_:), "id": default]: exit
    2026-03-03T09:18:21.895Z [info] com.apple.container APIServer ["id": com.apple.container.container-runtime-linux.buildkit]: Registering plugin
    2026-03-03T09:18:22.007Z [info] com.apple.container RuntimeLinuxHelper ["name": container-runtime-linux, "uuid": buildkit]: starting helper
    2026-03-03T09:18:22.009Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": createEndpoint(_:)]: enter
    2026-03-03T09:18:22.009Z [info] com.apple.container RuntimeLinuxHelper ["uuid": buildkit]: configuring XPC server
    2026-03-03T09:18:22.009Z [info] com.apple.container RuntimeLinuxHelper ["uuid": buildkit]: starting XPC server
    2026-03-03T09:18:22.010Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": createEndpoint(_:)]: exit
    2026-03-03T09:18:22.011Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": bootstrap(_:)]: enter
    2026-03-03T09:18:22.024Z [info] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "configPath": file:///Users/runner/actions-runner/_work/_temp/tmp.vcHezDiCwa/containers/buildkit]: created bundle
    2026-03-03T09:18:22.025Z [info] com.apple.container RuntimeLinuxHelper ["uuid": buildkit]: creating NATNetworkInterface with network reference
    2026-03-03T09:18:22.425Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit]: setting up interface eth0 with address 192.168.64.66/24
    2026-03-03T09:18:22+0000 info vminitd : [vminitd] mounting /run
    2026-03-03T09:18:22+0000 info vminitd : [vminitd] mounting /sys
    2026-03-03T09:18:22+0000 info vminitd : [vminitd] mounting /sys/fs/cgroup
    2026-03-03T09:18:22+0000 info vminitd : [vminitd] serving vminitd API
    2026-03-03T09:18:22+0000 info vminitd : [vminitd] vminitd booting
    2026-03-03T09:18:22+0000 info vminitd : events_path=/sys/fs/cgroup/vminitd/memory.events threshold_bytes=78643200 [vminitd] Started memory monitoring
    2026-03-03T09:18:22+0000 info vminitd : mountpoint=/sys/fs/cgroup path=/sys/fs/cgroup/vminitd [Cgroup] creating cgroup manager
    2026-03-03T09:18:22+0000 info vminitd : port=1024 [vminitd] booting gRPC server on vsock
    2026-03-03T09:18:22+0000 info vminitd : port=1024 [vminitd] gRPC API serving on vsock
    2026-03-03T09:18:24.623Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": bootstrap(_:)]: exit
    2026-03-03T09:18:24.625Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": bootstrap(id:stdio:)]: releasing lock
    2026-03-03T09:18:24.626Z [debug] com.apple.container APIServer ["id": buildkit, "func": bootstrap(id:stdio:)]: ContainersService: exit
    2026-03-03T09:18:24.627Z [debug] com.apple.container APIServer ["id": buildkit, "processId": buildkit, "func": startProcess(id:processID:)]: ContainersService: enter
    2026-03-03T09:18:24.628Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": startProcess(id:processID:), "processId": buildkit]: acquiring lock
    2026-03-03T09:18:24.629Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": startProcess(id:processID:), "processId": buildkit]: holding lock
    2026-03-03T09:18:24.630Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": startProcess(_:)]: enter
    2026-03-03T09:18:24.725Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": startProcess(_:)]: exit
    2026-03-03T09:18:24.725Z [info] com.apple.container: APIServer registering container with exit monitor
    2026-03-03T09:18:24.726Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": state(_:)]: enter
    2026-03-03T09:18:24.728Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": state(_:)]: exit
    2026-03-03T09:18:24.728Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": wait(_:)]: enter
    2026-03-03T09:18:24.729Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": startProcess(id:processID:), "processId": buildkit]: releasing lock
    2026-03-03T09:18:24.730Z [debug] com.apple.container APIServer ["id": buildkit, "processId": buildkit, "func": startProcess(id:processID:)]: ContainersService: exit
    2026-03-03T09:18:24.732Z [info] com.apple.container.test clitests ["stdout": "", "seq": 1, "status": 0, "stderr": "Warning! Running debug build. Performance may be degraded.\n", "testID": testBuildEnvironmentOnlyImageFromScratch, "suite": CLIBuilderEnvOnlyTest]: command end
    2026-03-03T09:18:24.733Z [info] com.apple.container.test clitests ["suite": CLIBuilderEnvOnlyTest, "seq": 2, "testID": testBuildEnvironmentOnlyImageFromScratch, "args": inspect buildkit]: command start
    2026-03-03T09:18:24.782Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: enter
    2026-03-03T09:18:24.783Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: exit
    2026-03-03T09:18:24.788Z [info] com.apple.container.test clitests ["stdout": "[{\"networks\":[{\"hostname\":\"buildkit\",\"ipv6Address\":\"fd28:5290:68", "seq": 2, "status": 0, "stderr": "Warning! Running debug build. Performance may be degraded.\n", "testID": testBuildEnvironmentOnlyImageFromScratch, "suite": CLIBuilderEnvOnlyTest]: command end
    2026-03-03T09:18:24.791Z [info] com.apple.container.test clitests ["seq": 3, "args": exec -e HTTP_PROXY=http://proxy.config.pcp.local:3128 -e http_proxy=http://proxy.config.pcp.local:3128 -e no_proxy=localhost,127.0.0.1,169.254.169.254,10.100.0.0/16,.internal,.execute-api.us-west-2.amazonaws.com,.s3.us-west-2.amazonaws.com,.us-west-2.eks.amazonaws.com,.us-west-2.vpce.amazonaws.com,amazonlinux.us-west-2.amazonaws.com,api.sagemaker.us-west-2.amazonaws.com,cloudformation.us-west-2.amazonaws.com,cloudtrail.us-west-2.amazonaws.com,codebuild-fips.us-west-2.amazonaws.com,codebuild.us-west-2.amazonaws.com,config.us-west-2.amazonaws.com,dynamodb.us-west-2.amazonaws.com,ec2.us-west-2.amazonaws.com,ec2messages.us-west-2.amazonaws.com,elasticloadbalancing.us-west-2.amazonaws.com,events.us-west-2.amazonaws.com,kinesis.us-west-2.amazonaws.com,kms.us-west-2.amazonaws.com,logs.us-west-2.amazonaws.com,monitoring.us-west-2.amazonaws.com,runtime.sagemaker.us-west-2.amazonaws.com,secretsmanager.us-west-2.amazonaws.com,servicecatalog.us-west-2.amazonaws.com,sns.us-west-2.amazonaws.com,ssm.us-west-2.amazonaws.com,ssmmessages.us-west-2.amazonaws.com,sts.us-west-2.amazonaws.com,192.168.0.0/16,fe80::/10 -e HTTPS_PROXY=http://proxy.config.pcp.local:3128 -e https_proxy=http://proxy.config.pcp.local:3128 -e NO_PROXY=localhost,127.0.0.1,169.254.169.254,10.100.0.0/16,.internal,.execute-api.us-west-2.amazonaws.com,.s3.us-west-2.amazonaws.com,.us-west-2.eks.amazonaws.com,.us-west-2.vpce.amazonaws.com,amazonlinux.us-west-2.amazonaws.com,api.sagemaker.us-west-2.amazonaws.com,cloudformation.us-west-2.amazonaws.com,cloudtrail.us-west-2.amazonaws.com,codebuild-fips.us-west-2.amazonaws.com,codebuild.us-west-2.amazonaws.com,config.us-west-2.amazonaws.com,dynamodb.us-west-2.amazonaws.com,ec2.us-west-2.amazonaws.com,ec2messages.us-west-2.amazonaws.com,elasticloadbalancing.us-west-2.amazonaws.com,events.us-west-2.amazonaws.com,kinesis.us-west-2.amazonaws.com,kms.us-west-2.amazonaws.com,logs.us-west-2.amazonaws.com,monitoring.us-west-2.amazonaws.com,runtime.sagemaker.us-west-2.amazonaws.com,secretsmanager.us-west-2.amazonaws.com,servicecatalog.us-west-2.amazonaws.com,sns.us-west-2.amazonaws.com,ssm.us-west-2.amazonaws.com,ssmmessages.us-west-2.amazonaws.com,sts.us-west-2.amazonaws.com,192.168.0.0/16,fe80::/10 buildkit pidof -s container-builder-shim, "testID": testBuildEnvironmentOnlyImageFromScratch, "suite": CLIBuilderEnvOnlyTest]: command start
    2026-03-03T09:18:24.833Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: enter
    2026-03-03T09:18:24.833Z [debug] com.apple.container APIServer ["func": list(filters:)]: ContainersService: exit
    2026-03-03T09:18:24.836Z [debug] com.apple.container APIServer ["command": -s, "func": createProcess(id:processID:config:stdio:), "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc, "id": buildkit]: ContainersService: enter
    2026-03-03T09:18:24.837Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": createProcess(_:)]: enter
    2026-03-03T09:18:24.837Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": createProcess(_:)]: exit
    2026-03-03T09:18:24.838Z [debug] com.apple.container APIServer ["id": buildkit, "func": createProcess(id:processID:config:stdio:)]: ContainersService: exit
    2026-03-03T09:18:24.838Z [debug] com.apple.container APIServer ["id": buildkit, "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc, "func": startProcess(id:processID:)]: ContainersService: enter
    2026-03-03T09:18:24.838Z [debug] com.apple.container APIServer ["id": buildkit, "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc, "func": wait(id:processID:)]: ContainersService: enter
    2026-03-03T09:18:24.839Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": startProcess(id:processID:), "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc]: acquiring lock
    2026-03-03T09:18:24.839Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": startProcess(id:processID:), "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc]: holding lock
    2026-03-03T09:18:24.839Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": startProcess(_:)]: enter
    2026-03-03T09:18:24.839Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": wait(_:)]: enter
    2026-03-03T09:18:24.853Z [debug] com.apple.container RuntimeLinuxHelper ["uuid": buildkit, "func": startProcess(_:)]: exit
    2026-03-03T09:18:24.854Z [error] com.apple.container RuntimeLinuxHelper ["route": com.apple.container.sandbox/start, "error": internalError: "failed to start process" (cause: "internal error (13): startProcess: failed to start process: internalError: "vmexec error: internalError: "read ack pipe"" (cause: "failed with errno 16: failed to write to /sys/fs/cgroup/container/buildkit/cgroup.procs")"), "uuid": buildkit]: route handler threw an error
    2026-03-03T09:18:24.855Z [debug] com.apple.container APIServer ["id": buildkit, "acquirer": startProcess(id:processID:), "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc]: releasing lock
    2026-03-03T09:18:24.856Z [debug] com.apple.container APIServer ["id": buildkit, "processId": c522d1a7-8916-47c2-8810-1057ad8a31dc, "func": startProcess(id:processID:)]: ContainersService: exit
    2026-03-03T09:18:24.857Z [error] com.apple.container APIServer ["route": containerStartProcess, "error": internalError: "failed to start process c522d1a7-8916-47c2-8810-1057ad8a31dc in container buildkit" (cause: "internalError: "failed to start process (cause: "internal error (13): startProcess: failed to start process: internalError: "vmexec error: internalError: "read ack pipe"" (cause: "failed with errno 16: failed to write to /sys/fs/cgroup/container/buildkit/cgroup.procs")")"")]: route handler threw an error
    2026-03-03T09:18:24+0000 info vminitd : [vminitd] created vmexec init process
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit [vminitd] setting up relay for StandardIO stderr
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit [vminitd] setting up relay for StandardIO stdout
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit [vminitd] starting I/O
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit [vminitd] starting managed process
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit pid=87 [vminitd] got back pid data
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit pid=87 [vminitd] sending pid acknowledgement
    2026-03-03T09:18:24+0000 info vminitd : id=buildkit pid=87 [vminitd] started managed process
    2026-03-03T09:18:24+0000 info vminitd : mountpoint=/sys/fs/cgroup path=/sys/fs/cgroup/container/buildkit [Cgroup] creating cgroup manager
    2026-03-03T09:18:25+0000 error vminitd : containerID=buildkit error=internalError: "vmexec error: internalError: "read ack pipe"" (cause: "failed with errno 16: failed to write to /sys/fs/cgroup/container/buildkit/cgroup.procs") id=c522d1a7-8916-47c2-8810-1057ad8a31dc [vminitd] startProcess
    2026-03-03T09:18:25+0000 info vminitd : id=c522d1a7-8916-47c2-8810-1057ad8a31dc [vminitd] setting up relay for StandardIO stderr
    2026-03-03T09:18:25+0000 info vminitd : id=c522d1a7-8916-47c2-8810-1057ad8a31dc [vminitd] setting up relay for StandardIO stdout
    2026-03-03T09:18:25+0000 info vminitd : id=c522d1a7-8916-47c2-8810-1057ad8a31dc [vminitd] starting I/O
    2026-03-03T09:18:25+0000 info vminitd : id=c522d1a7-8916-47c2-8810-1057ad8a31dc [vminitd] starting managed process
    2026-03-03T09:18:25+0000 info vminitd : id=c522d1a7-8916-47c2-8810-1057ad8a31dc pid=119 [vminitd] got back pid data
    time="2026-03-03T09:18:25Z" level=debug msg="debug handlers listening at tcp://0.0.0.0:10001"
    time="2026-03-03T09:18:25Z" level=info msg="auto snapshotter: using overlayfs"
    time="2026-03-03T09:18:25Z" level=info msg="found 1 workers, default=\"r2tilhezxm6ps6ohjkjeptagg\""
    time="2026-03-03T09:18:25Z" level=info msg="found worker \"r2tilhezxm6ps6ohjkjeptagg\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:buildkit org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/arm64]"
    time="2026-03-03T09:18:25Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
    time="2026-03-03T09:18:25Z" level=warning msg="CDI setup error /var/run/cdi: failed to monitor for changes: no such file or directory"
    time="2026-03-03T09:18:25Z" level=warning msg="currently, only the default worker can be used."
    time="2026-03-03T09:18:25Z" level=warning msg="skipping containerd worker, as \"/run/containerd/containerd.sock\" does not exist"
    time="2026-03-03T09:18:25Z" level=warning msg="using host network as the default"
    timestamp="2026-03-03T09:18:25Z" level=info message="Renamed buildkit-qemu-x86_64 to buildkit-qemu-x86_64.disabled"
    
  4. JaewonHur commented on Mar 6, 2026

    @JaewonHur
    Contributor
    ◇ Test testBuildDockerIgnore() started.
    container-builder-shim check failed with executionFailed("command failed: Warning! Running debug build. Performance may be degraded.\nError: read ack pipe\nError: failed to start process aeb3ff8d-362f-490c-ad3c-022f64aadd28 in container buildkit (cause: \"internalError: \"failed to start process (cause: \"internal error (13): startProcess: failed to start process: internalError: \"vmexec error: internalError: \"read ack pipe\"\" (cause: \"failed with errno 16: failed to write to /sys/fs/cgroup/container/buildkit/cgroup.procs\")\")\"\")\n")
    ✔ Test testBuildDockerIgnore() passed after 12.575 seconds.
    

    Seems cgroup.procs is being written by container exec before the initial process (i.e., container run) completes setting it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions