• Resolved ashotaslanian

    (@ashotaslanian)


    Hi,

    I just found out that for some reason jetpack plugins is unable to pass the wpcom connection test anymore.

    WHAT I HAVE TRIED:
    – reconnecting the plugin, with the “Reconnect Jetpack now” button/link at the Tools -> Site health.
    – Disabling/Enabling the plugin
    – Re-authorizing the plugin.

    I have also used the https://jptools.wordpress.com/debug/ debug tool to try figure out the problem.
    Tool’s report was:

    
    We were unable to make an XML-RPC request to your website. Please make sure that XML-RPC is turned on and that Jetpack is installed, activated and connected with your WordPress.com account. If the error persists, try disconnecting and connecting Jetpack again.
    

    I’m pretty sure that XML-RPC is enabled on the website: i have tried sending a test request to the XML-RPC via Postman and was able to receive a response for that.

    Request:

    
    
    <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> 
    <methodCall> 
    <methodName>system.listMethods</methodName> 
    <params></params> 
    </methodCall>

    Response was a long list of enabled methods.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @ashotaslanian

    While the XMLRPC.php file is accessible on your site, it appears your host (or a security plugin) is limiting how often it can be accessed. Jetpack makes multiple requests to the file and at a certain point, it is being blocked which is causing the Jetpack connection to fail.

    I’d suggest contacting your hosting provider and asking them to allow our IP addresses listed here:

    https://jetpack.com/support/hosting-faq/#jetpack-whitelist

    Please note that these IP addresses could change (or more could be added) at any time, which could break your connection to Jetpack. For this reason, we actually discourage whitelisting specific IPs, although with some hosts it may be the only option`

    Thread Starter ashotaslanian

    (@ashotaslanian)

    hi @bruceallen !
    thanks for the response!

    i actually have fail2ban running on the server. i have tried adding the ips to allowlist and re-running the jetpack debug, but still getting same results.

    Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @ashotaslanian

    Thanks for trying that, we’re still showing the file as blocked after a few attempts, can you contact your host and see if they can allowlist the IPs as well?

    Thread Starter ashotaslanian

    (@ashotaslanian)

    @bruceallen its a vps with google cloud.
    and it always was. only tuing that was changed was instead of having a direct nginx+php-fpm, it is now apache+php behind nginx proxy.

    are there any special cahing rules for jetpack to work?
    rest of the functionality works okay.

    Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @ashotaslanian

    Can you check to see if you have this line in your site’s wp-config.php file:

    define( ‘JETPACK_SIGNATURE__HTTPS_PORT’, 80 );

    If not, can you add it, just make sure it is somewhere above this line:

    /* That’s all, stop editing! Happy blogging. */

    Thread Starter ashotaslanian

    (@ashotaslanian)

    @bruceallen i can confirm that line is not present in wp-config.php.

    man, thanks for all the support, but unfortunately i have decided to move on from jetpack plugin, and come up with custom solutions to cover the missing features.

    i hope this thread will be helpful for others having the same question.

    thanks again for the support!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Failing wpcom connection test’ is closed to new replies.