Instance network delay after IPV6 migration

0

Hi, my instance (Ubuntu 22.04 ARM) was in default vpc and I created new VPC with IPV6 CIDR in view of recent IP charges. To migrate my instance to new VPC, I created AMI, launched new instance in new VPC and assigned primary IPV6. So now, no IPv4 address or elastic IP attached to it. Just IPv6 address. Post this, I'm facing below issues,

  1. All my websites that run on PHP started to give timeouts and respond slowly. I see many errors like below,
FastCGI sent in stderr: "PHP message: cURL error 28: Connection timed out after 5001 milliseconds" while reading response header from upstream, client: <<MY_IP_V6_ADDRESS>>, server: www.website.com
  1. Emails that I send from instance using AWS SES SMTP are not being sent and the scripts are just timing out.

Note: All this started to work back in BAU if I assign an elastic IP address to the instance temporarily.

Is there anything to change in /etc/hosts files or something? I've already setup Security Groups with inbound traffic for 80, 443, custom SSH port for both IPv4 & v6. Help is appreciated in resolving this.

JC
已提問 4 個月前檢視次數 220 次
2 個答案
0
已接受的答案

I've figured it out. Simple thing is now my EC2 instance is on IPv6 only and my apps are cURLing to external IPv4 sites, sending emails using AWS SES (seems not in ipv6 yet). So the timeouts. I've added elastic IP temporarily until AWS SES support IPv6.

JC
已回答 4 個月前
0

Hi,

Is your PHP stack including curl, opensll up-to-date?

See https://kinsta.com/knowledgebase/curl-error-28/

Outdated software or limited server resources may cause cURL requests to time out. For example, 
outdated PHP, cURL library, or OpenSSL could trigger the cURL error 28. You can read our article 
on the ideal WordPress PHP and server requirements to see if the values match up.

Best,

Didier

profile pictureAWS
專家
已回答 4 個月前
  • Hi Didier - Yes, it was always working and even prior migrating to new Vpc. Tried the article but same issues still pertain. Only when an elastic IP is assigned to the instance, everything speeds up. Pls advice.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南