Hello,
I am trying to move from a dedicated server HW (192.168.178.50, name: "sme") to a VM (192.168.178.54, name: "affa1" on VMware Server). The idea is to use Affa (
http://wiki.contribs.org/Moving_SME_to_new_Hardware).
I did the updates on both boxes and got affa installed on the "newIP" PC ok.
Pinging is OK in both directions:
[root@affa1 ~]# ping 192.168.178.50
PING 192.168.178.50 (192.168.178.50) 56(84) bytes of data.
64 bytes from 192.168.178.50: icmp_seq=0 ttl=64 time=5.97 ms
64 bytes from 192.168.178.50: icmp_seq=1 ttl=64 time=0.557 ms
--
[root@sme ~]# ping 192.168.178.54
PING 192.168.178.54 (192.168.178.54) 56(84) bytes of data.
64 bytes from 192.168.178.54: icmp_seq=0 ttl=64 time=0.468 ms
64 bytes from 192.168.178.54: icmp_seq=1 ttl=64 time=0.537 ms
Using a shell I can ssh from each box into the other.
SSH settings are according to the guide.
Contents of the affa db:
[root@affa1 ~]# db affa show
AffaGlobalDisable=yes
DefaultAffaConfig=default
sendStatus=weekly
status=enabled
prodbox=job
Description=My Production Server
TimeSchedule=0030,0730,1130,1330,1730,2030
remoteHostName=192.168.178.50
status=disabled
prodserv=job
RPMCheck=yes
remoteHostName=192.168.178.50
sshPort=22
[root@affa1 ~]#
but
affa --send-key prodserv
is giving me problems:
[root@affa1 ~]# affa --send-key prodserv
Job prodserv: Sending public key to 192.168.178.50 failed.
the production server's ssh log shows:
[root@sme ~]# cat /var/log/sshd/current
[...]
@400000004e5630e6085d55a4 Connection closed by 192.168.178.54
The affa log for the connection trial shows:
[root@affa1 ~]# cat /var/log/affa/prodserv.log
[...]
Thu Aug 25 13:24:10[START.5321]: Affa 1.0.0-3: Running /sbin/e-smith/affa --send-key prodserv
Thu Aug 25 13:24:10[send keys.5321]: Sending public key to 192.168.178.50 failed.
Thu Aug 25 13:24:10[send keys.5321]: Done.
Thu Aug 25 13:24:10[send keys.5321]: Exiting.
affa recognizes the connection problem:
[root@affa1 ~]# affa --check-connections
prodserv : SSH connection FAILED.
prodbox : SSH connection FAILED.
Before setting the primary domain name of the "newIP" box to the same as the the production box, the ssh log also showed something else,
[root@sme ~]# cat /var/log/sshd/current
@400000004e555f5c2df08d2c reverse mapping checking getaddrinfo for pc-00054.stefandaheim.getmyip.com failed - POSSIBLE BREAKIN ATTEMPT!
@400000004e555f5c2e2eaf6c Connection closed by 192.168.178.54
but that (reverse mapping line) has gone away now.
Please advise.
Stefan