1

My Ubuntu EC2 worked fine and then I rebooted it. Now I get the following error on trying pretty much anything:

sudo: unable to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable

where the xxx is the private IP address.

As an example, it happens for this command:

sudo systemctl restart logstash.service

I have

  • verified in the EC2 dashboard that both the private and public IP address have not changed.

  • I can access the server both with Ftp and SSH.

  • The EC2's VPC has both DNS hostnames and DNS resolution enabled.

  • I checked the contents of hostname with:

    cat /etc/hostname

It contains the same ip-xxx-xx-xx-xxx as in the error message.

4
  • why are you telling us all this … do you have a question about it? If so, please EDIT your “post” to add a real question.
    – Pierre.Vriens
    Apr 4 at 18:35
  • I write and describe an error that I'm getting. It's not clear that my implied question is, "how do I solve this error"? Is that the sentence that would have made the difference? I appreciate your writing to explain your thoughts on this. I'm still quite baffled.
    – user984003
    Apr 4 at 18:51
  • I created a new question and clarified my question.
    – user984003
    Apr 4 at 18:58
  • and then DELETED that new question?
    – Pierre.Vriens
    Apr 5 at 4:39

0