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

Error when executing build job using circleci cli #17

Open
alanning opened this issue Nov 17, 2020 · 3 comments
Open

Error when executing build job using circleci cli #17

alanning opened this issue Nov 17, 2020 · 3 comments

Comments

@alanning
Copy link

alanning commented Nov 17, 2020

The instructions for the circleci cli use this repo as an example of running a build on a local machine:

git clone https://github.com/CircleCI-Public/circleci-demo-go.git
cd circleci-demo-go
circleci local execute --job build

Executing circleci local execute --job build results in the following error:

➜  circleci-demo-go git:(master) circleci local execute --job build
Docker image digest: sha256:b2a0faa5dd8828b6b7d28ca0ce5e44bdaab565f2b02d1116ee5bd655a0607833
====>> Spin up environment
Build-agent version  ()
Docker Engine Version: 19.03.13
Kernel Version: Linux 92d36a02f624 5.4.39-linuxkit #1 SMP Fri May 8 23:03:06 UTC 2020 x86_64 Linux
Starting container circleci/golang:1.12
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
  image is cached as circleci/golang:1.12, but refreshing...
1.12: Pulling from circleci/golang
Digest: sha256:ae191834590b2cdee6ca9bb6985f02e05b3f9b326536f83494f788889481b408
Status: Image is up to date for circleci/golang:1.12
  pull stats: N/A
  time to create container: 34ms
  using image circleci/golang@sha256:ae191834590b2cdee6ca9bb6985f02e05b3f9b326536f83494f788889481b408
Starting container circleci/postgres:9.6-alpine
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
  image is cached as circleci/postgres:9.6-alpine, but refreshing...
9.6-alpine: Pulling from circleci/postgres
Digest: sha256:0eac295566d32ad1b079f3ce0ccc8763931a4405200d767fcaaee5978fa51e94
Status: Image is up to date for circleci/postgres:9.6-alpine
  pull stats: N/A
  time to create container: 35ms
  using image circleci/postgres@sha256:0eac295566d32ad1b079f3ce0ccc8763931a4405200d767fcaaee5978fa51e94
Time to upload agent and config: 2.9596537s
Error:
Unexpected environment preparation error: Error response from daemon: can't join IPC of container c0ce7aad530ae02f8d0d0a6b12afbaa6cb5c28c090cb10fb153e156bbddb02ed: non-shareable IPC (hint: use IpcMode:shareable for the donor container)

Step failed
Task failed
Error: Unhandled prepare executor error: Error response from daemon: can't join IPC of container c0ce7aad530ae02f8d0d0a6b12afbaa6cb5c28c090cb10fb153e156bbddb02ed: non-shareable IPC (hint: use IpcMode:shareable for the donor container)

OS: macOS Catalina Version 10.15.7 (19H2)
Shell: zsh
Docker: 2.5.0.1 (49550)
CircleCI CLI: 0.1.11393+c9b8b87 (homebrew)

I will try again with macOS BigSur once I update my machine.

@alanning
Copy link
Author

alanning commented Nov 17, 2020

Same result after OS update:

OS: macOS Big Sur 11.0.1 (20B29)
CircleCI CLI: 0.1.11458+44f80c2 (homebrew)

➜  circleci-demo-go git:(master) circleci local execute --job build
Docker image digest: sha256:b2a0faa5dd8828b6b7d28ca0ce5e44bdaab565f2b02d1116ee5bd655a0607833
====>> Spin up environment
Build-agent version  ()
Docker Engine Version: 19.03.13
Kernel Version: Linux 0994f9bfeeca 5.4.39-linuxkit #1 SMP Fri May 8 23:03:06 UTC 2020 x86_64 Linux
Starting container circleci/golang:1.12
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
  image is cached as circleci/golang:1.12, but refreshing...
1.12: Pulling from circleci/golang
Digest: sha256:ae191834590b2cdee6ca9bb6985f02e05b3f9b326536f83494f788889481b408
Status: Image is up to date for circleci/golang:1.12
  pull stats: N/A
  time to create container: 45ms
  using image circleci/golang@sha256:ae191834590b2cdee6ca9bb6985f02e05b3f9b326536f83494f788889481b408
