Warm spare "Could not login with username: root"


This used to work, but there seems to be an issue saving the backup file to the warm spare server. Where are the credentials used by the primary to log in to the warm spare?

See the log below.

Finished created backup file: 20240327-130119-1711544479-
Performing Local Maintenance
Finished Local Maintenance
Performing Remote Maintenance
Could not login with username: root, host: 192.168.xxx.xxx
Finished Remote Maintenance
Saving to selected Filestore locations
Saving to: SSH:‘SSH-warmspare’ instance ,File location: /var/spool/asterisk/backup/20240327-130119-1711544479-
Finished Saving to selected Filestore locations
There were errors during the backup process
Could not login with username: root, host: 192.168.xxx.xxx
There were warnings during the backup process
The module setcid returned no data, No backup created
The module ttsengines returned no data, No backup created
Warmspare enabled for this backup
We Have triggered an API to restore the backup on Spare Server
Response from Warmspare backup Server API
clientMutationId :xxxxxxxxxxxxxx
Restorestatus :Backup file not found

It seems to be able to connect with the API just not the SSH to save the file

This is set in the FileStore

I have run this command as shown in the instructions too
sudo -u asterisk ssh-copy-id -i /home/asterisk/.ssh/id_rsa.pub root@SecondaryServerIP

and can confirm this command works
ssh -i /home/asterisk/.ssh/id_rsa root@SecondaryServerIP

Long shot but try fwconsole chown on both systems and see if that makes it work.

Thanks for the idea, but no luck!

Restorestatus :Backup file not found
where you store backup on a warm spare server ?
do you have folder created before doing a backup job ?

Shouldn’t need to. All of that is automatic, the file is just not getting uploaded to the warm spare for some reason.

Hmm, another shot in the dark, could be a bug in your particular version, have you made sure that everything is fully up to date?

This is the path set in the SSH file store

I checked on the warm spare server and


Turns out I needed to adjust the command from Warm Spare PBX 15+ Setup - PBX GUI - Sangoma Documentation (atlassian.net)

It says to use sudo -u asterisk ssh-copy-id -i /home/asterisk/.ssh/id_rsa.pub root@SecondaryServerIP
But it should be sudo -u asterisk ssh-copy-id -i /home/asterisk/.ssh/id_rsa root@SecondaryServerIP

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.