Curl errno=6 after about a day of work

2019-04-14 07:33发布

问题:

Two days ago I've noticed that our servers (nginx + php-fpm) stopped working because curl function start return CURLE_COULDNT_RESOLVE_HOST. After reboot everyting become working again. But now, after about a day of work, I've noticed the same error.

When I ssh to a server $ wget http://example.com is working. I can also request http://example.com from php running as cli. But when I try to curl http://example.com from php in web server I get CURLE_COULDNT_RESOLVE_HOST.

I made reboot again and it is working now... But I think that tomorrow I will have to made another reboot.

Any ideas about root cause?

回答1:

Are you using Ubuntu by any chance?

Ubuntu pushed an update a short time ago to revert the changes they made in yesterday's update which broke the services and required a restart all PHP-FPM processes

https://www.ubuntu.com/usn/usn-3239-2/



标签: php curl nginx