atum
By:
atum

We are getting intermittent problems (could not resolve host) on multiple different droplets

March 22, 2017 911 views
Nginx Networking Ubuntu 16.04

We are getting intermittent problems (could not resolve host) on multiple different droplets. This is affecting many sites which use API calls for payment gateways and currency exchange rates etc...

Restarting fixed the issue, but it happened again

2 comments
  • We are experiencing the same problem on one of our droplets (4 GB Memory / 60 GB Disk + 100 GB / NYC1 - Ubuntu Wordpress 4.7 on 16.04). Going to put in a ticket with DO, but wondering if you had done so too and heard anything.

  • We are also seeing the same issue. Reboot fixes this temporarily. apt-get update && apt-get upgrade are not yet pulling down any changes...

3 Answers

You're probably hit by the latest security update from Ubuntu, which messed up some certificates, which PHP uses to make the secure connection.
https://www.ubuntu.com/usn/usn-3239-1/

Run this service php7.0-fpm restart and it should fix it. Or simply restart your server.
People running Apache, needs to restart that with service apache restart

We are getting that error too. After we restart the server it works, but it keep happening again.

Any idea how to fix this?

Thanks in advance

  • Make sure you've updated Ubuntu:

    sudo apt-get update
    sudo apt-get dist-upgrade
    

How about downgrading that glibc until there's a fix?
The problem is in glibc version 2.23-0ubuntu6

apt-get -y --allow-downgrades install libc6=2.23-0ubuntu3
Have another answer? Share your knowledge.