I have been using workspaces forever. This morning, builds started failing with the following. All of my builds (20+ of them).
Downloading workspace layers
workflows/workspaces/be63298e-f7d6-4556-9407-4ac479715cd4/0/d6689d57-c676-4954-98a1-db07a17b798f/0/106.tar.gz - 423 MB
Applying workspace layers
d6689d57-c676-4954-98a1-db07a17b798f
Error applying workspace layer for job d6689d57-c676-4954-98a1-db07a17b798f: Error extracting tarball /tmp/workspace-layer-d6689d57-c676-4954-98a1-db07a17b798f014209425 : tar: dev/console: Cannot mknod: Operation not permitted tar: dev/full: Cannot mknod: Operation not permitted tar: dev/null: Cannot mknod: Operation not permitted tar: dev/pts/0: Cannot mknod: Operation not permitted tar: dev/pts/ptmx: Cannot mknod: Operation not permitted tar: dev/random: Cannot mknod: Operation not permitted tar: dev/tty: Cannot mknod: Operation not permitted tar: dev/urandom: Cannot mknod: Operation not permitted tar: dev/zero: Cannot mknod: Operation not permitted tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now : exit status 2
Any thoughts?
2 Likes
bzon
2
I’m getting the same issue here too. This is my circleci config (simplified). It has always worked for me until some time ago…
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12.9
working_directory: /go/src/github.com/org/app
environment:
- GOCACHE: "/tmp/go/cache"
steps:
- run: git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/org".insteadOf "https://github.com/org"
- checkout
- run:
name: download-dependencies
command: |
if [ ! -d /go/src/github.com/24metrics/fs-clicks/vendor ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- run:
name: build
command: |
VERSION=${CIRCLE_TAG:-${CIRCLE_BRANCH}-$(git describe --tags --always)}
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
echo $VERSION > VERSION.txt
# https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace
- persist_to_workspace:
root: /go/src/github.com/org/app
paths:
- "Dockerfile"
- "app-binary"
- "VERSION.txt"
docker-build:
docker:
- image: docker:stable-git
steps:
- setup_remote_docker:
docker_layer_caching: true
# https://circleci.com/docs/2.0/configuration-reference/#attach_workspace
- attach_workspace:
at: ./
# THIS IS WHERE THE ERROR HAPPENS NOW
- run:
name: docker build
command: |
ls -lrt # < there is nothing in the current directory!
export VERSION=$(cat VERSION.txt) # < this is now an error!!!
# my docker build command here ....
workflows:
version: 2
pipeline:
jobs:
- build
- docker-build:
requires:
- build
filters:
branches:
only:
- master
tags:
only: /v?[0-9]+(\.[0-9]+){2}/
bzon
3
This is now fixed on my end.