Error to update runtime python 3.11

0

Hello everybody.

I'm trying to update the runtime of all of the lambdas in my system but when I try to deploy I get the next error:

***#4 ERROR: failed to register layer: mkdir /usr/lib64/perl5/vendor_perl/auto/Encode/EBCDIC: no space left on device

[1/2] FROM public.ecr.aws/sam/build-python3.9@sha256:60383e14f8f26ba227603cd5ee9a6043ce09a129d44d5b38d2f24384a7ce5fa5:


Dockerfile:4

2 | # passed as build arg. The default allows to do docker build . when testing. 3 | ARG IMAGE=public.ecr.aws/sam/build-python3.7 4 | >>> FROM $IMAGE 5 |
6 | ARG PIP_INDEX_URL

ERROR: failed to solve: failed to register layer: mkdir /usr/lib64/perl5/vendor_perl/auto/Encode/EBCDIC: no space left on device jsii.errors.JavaScriptError: Error: docker exited with status 1 --> Command: docker build -t cdk-770d7b96a566806920ccfc959a9c340d8441369d1b8ee630fdb63c4507a7eff4 --platform "linux/amd64" --build-arg "IMAGE=public.ecr.aws/sam/build-python3.9" "/tmp/jsii-kernel-FhfsaQ/node_modules/@aws-cdk/aws-lambda-python-alpha/lib"***

I'm a little confuse and I don't know why is the reason of that error. Somebody help me please.

posta 2 mesi fa148 visualizzazioni
1 Risposta
0

Hello, Edgar.

The error message no space left on device indicates that Docker has run out of disk space while trying to build your image. This is a common issue when Docker's storage, typically located in /var/lib/docker, becomes full with images, containers, volumes, or build cache. Here are steps to resolve the issue:

  1. Check Disk Usage Verify if the disk is full using the command: df -h

  2. Cleanup Unused Docker Resources To free up space, remove unused Docker objects: docker system prune

For a more thorough cleanup (including volumes): docker system prune -a --volumes

    1. Remove Specific Docker Images List all images: docker images

Remove unneeded images: docker rmi [IMAGE_ID] Replace [IMAGE_ID] with the actual image ID.

  1. Increase Disk Space Consider increasing the disk space for Docker's storage partition, if necessary.

  2. Move Docker's Storage Location If needed, change Docker's storage directory by editing /etc/docker/daemon.json:

{ "data-root": "/path/to/new/docker/data" }

Replace /path/to/new/docker/data with the directory path you want to use that has free space.

Then, restart Docker:

sudo systemctl restart docker

Please accept this answer. Otherwise, please let me know for us to troubleshoot.

Regards, Pablo Silva

profile pictureAWS
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande