Verifying a new server, getting all green until

[code]
X : Could not rsync from '/var/aegir/config/includes' to 'aegir@otherserver.com:/'
X : /var/aegir/config/includes could not be synced to remote server otherserver.com. Changes might not be available until this has been done. (error: Host key verification failed. rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(632) [sender=3.0.4])
[/code]

rsync is installed on both systems.
The aegir account exists on both systems and the aegir accound has sudo access to apachectl

Running on openSUSE

Comments

joestewart’s picture

Check the SSH keys section of the Remote servers page ( http://community.aegirproject.org/node/30 )

joestewart’s picture

Status: Active » Postponed (maintainer needs more info)
VanD’s picture

Thanks for the link.

I created my key on the master server, added it to the remote server.
ssh'd from the master server to the remote server and added the host key.
It did not ask for a password which makes me assume that the key worked properly. (Normally it would prompt for a password)

Yet, I am still getting the error.

VanD’s picture

On this line

Could not rsync from '/var/aegir/config/includes' to 'aegir@otherserver.com:/

Is it trying to write to the root dir of the remote server? Because the account doesn't have write permissions there. I want it to write to /var/aegir

VanD’s picture

Status: Postponed (maintainer needs more info) » Active
VanD’s picture

Status: Active » Closed (fixed)

I preformed my own rsync from the Aegir server to the remote server, it asked to add the key, I said yes.
Now all is well.

jmary’s picture

So far I'm facing that problem with an install freshly made today from the .deb provided by install instructions from http://community.aegirproject.org/installing/debian on ubuntu 10.04.

I'm not a newbie on Linux at all, and that problem is resisting badly.

The full error is :

Could not rsync from '/var/aegir/config/includes' to 'aegir@example.com:/'
/var/aegir/config/includes could not be synced to remote server example.com. Changes might not be available until this has been done. (error: Host key verification failed. rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7])

From command line, rsync and ssh are working fine. I have the white mind of death to solve that at this stage.

sdragnev’s picture

jmary: I had this problem when I had tested the setup by connecting to the remote server using the server's IP instead of the hostname.
The IP address was in the known_hosts, but not the hostname.

May be unrelated to your issue, but that was the case for me.

Does ssh work both with IP and the hostname that you're using in Aegir?

rowbotony’s picture

I encountered this problem because files/private/* files were owned by www-data:www-data.

Before

 # ll private/temp
total 36
-rw------- 1 www-data www-data   60 2012-06-14 00:40 file0VHMqj
-rw------- 1 www-data www-data   45 2012-06-14 00:47 file3aEb94
-rw------- 1 aegir    aegir     130 2012-03-21 00:39 filebMOiQk
-rw------- 1 www-data www-data   45 2012-06-14 00:42 fileeQH4UY
-rw------- 1 www-data www-data   45 2012-06-14 00:44 fileknwDxt
-rw------- 1 www-data www-data   45 2012-06-14 00:48 fileonKfrm

I did a #chown aegir:www-data files/private -R and that resolved my "could not rsync" error.

After chown, rsync OK

 # ll private/temp
total 36
-rw------- 1 aegir www-data   60 2012-06-14 00:40 file0VHMqj
-rw------- 1 aegir www-data   45 2012-06-14 00:47 file3aEb94
-rw------- 1 aegir www-data  130 2012-03-21 00:39 filebMOiQk
-rw------- 1 aegir www-data   45 2012-06-14 00:42 fileeQH4UY
-rw------- 1 aegir www-data   45 2012-06-14 00:44 fileknwDxt
-rw------- 1 aegir www-data   45 2012-06-14 00:48 fileonKfrm