Failed to register layer: failed to Lchown "/dev/console"
I have an error using v1.11.0 and v1
Build container for action use: '/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.11.0/Dockerfile'.
/home/ubuntu/bin/docker build -t 456935:06d9fb7a8d1f40d481[2](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:2)2359352c46268 -f "/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.11.0/Dockerfile" "/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.11.0"
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 18[3](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:3).8kB
Step 1/4 : FROM amazon/aws-cli:2.17.0
2.17.0: Pulling from amazon/aws-cli
[4](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:4)92439933c1f: Pulling fs layer
659dcd9fe751: Pulling fs layer
cadf92deee9d: Pulling fs layer
42aa93e9233a: Pulling fs layer
87a391e9688b: Pulling fs layer
42aa93e9233a: Waiting
87a391e9688b: Waiting
6[5](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:5)9dcd9fe751: Verifying Checksum
659dcd9fe751: Download complete
42aa93e9233a: Verifying Checksum
42aa93e9233a: Download complete
87a391e9688b: Verifying Checksum
87a391e9688b: Download complete
492439933c1f: Verifying Checksum
492439933c1f: Download complete
cadf92deee9d: Verifying Checksum
cadf92deee9d: Download complete
failed to register layer: failed to Lchown "/dev/console" for UID 0, GID 0: lchown /dev/console: no such file or directory
Warning: Docker build failed with exit code 1, back off 5.794 seconds before retry.
/home/ubuntu/bin/docker build -t 456935:06d9fb7a8d1f40d48122359352c46268 -f "/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.11.0/Dockerfile" "/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.11.0"
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 183.8kB
Step 1/4 : FROM amazon/aws-cli:2.17.0
2.17.0: Pulling from amazon/aws-cli
492439933c1f: Pulling fs layer
[6](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:6)59dcd9fe[7](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:7)51: Pulling fs layer
cadf92deee9d: Pulling fs layer
42aa93e9233a: Pulling fs layer
[8](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:8)7a3[9](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:9)1e9688b: Pulling fs layer
42aa93e9233a: Waiting
87a391e9688b: Waiting
659dcd9fe751: Verifying Checksum
659dcd9fe751: Download complete
42aa93e9233a: Verifying Checksum
42aa93e9233a: Download complete
87a391e9688b: Verifying Checksum
87a391e9688b: Download complete
cadf92deee9d: Verifying Checksum
cadf92deee9d: Download complete
492439933c1f: Verifying Checksum
492439933c1f: Download complete
failed to register layer: failed to Lchown "/dev/console" for UID 0, GID 0: lchown /dev/console: no such file or directory
Warning: Docker build failed with exit code 1, back off 4.595 seconds before retry.
/home/ubuntu/bin/docker build -t 456935:06d9fb7a8d1f40d48122359352c46268 -f "/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.[11](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:11).0/Dockerfile" "/opt/actions-runner/_work/_actions/sourcetoad/aws-codedeploy-action/v1.11.0"
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
Install the buildx component to build images with BuildKit:
https://docs.docker.com/go/buildx/
Sending build context to Docker daemon 183.8kB
Step 1/4 : FROM amazon/aws-cli:2.[17](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:17).0
2.17.0: Pulling from amazon/aws-cli
492439933c1f: Pulling fs layer
659dcd9fe751: Pulling fs layer
cadf92deee9d: Pulling fs layer
42aa93e9233a: Pulling fs layer
87a391e9688b: Pulling fs layer
42aa93e9[23](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:23)3a: Waiting
87a391e9688b: Waiting
659dcd9fe751: Verifying Checksum
659dcd9fe751: Download complete
42aa93e9233a: Verifying Checksum
42aa93e9233a: Download complete
87a391e9688b: Verifying Checksum
87a391e9688b: Download complete
cadf92deee9d: Verifying Checksum
cadf92deee9d: Download complete
49[24](https://github.com/abaqusinc/allgeo-server/actions/runs/9671528017/job/26682306923#step:3:24)39933c1f: Verifying Checksum
492439933c1f: Download complete
failed to register layer: failed to Lchown "/dev/console" for UID 0, GID 0: lchown /dev/console: no such file or directory
Error: Docker build failed with exit code 1
Please help me ... It is very urgent
Do you replicate on an older release?
yes, sourcetoad/aws-codedeploy-action@v1 and sourcetoad/[email protected]
Sorry, we don't replicate at the moment. Are you using the new arm runners by chance? Output seems different than I'm used to.
I can investigate deeper in a few days.
I have using a runner. Thanks
Can I have name of your runs-on:_ ? I'm trying to figure out if this is a the new ARM runners that are not building Docker based actions in the same way.
sure, runs-on: self-hosted
Okay, I'd say this is something on your side then. Let me know what you learn. I have no context to the setup of your self-hosted runner.
Hello,
I have fixed the problem. The bug is with docker 27.0.1. Rolling back to docker 26.1.4 solves the issue.
reference:
https://github.com/docker/for-linux/issues/1497