Site to Site Migration Failing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #170770

    Hey Guys,

    I have the Migration Premium Extension installed on 2 different sites.

    I am attempting to migrate site 1 to site 2.

    I successfully created a migration key 2048byte key on site 2.

    This key was added to the “Send Backup to another site” section on site 1. After clicking “Add Site”, site 2’s url correctly shows up.

    When clicking “Send” button on “Send Backup to another site” the next step shows up.

    Testing Connection…

    A few seconds later, this error message shows up:

    Unexpected response: Error: Unexpected HTTP response code (401) (unexpected_http_code). You should check that the remote site is online, not firewalled, does not have security modules that may be blocking access, has UpdraftPlus version 2.10.3 or later active and that the keys have been entered correctly.

    If sending directly from site to site does not work for you, then there are three other methods – please try one of these instead.For longer help, including screenshots, follow this link.


    In using Chrome Inspector, the following response is received:

    {e: 1, r: “Error: Unexpected HTTP response code (401)”,…}
    cookies:[{name: “__cfduid”, value: “d22f654276d9c8dca005bf680f0b0b4871472644789”, expires: 1504180789,…}]
    0:{name: “__cfduid”, value: “d22f654276d9c8dca005bf680f0b0b4871472644789″, expires: 1504180789,…}
    headers:{date: “Wed, 31 Aug 2016 11:59:50 GMT”, content-type: “text/html; charset=UTF-8”, connection: “close”,…}
    content-type:”text/html; charset=UTF-8″
    date:”Wed, 31 Aug 2016 11:59:50 GMT”
    link:”<;; rel=”;, <;; rel=shortlink”
    set-cookie:”__cfduid=d22f654276d9c8dca005bf680f0b0b4871472644789; expires=Thu, 31-Aug-17 11:59:49 GMT; path=/;; HttpOnly”
    response:{code: 401, message: “Unauthorized”}
    moreinfo:”<p>If sending directly from site to site does not work for you, then there are three other methods – please try one of these instead.For longer help, including screenshots, follow this link.</p>”
    r:”Error: Unexpected HTTP response code (401)”

    (For security reasons I removed the url of the site that was responding)

    Thank you for your help and response,

    Dee Nutbourne


    The error code that you are receiving indicates that authorisation is required to access the site. This is usually caused by the target site requiring ‘HTTP Basic Authentication’, i.e. a username and password is required to access the site.

    If this is the case, you will need to use one of the alternative transfer methods to migrate the site. These are detailed in step 3 of the following guide:

    Best Wishes,
    David N


    Hi David,

    Thank you for the speedy reply.

    If I’m understanding your answer – does that mean that UpdraftPlus does not have a way of handling HTTP Basic Authentication?

    If so – can you help me understand why Updraft cannot transfer the files/site – but ManageWP can without problem? (And all that was entered on that end was just a WP username and password).

    We purchased the plugin because we need an expedient way of quickly and easily letting our dev team roll our live site over to a dev site for testing and coding.

    If the other methods are required this break in workflow is not acceptable to us and defeats the purpose of us buying the software.

    If there isn’t a work around you can provide to do it within the WP Admin side, would you kindly direct me to the direct customer service department (not through the forums) to initiate a refund?

    Thank you much,


    Hi Alan,

    One way is to use an intermediate storage destination (e.g. Dropbox) – set up both source + destination to use the same storage; on the source, send to that storage, and on the destination, press the “Rescan remote storage” link.

    If you prefer to send it directly, you can use a filter (as an mu-plugin, or in your functions.php, as you prefer):

    add_action('updraftplus_remotesend_udrpc_object_obtained', 'my_updraftplus_remotesend_udrpc_object_obtained');
    function my_updraftplus_remotesend_udrpc_object_obtained($rpc) {
        'username' => 'my_username',
        'password' => 'my_password',

    As a third alternative, you can configure your destination website to exclude the source website’s IP address from the requirement for HTTP basic authentication.



    Hey David,

    With this option – do you have a KB on how to do that.

    If I’m understanding you – this would eliminate the inability for the two sites to communicate, right?

    If so – that’s great and I’d be happy to try that out.




    Yes, if you exempt the IP of the source website from the requirement for basic authentication, then you would not need to do anything further. Unfortunately, we do not have any documentation on how that is done with particular webservers; the best thing to do would be to search a site related to your webserver. If it’s Apache, here’s a relevant link:


Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Site to Site Migration Failing’ is closed to new replies.