Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: jameswilson on June 11, 2012, 11:32:56 PM

Title: [SOLVED] affa restore to 8 fails at send-key
Post by: jameswilson on June 11, 2012, 11:32:56 PM
i have a dead sme 7 box that was upgraded via yum (its a vm on a xen host)
so i have created a new sme 8 on the host and im trying to restore it from the affa backup. But everytime i try and send the key from any of the boxes that hold backups it fails with

Job backup: Sending public key to 10.0.0.1 failed.

im assuming its a key issue but ima bit stuck now.

Thanks

James
Title: Re: affa restore to 8 fails at send-key
Post by: Stefano on June 11, 2012, 11:36:09 PM
did you enable ssh? is it listening on standard 22 tcp port or a custom one?
Title: Re: affa restore to 8 fails at send-key
Post by: jameswilson on June 11, 2012, 11:42:06 PM
thanks stefano.

its on  non std one, but i have tried putting it back to 22 and also specifing the port number
Title: Re: affa restore to 8 fails at send-key
Post by: janet on June 12, 2012, 01:08:28 AM
jameswilson

Quote
its on  non std one, but i have tried putting it back to 22 and also specifing the port number

....and did you temporarily enable passwords for ssh on the new server

The port number set on the "new" sme server needs to match the port number being used by the affa configuration settings
Title: Re: affa restore to 8 fails at send-key
Post by: jameswilson on June 12, 2012, 01:17:39 AM
yes mary i have enabled ssh on the correct port and also enabled normal password access. But thankyou for looking.

James
Title: Re: affa restore to 8 fails at send-key
Post by: jameswilson on June 12, 2012, 01:40:40 AM
thought i was making progress but it seems not

Code: [Select]

[root@smebackupserver ~]# affa -send-key versigolf
Job versigolf: Public key sent to versigolf.co.uk
Error 852 in 'main': SSH connection to versigolf.co.uk failed. Did you send the public key?
[root@smebackupserver ~]#


im at a loss now.

if the public key is sent then it should allow comms?

Title: Re: affa restore to 8 fails at send-key
Post by: janet on June 12, 2012, 04:05:32 AM
jameswilson

Try this:
Open up ssh access on the new server, then try to establish a ssh connection using putty from a workstation or another sme server.
That will test whether you have access through to the xen hosted sme.
If you do not have normal ssh access then you cannot expect affa to establish a ssh connection.
Title: Re: affa restore to 8 fails at send-key
Post by: newburns on June 12, 2012, 06:23:11 AM
Try to delete the saved key on the AFFA server. That's what I was always missing. Clear out the old key, then send new public key, and it will record it.
Title: Re: affa restore to 8 fails at send-key
Post by: jameswilson on June 12, 2012, 11:44:52 AM
Try to delete the saved key on the AFFA server. That's what I was always missing. Clear out the old key, then send new public key, and it will record it.
Thats it!

Fantastic Many thanks newburns

maybe this could be added to the wiki?
Title: Re: [SOLVED] affa restore to 8 fails at send-key
Post by: newburns on June 12, 2012, 07:20:13 PM
This is the first time I have helped someone with a direct reply. I will cherish this post

"My First Dollar"
Title: Re: [SOLVED] affa restore to 8 fails at send-key
Post by: jameswilson on June 12, 2012, 07:33:08 PM
cheers mate i have another issue with user accounts now. But im filing a bug report
Title: Re: [SOLVED] affa restore to 8 fails at send-key
Post by: newburns on June 12, 2012, 07:35:32 PM
I had a similar issue when I did an AFFA restore from an AFFA SME 7 server backing up a SME 8 Beta7 production server, restored to a SME 8 final server. Everything restored, but all the users had number ID like 33 [33] in WinSCP, and although the users were listed in Server Manager, they did not have a quota.