vms icon indicating copy to clipboard operation
vms copied to clipboard

myip.bitnami.com does not work for IP detection from IPv6-only instances

Open paxan opened this issue 1 year ago • 4 comments

Platform

AWS

bndiagnostic ID

not applicable

cloud-init error output

warn: Unable to resolve IP address using http://myip.bitnami.com/ connect ETIMEDOUT
warn: Unable to resolve IP address using http://myip2.bitnami.com/ connect ETIMEDOUT
...

bndiagnostic was not useful. Could you please tell us why?

network issue is with myip.bitnami.com

Describe your issue as much as you can

dig myip.bitnami.com AAAA

Produces no records in the answer.

But even if it worked correctly, are bitnami cloud-init scripts ready to work in IPv6-only situations?

paxan avatar Jul 29 '24 18:07 paxan

Hello! @paxan

Platform AWS

bndiagnostic ID not applicable

cloud-init error output warn: Unable to resolve IP address using http://myip.bitnami.com/ connect ETIMEDOUT warn: Unable to resolve IP address using http://myip2.bitnami.com/ connect ETIMEDOUT ... bndiagnostic was not useful. Could you please tell us why? network issue is with thedisneyhub myip.bitnami.com

Describe your issue as much as you can dig myip.bitnami.com AAAA Produces no records in the answer.

But even if it worked correctly, are bitnami cloud-init scripts ready to work in IPv6-only situations?

The issue arises because myip.bitnami.com and myip2.bitnami.com do not resolve in IPv6-only environments, causing network timeouts. These services lack AAAA records, indicating no IPv6 support, which makes Bitnami cloud-init scripts incompatible with IPv6-only setups. To resolve this, check your network configuration and consider modifying the cloud-init scripts to use an alternative service like http://ipv6.whatismyip.akamai.com/ for IP resolution in IPv6 environments. If issues persist, consult Bitnami support for assistance.

Hope this helps!

Ruby496Williams avatar Jul 30 '24 06:07 Ruby496Williams

@paxan can you tell us which application are you trying to deploy with IPv6-only support? Can you also tell us if you are using AWS Lightsail or regular EC2 images and for which region? I did a test recently (February this year) and I was able to properly launch a WordPress instance in EC2 with IPv6-only support.

Apart from getting those warnings in the cloud-init log, was your application properly deployed?

gongomgra avatar Jul 30 '24 07:07 gongomgra

https://bitnami.com/stack/mean

This was noticed on a IPv6-only Lightsail instance running in us-east-1.

cloud-init succeeded after about ten minutes of trying and failing to interact with myip and myip2 endpoints (all of errors are "Unable to resolve IP").

This long delay in cloud-init blocks launch scripts that run after cloud-init. Resulting in pain caused by this latency.

paxan avatar Jul 30 '24 19:07 paxan

Hi @paxan,

Thanks for the information. We will take a look into it. I'm adding the on-hold tag. We will keep you posted.

gongomgra avatar Aug 02 '24 11:08 gongomgra