EC2 Take too long to answer

0

Hi!

I created a EC2 t2.micro on UBUNTU free tier (I have credit). After that, I installed python and airflow (also crete user) but when I try to connect with IP v4 Public Access I have been answering with:

"[My IP address] took too long to respond."

I checked this AWS official resource:

https://docs.aws.amazon.com/es_es/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#TroubleshootingInstancesConnectionTimeout

Also I have:

  • Inbound rules: HTTPS,HTTP, SSH 0.0.0.0/0 on Ports: 443,22,80 respectively

  • Outbound rules: 0.0.0.0/0

  • VPC and subnets connected and linked.

  • routing tables is OK with 0.0.0.0/0 and ::/0

I do not what is happening, is making me crazy.

Anyone could said what is happening or how can i solve it ?

Thanks!

Adriel
asked 8 months ago221 views
4 Answers
1
Accepted Answer

Hello.

There is a high possibility that t2.micro has too little memory.
Airflow's prerequisites state that the memory is 4GB.
It is possible that the error "[My IP address] took too long to respond." may have occurred because EC2 memory was low and processing took a long time.
https://airflow.apache.org/docs/apache-airflow/stable/installation/prerequisites.html

The minimum memory required we recommend Airflow to run with is 4GB, but the actual requirements depend wildly on the deployment options you have

profile picture
EXPERT
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago
  • Hi Riku,

    I also tried with bigger EC2 instances and still persist the error

0

Do you have an internet gateway configured on your VPC and is your EC2 in the public subnet where the internet gateway resides?

AWS
Oli
answered 8 months ago
profile picture
EXPERT
reviewed 8 months ago
  • Yes I checked, and is attached and linked correctly.

  • Yes both of them are correctly linked

0

Just to confirm your security group rules you have 433 instead of 443

profile picture
EXPERT
answered 8 months ago
  • Hi Gary, was a typo the port is 443

  • Ok np. Thanks

0

Addicional info:

I created 2 EC2 instances: First one runs on AMI Amazon Linux 2023 with 64bits (x86) on t2.micro Free tier Second one runs on Ubuntu Server 22.04 LTS (HVM), SSD Volume type with 64bits (x86) on t2.micro Free tier (my airflow app runs on this model)

Same Security group, kes-value and simple code

#!/bin/bash

Use this for your user data (script from top to bottom)

install httpd (Linux 2 version)

yum update -y yum install -y httpd systemctl start httpd systemctl enable httpd echo "<h1>Hello World from $(hostname -f)</h1>" > /var/www/html/index.html

The first one works perfectly on Brave,Chrome and Firefox. The second one fails miserably on every browser with the same error than my airflow model.

What can be happening?

Adriel
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions