UpdraftPlus Home › Forums › Paid support forum – UpdraftPlus backup plugin › Site to Site Migration Failing
Tagged: migrate, migration plugin
- This topic has 6 replies, 3 voices, and was last updated 8 years, 3 months ago by udadmin.
-
AuthorPosts
-
August 31, 2016 at 12:07 pm #170770AllenParticipant
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)”,…}
code:”unexpected_http_code”
data:{,…}
cookies:[{name: “__cfduid”, value: “d22f654276d9c8dca005bf680f0b0b4871472644789”, expires: 1504180789,…}]
0:{name: “__cfduid”, value: “d22f654276d9c8dca005bf680f0b0b4871472644789″, expires: 1504180789,…}
domain:”.redapplelipstickreviews.biz”
expires:1504180789
httponly:””
name:”__cfduid”
path:”/”
value:”d22f654276d9c8dca005bf680f0b0b4871472644789″
filename:null
headers:{date: “Wed, 31 Aug 2016 11:59:50 GMT”, content-type: “text/html; charset=UTF-8”, connection: “close”,…}
cf-ray:”2db05190eedc5528-ORD”
connection:”close”
content-type:”text/html; charset=UTF-8″
date:”Wed, 31 Aug 2016 11:59:50 GMT”
link:”<https://THESITESURL.com/wp-json/>; rel=”https://api.w.org/”, <https://THESITESURL.com/>; rel=shortlink”
server:”cloudflare-nginx”
set-cookie:”__cfduid=d22f654276d9c8dca005bf680f0b0b4871472644789; expires=Thu, 31-Aug-17 11:59:49 GMT; path=/; domain=.THESITESURL.com; HttpOnly”
response:{code: 401, message: “Unauthorized”}
code:401
message:”Unauthorized”
e:1
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,
August 31, 2016 at 4:30 pm #170817Dee NutbourneModeratorHi,
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:
https://updraftplus.com/faqs/how-do-i-migrate-to-a-new-site-location/Best Wishes,
David NSeptember 1, 2016 at 4:56 pm #170978AllenParticipantHi 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,
September 1, 2016 at 10:03 pm #171010udadminKeymasterHi 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) { $rpc->set_http_credentials(array( 'username' => 'my_username', 'password' => 'my_password', )); }
September 1, 2016 at 10:04 pm #171011udadminKeymasterAs a third alternative, you can configure your destination website to exclude the source website’s IP address from the requirement for HTTP basic authentication.
David
September 5, 2016 at 3:46 pm #171379AllenParticipantHey 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.
Thanks!
September 5, 2016 at 10:45 pm #171410udadminKeymasterHi,
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: https://stackoverflow.com/questions/4102763/apache-basic-authentication-except-for-those-allowed
David
-
AuthorPosts
- The topic ‘Site to Site Migration Failing’ is closed to new replies.