Starting container circleci/postgres:9.6-alpine
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
  image is cached as circleci/postgres:9.6-alpine, but refreshing...
9.6-alpine: Pulling from circleci/postgres
Digest: sha256:0eac295566d32ad1b079f3ce0ccc8763931a4405200d767fcaaee5978fa51e94
Status: Image is up to date for circleci/postgres:9.6-alpine
  pull stats: N/A
  time to create container: 37ms
  using image circleci/postgres@sha256:0eac295566d32ad1b079f3ce0ccc8763931a4405200d767fcaaee5978fa51e94
Time to upload agent and config: 1.167210583s
Error:
Unexpected environment preparation error: Error response from daemon: can't join IPC of container 4d62aa573b625c8b61dfcf512bf1083530148719e1a0b0f1f29cd3aecd337a90: non-shareable IPC (hint: use IpcMode:shareable for the donor container)

Step failed
Task failed
Error: Unhandled prepare executor error: Error response from daemon: can't join IPC of container 4d62aa573b625c8b61dfcf512bf1083530148719e1a0b0f1f29cd3aecd337a90: non-shareable IPC (hint: use IpcMode:shareable for the donor container)

@nimish-gupta
Copy link

Any update on this, getting same error locally.

@alanning
Copy link
Author

No resolution. I just tried again and it's still not working for me but I am getting a different error this time:

OS: macOS Monterey 12.6.2 (21G320)
CircleCI: 0.1.22322+5ff92b4 (homebrew)

➜  circleci-demo-go git:(master) circleci local execute --job build
Fetching latest build environment...
Docker image digest: sha256:3a88ff3288f47816a0154852052d3427ff61dccd3f719de01ac705a316a0d4ad
====>> Spin up environment
Build-agent version  ()
System information:
 Server Version: 20.10.23
 Storage Driver: overlay2
  Backing Filesystem: extfs
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Kernel Version: 5.15.49-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64

Starting container circleci/golang:1.12
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
  image cache not found on this host, downloading circleci/golang:1.12
1.12: Pulling from circleci/golang
dc65f448a2e2: Pull complete
<... docker pull continues...>
a2993f23d6b5: Pull complete
Digest: sha256:ae191834590b2cdee6ca9bb6985f02e05b3f9b326536f83494f788889481b408
Status: Downloaded newer image for circleci/golang:1.12
circleci/golang:1.12:
  using image circleci/golang@sha256:ae191834590b2cdee6ca9bb6985f02e05b3f9b326536f83494f788889481b408
  pull stats: download 476.4MiB in 32.475s (14.67MiB/s), extract 476.2MiB in 15.511s (30.7MiB/s)
  time to create container: 473ms
Starting container circleci/postgres:9.6-alpine
Creating Docker containers in parallel ..........
circleci/postgres:9.6-alpine:
  using image circleci/postgres@sha256:0eac295566d32ad1b079f3ce0ccc8763931a4405200d767fcaaee5978fa51e94
  pull stats: download 13.73MiB in 595ms (23.08MiB/s), extract 13.7MiB in 2.554s (5.362MiB/s)
  time to create container: 757ms
Time to upload agent and config: 1.917655797s
Error:
Unexpected environment preparation error: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: cannot enter cgroupv2 "/sys/fs/cgroup/docker/3357938face49704d058931b587cb25e9a8284e3244f9a767d036e9f75440bf5/ab29d7767c45265670d7742a696efddc0a0c9ef845edb9e4f98add2437584f8a" with domain controllers -- it is in an invalid state: unknown

Step failed
Task failed
Error: Unhandled prepare executor error: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: cannot enter cgroupv2 "/sys/fs/cgroup/docker/3357938face49704d058931b587cb25e9a8284e3244f9a767d036e9f75440bf5/ab29d7767c45265670d7742a696efddc0a0c9ef845edb9e4f98add2437584f8a" with domain controllers -- it is in an invalid state: unknown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants