Could not retrieve mirrorlist http://amazonlinux.default.amazonaws.com/2/co

0

I can not cloudform a usable ec2 instance in us-east-1b. The console log shows this:

\[  117.581749] cloud-init\[3206]: Cannot find a valid baseurl for repo: amzn2-core/2/x86_64  
\[  117.585263] cloud-init\[3206]: Could not retrieve mirrorlist http://amazonlinux.default.amazonaws.com/2/core/latest/x86_64/mirror.list error was  
\[  117.590381] cloud-init\[3206]: 12: Timeout on http://amazonlinux.default.amazonaws.com/2/core/latest/x86_64/mirror.list: (28, 'Connection timed out after 5000 milliseconds')  

I've retried a few time (a dozen?), over the last few hours. Here's the most recent instance id: i-079e1e18a88555d37, the single instance in this cloud formation arn:aws:cloudformation:us-east-1:566653950698:stack/DevelAxe0/01a331b0-9134-11e9-bbf1-0e17762a99e0

Please advise.

demandé il y a 5 ans4122 vues
2 réponses
0

Hello,
This timeout error can happen when an instance runs in a private VPC with no Internet access, as the repositories are hosted on S3.
To access the repositories from the instance you can setup an Internet Gateway in your VPC or configure a VPC endpoint to access the repositories: https://aws.amazon.com/amazon-linux-ami/faqs/?nc1=h_ls#vpc-endpoint

Thanks,
Paul

AWS
répondu il y a 5 ans
0

Try checking the inbound & outbound rules of the instance security group. It should work if the http & https ports are open to the internet.

If you are using a VPC, then check the NAT Instance/NAT Gateway.

Edited by: krshnteja on Jul 25, 2021 11:42 AM

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions