You need to restart your server. There was a problem with libc and it was patched automatically. To solve it you simply need to restart the server so all changes will be applied ;)
All cURL calls fail with error 6: Could not resolve host - suddenly on Production server only
Hey guys, Thanks for reading. All the cURL call are failing on my production server but none on test/staging servers. At first I thought it was something with Socialite but now even the Send Mail doesn't work. Here is an example of the errors I get:
Error executing "SendRawEmail" on "https://email.eu-west-1.amazonaws.com"; AWS HTTP error: cURL error 6: Could not resolve host: email.eu-west-1.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html
Same problem with facebook.com / google.com / stripe.com .... Any idea on what I could check / what could go wrong ? I've been browsing around looking for an answer with no success :(
Thanks a lot!
Ah. Yeah, you can see the automatic security updates of Ubuntu - 'sudo nano /var/log/dpkg.log' . It affects the getaddress functions which CURL is using. They have roll out a few updates ( https://launchpad.net/ubuntu/xenial/amd64/libc-bin )
The bug - https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532
Make sure to update to latest fixed version. -
For Ubuntu xenial is
2.23-0ubuntu7
For Trusy
2.19-0ubuntu6.11
sudo apt-get update
sudo apt-get install --upgrade libc-bin libc-dev-bin libc6 libc6-dev klibc-utils libklibc
sudo reboot
Please or to participate in this conversation.