Koozali.org: home of the SME Server

[SOLVED] affa restore to 8 fails at send-key

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
[SOLVED] affa restore to 8 fails at send-key
« 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
« Last Edit: June 12, 2012, 11:45:10 AM by jameswilson »

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: affa restore to 8 fails at send-key
« Reply #1 on: June 11, 2012, 11:36:09 PM »
did you enable ssh? is it listening on standard 22 tcp port or a custom one?

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: affa restore to 8 fails at send-key
« Reply #2 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

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: affa restore to 8 fails at send-key
« Reply #3 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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: affa restore to 8 fails at send-key
« Reply #4 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

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: affa restore to 8 fails at send-key
« Reply #5 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?


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: affa restore to 8 fails at send-key
« Reply #6 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: affa restore to 8 fails at send-key
« Reply #7 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.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: affa restore to 8 fails at send-key
« Reply #8 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?

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: [SOLVED] affa restore to 8 fails at send-key
« Reply #9 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"
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline jameswilson

  • ****
  • 739
  • +0/-0
    • Security Warehouse, trade security equipment
Re: [SOLVED] affa restore to 8 fails at send-key
« Reply #10 on: June 12, 2012, 07:33:08 PM »
cheers mate i have another issue with user accounts now. But im filing a bug report

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: [SOLVED] affa restore to 8 fails at send-key
« Reply #11 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.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware