Learn about Centmin Mod LEMP Stack today
Become a Member

Xenforo Google recaptcha timeouts

Discussion in 'Forum software usage' started by moshbit, Feb 11, 2017.

  1. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    @eva2000 i'm having the same issue, but i'm able to ping google from my server. i'm also getting 100's of recaptcha requests timing out from google. should i start a separate thread for this (i'm getting the same error on the sitemap as @KeVo)?
     
  2. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    Sorry to keep bothering you @eva2000 but i've been having this error forever and don't know where to start diagnosing it. Any help would be much appreciated!
     
  3. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    5:22 AM
    Nginx 1.13.x
    MariaDB 5.5
    and results from above suggested commands ? could be a network issue with your web host i.e IPv6 etc
     
  4. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    I only see the command for pinging Google, which seemed to work fine:

    Code:
    PING google.com (216.58.194.206) 56(84) bytes of data.
    64 bytes from sfo03s01-in-f14.1e100.net (216.58.194.206): icmp_seq=1 ttl=58 time=2.93 ms
    64 bytes from sfo03s01-in-f14.1e100.net (216.58.194.206): icmp_seq=2 ttl=58 time=3.02 ms
    64 bytes from sfo03s01-in-f14.1e100.net (216.58.194.206): icmp_seq=3 ttl=58 time=3.00 ms
    64 bytes from sfo03s01-in-f14.1e100.net (216.58.194.206): icmp_seq=4 ttl=58 time=3.08 ms
    
    --- google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3004ms
    rtt min/avg/max/mdev = 2.930/3.011/3.086/0.078 ms
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    5:22 AM
    Nginx 1.13.x
    MariaDB 5.5
    can you post exact error messages you see ?

    who's your web host / server with ?
     
  6. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    Here's one copy of each kind of error:

    Code:
    Server Error Log
    Error Info
    Zend_Http_Client_Adapter_Exception: Unable to Connect to ssl://www.googleapis.com:443. Error #110: Connection timed out - library/Zend/Http/Client/Adapter/Socket.php:235
    Generated By: Matt Derrick, 25 minutes ago
    Stack Trace
    #0 /home/nginx/domains/squattheplanet.com/public/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('ssl://www.googl...', 443, true)
    #1 /home/nginx/domains/squattheplanet.com/public/library/EWRmedio/Services/YouTube.php(13): Zend_Http_Client->request()
    #2 /home/nginx/domains/squattheplanet.com/public/library/EWRmedio/Model/Submit.php(85): EWRmedio_Services_YouTube::dumpMedia(Array, Array)
    #3 /home/nginx/domains/squattheplanet.com/public/library/EWRmedio/ControllerPublic/Media.php(348): EWRmedio_Model_Submit->fetchFeedInfo('http://https://...')
    #4 /home/nginx/domains/squattheplanet.com/public/library/XenForo/FrontController.php(351): EWRmedio_ControllerPublic_Media->actionSubmit()
    #5 /home/nginx/domains/squattheplanet.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #6 /home/nginx/domains/squattheplanet.com/public/index.php(13): XenForo_FrontController->run()
    #7 {main}
    Request State
    array(3) {
      ["url"] => string(41) "https://squattheplanet.com/youtube/submit"
      ["_GET"] => array(1) {
        ["/youtube/submit"] => string(0) ""
      }
      ["_POST"] => array(3) {
        ["source"] => string(28) "https://youtu.be/hk6vAMtne8k"
        ["submit"] => string(20) "Retrieve Information"
        ["_xfToken"] => string(8) "********"
      }
    }
    Code:
    Server Error Log
    Error Info
    Zend_Http_Client_Adapter_Exception: Error submitting sitemap to Google: Unable to Connect to tcp://www.google.com:80. Error #110: Connection timed out - library/Zend/Http/Client/Adapter/Socket.php:235
    Generated By: Unknown Account, Sunday at 10:37 PM
    Stack Trace
    #0 /home/nginx/domains/squattheplanet.com/public/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('tcp://www.googl...', 80, false)
    #1 /home/nginx/domains/squattheplanet.com/public/library/XenForo/Model/Sitemap.php(263): Zend_Http_Client->request('GET')
    #2 /home/nginx/domains/squattheplanet.com/public/library/XenForo/Deferred/Sitemap.php(296): XenForo_Model_Sitemap->sendSitemapPing()
    #3 /home/nginx/domains/squattheplanet.com/public/library/XenForo/Deferred/Sitemap.php(64): XenForo_Deferred_Sitemap->_finalizeSitemap(2, 7.9999988079071)
    #4 /home/nginx/domains/squattheplanet.com/public/library/XenForo/Model/Deferred.php(295): XenForo_Deferred_Sitemap->execute(Array, Array, 7.9999988079071, '')
    #5 /home/nginx/domains/squattheplanet.com/public/library/XenForo/Model/Deferred.php(429): XenForo_Model_Deferred->runDeferred(Array, 7.9999988079071, '', false)
    #6 /home/nginx/domains/squattheplanet.com/public/library/XenForo/Model/Deferred.php(374): XenForo_Model_Deferred->_runInternal(Array, 8, '', false)
    #7 /home/nginx/domains/squattheplanet.com/public/deferred.php(23): XenForo_Model_Deferred->run(false)
    #8 {main}
    Request State
    array(3) {
      ["url"] => string(39) "https://squattheplanet.com/deferred.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(3) {
        ["_xfRequestUri"] => string(70) "/threads/the-basics-of-hitchhiking-and-travelling-with-no-money.12568/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    Code:
    Server Error Log
    Error Info
    Zend_Http_Client_Adapter_Exception: Unable to Connect to ssl://accounts.google.com:443. Error #110: Connection timed out - library/Zend/Http/Client/Adapter/Socket.php:235
    Generated By: Unknown Account, Mar 20, 2017
    Stack Trace
    #0 /home/nginx/domains/squattheplanet.com/public/library/Zend/Http/Client.php(973): Zend_Http_Client_Adapter_Socket->connect('ssl://accounts....', 443, true)
    #1 /home/nginx/domains/squattheplanet.com/public/library/XenForo/ControllerPublic/Register.php(1044): Zend_Http_Client->request('POST')
    #2 /home/nginx/domains/squattheplanet.com/public/library/XenForo/FrontController.php(351): XenForo_ControllerPublic_Register->actionGoogle()
    #3 /home/nginx/domains/squattheplanet.com/public/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/nginx/domains/squattheplanet.com/public/index.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
      ["url"] => string(115) "https://squattheplanet.com/register/google?code=4/CRvwHAmQtW-GyyirGDkzFaeFXaBGk7UpuLJ1oBZdkF0&csrf=8PedbYChqviQKRll"
      ["_GET"] => array(3) {
        ["/register/google"] => string(0) ""
        ["code"] => string(45) "4/CRvwHAmQtW-GyyirGDkzFaeFXaBGk7UpuLJ1oBZdkF0"
        ["csrf"] => string(16) "8PedbYChqviQKRll"
      }
      ["_POST"] => array(0) {
      }
    }
    I was having one other error related to Google's recaptcha service, but I disabled it until I can get this worked out.

    Obviously this is all related to Google somehow, so I don't know if perhaps the firewall blocked Google (the ports allow list seems good)?

    I'm also running this by Linode's tech support, and we've only established that this *might* be related to IPv6? I can include those emails if it helps.

    Here's where we are on that:

    Code:
    Hi,
    
    These are your Linode's assigned IPv6 addresses:
    Link-Local fe80::f03c:91ff:fedb:e6bd
    Global 2600:3c01::f03c:91ff:fedb:e6bd/128
    
    Here are the addresses it's currently configured for:
    Link-Local fe80::4ed7:60bd:e63a:c5bb
    Global 2600:3c01::ca80:8718:a8b2:524a
    
    How are you configuring IPv6? Is there a reason why you're not using SLAAC? Please try configuring IPv6 statically[1] and then see if that helps at all.
    
    Best regards,
    JD
    Linode Support
    Thanks for the help!
     
  7. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    5:22 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah IPv6 is a likely issue if not configured correctly. I usually disable IPv6 on all my servers except a few heh
     
  8. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    Is it better to disable IPv6 or get this correctly configured to resolve these errors?
     
  9. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    5:22 AM
    Nginx 1.13.x
    MariaDB 5.5
    I prefer ipv4 only setups myself - less potential issues.
     
  10. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    Is there a specific page in the online documentation for enabling/disabling IPv6?
     
  11. BamaStangGuy

    BamaStangGuy Active Member

    465
    136
    43
    May 25, 2014
    Ratings:
    +179
    Local Time:
    2:22 PM
    Can you post your sites nginx conf file?
     
  12. Matt

    Matt Moderator Staff Member

    680
    314
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +433
    Local Time:
    8:22 PM
    1.7.1
    MariaDB 10
    • Informative Informative x 3
  13. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    5:22 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  14. moshbit

    moshbit Member

    41
    10
    8
    Jun 15, 2014
    Ratings:
    +10
    Local Time:
    12:22 PM
    1.5.8
    MariaDB 5.5
    Okay, well I followed the centos instructions for disabling IPv6 and the errors have stopped. In addition, one plugin that couldn't make its API calls to Google started working again. I also went back to using Google's captcha, which was previously causing 'could not connect' errors seems to be working fine as well. So, I'm going to stick with having IPv6 disabled since I don't currently have time to tinker with it.

    Thanks to everyone for the advice and help, you're all life savers :)
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    28,942
    6,570
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,750
    Local Time:
    5:22 AM
    Nginx 1.13.x
    MariaDB 5.5
    Ah pesky IPv6 !
     
    • Like Like x 1