Curl errno=6 after about a day of work

2019-04-14 07:24发布

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?

标签: php curl nginx
1条回答
聊天终结者
2楼-- · 2019-04-14 08:27

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/

查看更多
登录 后发表回答