XF 1.5 Proxy is not requestable (dns)

I've been getting the same errors since Saturday. No XF files have been changed, but yum ran on Friday and installed some updates. The error log is full of getaddrinfo errors. DNS queries from the command line work fine.
 
What is the full error with the stack trace and request state?

The image proxy doesn't generate an error in the log. If you run a test image, it says something along the lines of this:
https://yourpics.com/yourphoto.jpg could not be fetched or is not a valid image. The specific error message was: URI 'https://yourpics.com/yourphoto.jpg' is not requestable (dns)

These images were working recently, and can be opened directly via the URL, but the proxy can't get to them.

There are a couple hundred of dns-related errors in the event log. All started on Saturday. Here's a sample:

Zend_Http_Client_Adapter_Exception: KeyCAPTCHA connection error:Unable to Connect to tcp://back20.keycaptcha.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: System error - library/Zend/Http/Client/Adapter/Socket.php:235
Generated By: Unknown Account, Today at 7:39 PM
Stack Trace #0 /.../library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('back20.keycaptc...', 80, false)
#1 /.../library/XenForo/Captcha/KeyCaptcha.php(74): Zend_Http_Client->request('GET')
#2 /.../library/XenForo/Captcha/Abstract.php(129): XenForo_Captcha_KeyCaptcha->isValid(Array)
#3 /.../library/XenForo/ControllerPublic/LostPassword.php(56): XenForo_Captcha_Abstract::validateDefault(Object(XenForo_Input))
#4 /.../library/XenForo/FrontController.php(369): XenForo_ControllerPublic_LostPassword->actionLost()
#5 /.../library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /.../index.php(13): XenForo_FrontController->run()
#7 {main}
Request State array(3) {
["url"] => string(36) "https://.../lost-password/lost"
["_GET"] => array(1) {
["/lost-password/lost"] => string(0) ""
}
["_POST"] => array(3) {
["username_email"] => string(19) "redacted@yahoo.com"
["keycaptcha_code"] => string(172) "4a1a77e627d6c163020f16748fcba22e|54efbe5a3a7837bb07f9e97c983b4b21|http://back20.keycaptcha.com/swfs/c...1e95a987d-|7c035cfe6e5d717f3354a04bb4fb62c3|1"
["_xfToken"] => string(8) "********"
}
}




Error Info Zend_Http_Client_Adapter_Exception: KeyCAPTCHA connection error:Unable to Connect to tcp://back20.keycaptcha.com:80. Error #0: php_network_getaddresses: getaddrinfo failed: System error - library/Zend/Http/Client/Adapter/Socket.php:235
Generated By: Unknown Account, Today at 5:48 PM
Stack Trace #0 /.../library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('back20.keycaptc...', 80, false)
#1 /.../library/XenForo/Captcha/KeyCaptcha.php(74): Zend_Http_Client->request('GET')
#2 /.../library/XenForo/Captcha/Abstract.php(129): XenForo_Captcha_KeyCaptcha->isValid(Array)
#3 /.../library/XenForo/ControllerPublic/Register.php(355): XenForo_Captcha_Abstract::validateDefault(Object(XenForo_Input))
#4 /.../library/XenForo/FrontController.php(369): XenForo_ControllerPublic_Register->actionRegister()
#5 /.../library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#6 /.../index.php(13): XenForo_FrontController->run()
#7 {main}


Error Info Zend_Mail_Protocol_Exception: cannot connect to host; error = php_network_getaddresses: getaddrinfo failed: Name or service not known (errno = 0 ) - library/Zend/Mail/Protocol/Pop3.php:109
Generated By: Unknown Account, Today at 1:23 AM
Stack Trace #0 /.../library/Zend/Mail/Storage/Pop3.php(190): Zend_Mail_Protocol_Pop3->connect('pop.gmail.com', 995, 'SSL')
#1 /.../library/XenForo/Model/EmailBounce.php(300): Zend_Mail_Storage_Pop3->__construct(Array)
#2 /.../library/XenForo/Deferred/EmailBounce.php(19): XenForo_Model_EmailBounce->openBounceHandlerConnection()
#3 /.../library/XenForo/Model/Deferred.php(295): XenForo_Deferred_EmailBounce->execute(Array, Array, 7.9999990463257, '')
#4 /.../library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999990463257, '', false)
#5 /.../library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false)
#6 /.../deferred.php(23): XenForo_Model_Deferred->run(false)
#7 {main}
Request State array(3) {
["url"] => string(34) "https://.../deferred.php"
["_GET"] => array(0) {
}
["_POST"] => array(3) {
["_xfRequestUri"] => string(75) "/forum/threads/randomthread.170854/"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Have you tried disabling KeyCaptcha?
KeyCaptcha is only one of the errors. It can't find Paypal, it can't find smugmug, it can't find gmail or Akismet, etc.

No XF files have changed in about two weeks, yum ran on Friday and updated a slew of stuff. The problems started shortly afterward.
 
Do you happen to remember what got updated? Any firewall related setup? Are you using cPanel/WHM or another panel for administration or are you doing via CLI?
Also, check your /etc/resolv.conf and see what name servers you are using for DNS resolution. I typically use Google's (8.8.8.8, 8.8.4.4).
Have you confirmed that you can get out via wget/curl from the CLI?
 
Yes, curl/wget/etc worked from the CLI.

Based on this thread: https://stackoverflow.com/questions...-getaddresses-getaddrinfo-failed-system-error I checked the php-fpm configuration, and for whatever reason, this pool didn't have a pm.max_requests value set. I fixed that and restarted php-fpm, and it seems to be resolved now (er, resolving again? heh). There's no telling how long it's been configured that way, but I'll post back if/when it quits again.

Thanks everybody for the suggestions.
 
Top Bottom