Closed mhalagan closed 7 years ago
It seems it't not able to resolve the domain name
Caused by: java.net.UnknownHostException: ip-10-223-13-100: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:922)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1316)
at java.net.InetAddress.getLocalHost(InetAddress.java:1492)
What distribution (AMI) are you using ?
That's the private IP, so I'm guessing it needs to be accessing the public IP address instead? I terminated the instance.
I'm running the cluster from within a VPC and I provided the nextflow.config with a subnet and security group ID.
yes, it should be able to resolve the IP. I'm doing a test.
I'm using an ubuntu AMI that I created.
I think this is more a AWS network config problem. Try to have a look here.
That makes sense. I'll try that and let you know if it works. Thanks!
It looks like it's failing because it's on an ubuntu AMI. On the ubuntu AMI you can't ping the hostname
without adding .ec2.internal at the end. It would probably work better if it got the IP address instead of the DNS.
It looks weird, I've tested this with Ubuntu in the past. Also because what it's failing a plain Java API ie.
InetAddress.getLocalHost().getHostAddress()
It looks very strange that couldn't be run on Ubuntu.
Actually nevermind, I don't think it's an issue with using Ubuntu. It was an issue with the VPC I was using. The AWS default VPC resolves an instance DNS to ip-address.ec2.internal, but I was using one that was modified to return something different at the end. I think it'd be a good idea to use the IP address instead of the DNS, because that's more reliable.
The API is fetching the IP address, but for some reason it tries to resolve the host name. This means you have solved the issue?
I assume this is solved. Feel free to comment or re-open if necessary
Yeah, this has been solved. Sorry, for the delayed response.
Could you please provide a short description of the solution that could be useful for other users?
Go the the AWS VPC page and click on "DCHP Option Sets". Make sure the one you are using is being resolved to the default, which is "ec2-internal".
Running this command on the master node
Returns the following errors: