Closed (fixed)
Project:
Aegir Hosting Remote Import
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2012 at 13:09 UTC
Updated:
20 Sep 2013 at 20:33 UTC
Here is what I know!
1) Add remote_import to your provision drush command like explained in the README.
2) Add hosting_remote_import to your aegir frontend
Here is what I like to know!
3) Setup a server - What options should be chosen in the different checkboxes? - guessing I should just check remote import / hostmaster
4) How is the key verification process setup - I read this http://community.aegirproject.org/node/30, but it seems that it is only aimed at regular aegir installs. I've got Barracuda Octopus instances. So how should it be done then?
Comments
Comment #1
omega8cc commentedYou may want to check BOA docs: http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/REMOTE.txt
But note that there is now an issue we are working on: #1594588: Remote import of sites - does it work?
Comment #2
lsolesen commented@omega8cc Thanks. However it seems that I need the same file structure on both the source and target server. I wanted to have just a regular aegir using aegir-up on my local development VM and being able to do remote imports from several barracuda instances to that one aegir instance.
Comment #3
omega8cc commentedYou don't need the same files/dirs structure. You just need to run Registry Rebuild after importing the site (BOA does it for you automatically).
Hmm, after reading #1503712: Allow for custom usernames and ports on remote connections it seems that it should work when Aegir system user is different on source and target. We will need to revisit BOA docs then, but it should be a good start for you anyway.
Comment #4
lsolesen commentedTried setting up the key verification. However, I cannot figure out how to get my LOCAL octopus on a vagrant created VM (which is not available to the internet) into known hosts. I think that is why the key verification process fails with code 255.
Or do I need to do something specific to make it a MASTER server?
Comment #5
steven jones commentedIf host key verification failed, then you likely need to ssh to the server manually from the command line first, using the aegir user. This will ask you to confirm the host key, check that it is what you expect and then accept it, and then Aegir should be able to connect to your remote master server correctly.
Comment #6
lsolesen commentedThanks both for trying to help out. I copied the id_rsa.pub to the production server by using ssh-copy-id, and it seemed to work well. However, I still cannot login without a password. I suspect that it is because the key belongs to o1@aegir.local, which is not accessible by the internet. I am probably missing a lot of things in this passwordless stuff.
Comment #7
lsolesen commentedAnd the revelation came to me after visiting #openssh channel:
Permissions was to high.
.ssh should be 700
.ssh/* should be 600
Now I could verify the site.
Comment #8
omega8cc commentedNote that the
ssh-keyscanwill not work for localhost hostname:This is why you need to attempt to connect from localhost to the remote server to give it a chance to ask you to add it to the known_hosts, as Steven explained in #5 above.
Comment #9
lsolesen commented@emega8cc Yes. I did that. And I was able to connect. When I tried it with another server, however, I get a strange error:
As my process is not scripted I cannot be certain, but I think I did exactly the same things on the second walk-through. Except one thing, I forgot, namely removing remote_import on the source server as explained here http://drupalcode.org/project/barracuda.git/blob/HEAD:/docs/REMOTE.txt#l22. I have done that now.
I tried re-verifying my first site, and it worked correctly, but my second site gives the error above? Is that one of the odd things, you've also experienced.
Comment #10
lsolesen commentedAnd if you run into similar problems (which is likely caused by forgetting to remove the remote_import directory on the source server), you should just delete the drush alias in ~/.drush for that particular server. I was now able to verify the server.
Comment #11
ar-jan commentedAny other things that may cause this? I followed the REMOTE.txt guidelines, and have two VPS instances set up. (Both are available over the internet). The only thing that's different is that I cannot ssh-keyscan from my source-host, the known_hosts file remains empty. This seems expected, since the source-host isn't supposed to ssh into the target-host, right? (So should this step be in the docs?)
But I can ssh into my source-host from my target-host without using a password, and the fingerprint has been added to known_hosts. But I still get the following when I try to verify the server (source-host) that I added to my o1 control panel on the target-host:
Comment #12
ergonlogicComment #13.0
(not verified) commentedUpdated.