Open chandra-pexa opened 1 year ago
✨ Synthesis time: 4.1s
CdkTestStack: start: Building 7f18a11296f35510ee16538afec983ed6312e12afbf81b777089a9f8e34e2474:current_account-current_region CdkTestStack: success: Built 7f18a11296f35510ee16538afec983ed6312e12afbf81b777089a9f8e34e2474:current_account-current_region CdkTestStack: start: Publishing 7f18a11296f35510ee16538afec983ed6312e12afbf81b777089a9f8e34e2474:current_account-current_region CdkTestStack: start: Building 5194f926380567b6fdffc61629afdad2afc818614cb227df45e499c69db163a7:current_account-current_region CdkTestStack: success: Built 5194f926380567b6fdffc61629afdad2afc818614cb227df45e499c69db163a7:current_account-current_region CdkTestStack: start: Building 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region CdkTestStack: success: Built 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region CdkTestStack: start: Publishing 5194f926380567b6fdffc61629afdad2afc818614cb227df45e499c69db163a7:current_account-current_region CdkTestStack: start: Building 900e866a2f7ed9b5f68ec5c0f8d7486e23ac1d943f7531ead40771cd799ebafc:current_account-current_region CdkTestStack: success: Built 900e866a2f7ed9b5f68ec5c0f8d7486e23ac1d943f7531ead40771cd799ebafc:current_account-current_region CdkTestStack: start: Publishing 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region CdkTestStack: start: Building 170c35a7e22f1db8d1ddca89e432b257de298fb8d43e611a15b64d36b7e5c229:current_account-current_region CdkTestStack: start: Publishing 900e866a2f7ed9b5f68ec5c0f8d7486e23ac1d943f7531ead40771cd799ebafc:current_account-current_region CdkTestStack: success: Published 5194f926380567b6fdffc61629afdad2afc818614cb227df45e499c69db163a7:current_account-current_region CdkTestStack: success: Published 7f18a11296f35510ee16538afec983ed6312e12afbf81b777089a9f8e34e2474:current_account-current_region CdkTestStack: success: Published 7d289f9862096a0365073560bf6f447a02ebc74681e6aa4baaaa3a61c8e53bac:current_account-current_region CdkTestStack: success: Published 900e866a2f7ed9b5f68ec5c0f8d7486e23ac1d943f7531ead40771cd799ebafc:current_account-current_region
[2/4] RUN yum update -y && yum install -y amazon-linux-extras && PYTHON=python2 amazon-linux-extras install epel && yum -y install clamav clamd p7zip && yum clean all && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools && ln -s /etc/freshclam.conf /tmp/freshclam.conf: 241.0 241.0 5. Configure the failing repository to be skipped, if it is unavailable. 241.0 Note that yum will try to contact the repo. when it runs most commands, 241.0 so will have to try and fail each time (and thus. yum will be be much 241.0 slower). If it is a very temporary problem though, this is often a nice 241.0 compromise: 241.0 241.0 yum-config-manager --save --setopt=
.skip_if_unavailable=true 241.0 241.0 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again Dockerfile:9
8 | ARG CACHE_DATE=1 9 | >>> RUN yum update -y \ 10 | >>> && yum install -y amazon-linux-extras \ 11 | >>> && PYTHON=python2 amazon-linux-extras install epel \ 12 | >>> && yum -y install clamav clamd p7zip \ 13 | >>> && yum clean all \ 14 | >>> && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools \ 15 | >>> && ln -s /etc/freshclam.conf /tmp/freshclam.conf 16 |
ERROR: failed to solve: process "/bin/sh -c yum update -y && yum install -y amazon-linux-extras && PYTHON=python2 amazon-linux-extras install epel && yum -y install clamav clamd p7zip && yum clean all && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools && ln -s /etc/freshclam.conf /tmp/freshclam.conf" did not complete successfully: exit code: 1 CdkTestStack: fail: docker build --build-arg 'CACHE_DATE=Wed Oct 04 2023' --tag cdkasset-170c35a7e22f1db8d1ddca89e432b257de298fb8d43e611a15b64d36b7e5c229 . exited with error code 1: #0 building with "desktop-linux" instance using docker driver
[2/4] RUN yum update -y && yum install -y amazon-linux-extras && PYTHON=python2 amazon-linux-extras install epel && yum -y install clamav clamd p7zip && yum clean all && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools && ln -s /etc/freshclam.conf /tmp/freshclam.conf: 241.0 241.0 5. Configure the failing repository to be skipped, if it is unavailable. 241.0 Note that yum will try to contact the repo. when it runs most commands, 241.0 so will have to try and fail each time (and thus. yum will be be much 241.0 slower). If it is a very temporary problem though, this is often a nice 241.0 compromise: 241.0 241.0 yum-config-manager --save --setopt=
.skip_if_unavailable=true 241.0 241.0 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again Dockerfile:9
8 | ARG CACHE_DATE=1 9 | >>> RUN yum update -y \ 10 | >>> && yum install -y amazon-linux-extras \ 11 | >>> && PYTHON=python2 amazon-linux-extras install epel \ 12 | >>> && yum -y install clamav clamd p7zip \ 13 | >>> && yum clean all \ 14 | >>> && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools \ 15 | >>> && ln -s /etc/freshclam.conf /tmp/freshclam.conf 16 |
ERROR: failed to solve: process "/bin/sh -c yum update -y && yum install -y amazon-linux-extras && PYTHON=python2 amazon-linux-extras install epel && yum -y install clamav clamd p7zip && yum clean all && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools && ln -s /etc/freshclam.conf /tmp/freshclam.conf" did not complete successfully: exit code: 1
❌ Deployment failed: Error: Failed to build asset 170c35a7e22f1db8d1ddca89e432b257de298fb8d43e611a15b64d36b7e5c229:current_account-current_region at Deployments.buildSingleAsset (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:470:11115) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.buildAsset (/opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:470:177544) at async /opt/homebrew/lib/node_modules/aws-cdk/lib/index.js:470:163212
Failed to build asset 170c35a7e22f1db8d1ddca89e432b257de298fb8d43e611a15b64d36b7e5c229:current_account-current_region
I'm unable to reproduce this problem.
@chandra-pexa Can you test if this issue persists after clearing your docker image cache and attempting another cdk deploy
?
@dontirun i did clear the docker cache and tried again. I end with same error.
Hmm, are you behind any sort of network proxy?
yes, this is on my work laptop.
Is the epel repo blocked on your work network?
@chandra-pexa Do you see the same issue if you use version 2.6.0
or later?
This happened to me after cleaning out my disk space and removing some docker images, containers, volumes and builds... so i think this broke somehow the cdk.
I solved this by removing the cdk.out
folder, then bootstrapping the project with cdk bootstrap
, the deploy worked fine
cdk failed with following error. Can someone help ?
6 218.9 Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
6 ERROR: process "/bin/sh -c yum update -y && yum install -y amazon-linux-extras && PYTHON=python2 amazon-linux-extras install epel && yum -y install clamav clamd p7zip && yum clean all && pip3 install --no-cache-dir cffi awslambdaric boto3 requests aws-lambda-powertools && ln -s /etc/freshclam.conf /tmp/freshclam.conf" did not complete successfully: exit code: 1