• Resolved songiuno

    (@songiuno)


    Hello,

    I am unable to connect/sync sites one way. Site A fails test sync to site B. Site B passes sync test to site A. I’ve looked thru any previous support posts that might answer my issue but have not found any. The error I get on site A is: Error contacting the remote site: “an undefined error occured. Please make sure the address is correct and try again. On the remote site, please make sure the plugin is activated and that the permalinks are up to date by visiting the permalinks settings page”. I have copmared/verified on both sites the address settings in WP settings/general/wordpress address, the database wp_options home values. I verified security settings as the same and assume them to be verified the same since Site B tests good to Site A.

    Site A activity logs:

    2020-07-22 19:30:10 – Info – Renewing token for https://www.siteB.net/wpblog
    2020-07-22 19:30:11 – Warning – Failed to renew token for https://www.siteB.net/wpblog – retrying…
    2020-07-22 19:30:12 – Alert – Failed to renew token for https://www.siteB.net/wpblog
    2020-07-22 19:30:12 – Alert – Failed to renew token for https://www.siteB.net/wpblog
    2020-07-22 19:30:12 – Alert – Error contacting the remote site: an undefined error occured. Please make sure the address is correct and try again. On the remote site, please make sure the plugin is activated and that the permalinks are up to date by visiting the permalinks settings page.

    Site B activity logs is clean.

    I’m sure the failed to renew token is telling me what the problem is but I don’t understand, as a novice at WP.

    Any help?

    • This topic was modified 4 years, 4 months ago by songiuno.

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

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Author Alexandre Froger

    (@frogerme)

    Hi @paulbnl ,

    The thing is, it’s not about bandwidth or load performance, but about connectivity. The token renewal as well as the Update & Metadata actions are blocking: Site A sends a request to site B, and expects a response, or hangs until the timeout is reached.

    If site A cannot communicate with site B at the time of the request for whatever reason, then the sync request fails.

    If you have access to SSH on your servers, to troubleshoot I’d first connect to site A in a terminal, and type ping siteB.tld and check the latency ; then I’d do the same on site B, pinging site A, and check the times given.

    We are speaking of synchronous actions here, so under the hood there isn’t much more than a call to wp_remote_post core function of WordPress involved in that process – anything than happens internally during than call is handled by WordPress, and is subjected to timeouts, connectivity between the site and the called URL, DNS, network latency, etc.

    I hope that helps.

    Hello @frogerme

    I fixed it, cannot believe I didn’t think of this sooner. On the target server I have put in place a bandwidth limit for that outgoing backup so that it no longer saturates my connection. It seemed that there was still enough left given the load time of the web server but it must not have been enough.
    Thank you for your help diagnosing this, you really are doing impressive work for the community. This plugin and your active work are awesome.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Error connnecting Site A to Site B’ is closed to new replies.