sipXcom 25.01.0-rc-002 Configuration Backup/Restore Issue

2 views
Skip to first unread message

SipXcom Newbie

unread,
Jun 23, 2026, 11:20:10 AM (14 hours ago) Jun 23
to sipxcom-users, Support
Dear All,

"Backup Now" Configuration (only) backup to /var/sipxdata/tmp fails.

Has anyone seen this permission error?

Contents of backup.log

# Logfile created on 2026-06-23 15:01:26 +0100 by logger.rb/v1.4.3
Warning: Permanently added 'ip.ad.dr.ess' (ED25519) to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
ro...@ip.ad.dr.ess: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
E, [2026-06-23T15:01:26.142043 #198800] ERROR -- : ALARM_BACKUP_FAILED error: Cannot complete on host ip.ad.dr.ess
I, [2026-06-23T15:01:26.142154 #198800] INFO -- : Newly created /var/sipxdata/backup/local/202606231501 is empty - remove it
I, [2026-06-23T15:01:26.142241 #198800] INFO -- : Exit with exception
/usr/bin/sipx-archive:139:in `block in run': Error condition. EXIT (RuntimeError)
from /usr/bin/sipx-archive:111:in `each'
from /usr/bin/sipx-archive:111:in `run'
from /usr/bin/sipx-archive:569:in `<main>'


Diagnostics (above):
- "added to the list of known hosts", followed by
- "Permission denied, please try again."

will be from the ssh at line 113 in sipx-archive:

104 # Orchestrate backing up of cluster including uploading if ftp is configured
105 # and purging old backups.
106 class Backup < ArchiveBase
107 def run(params, args)
108 #create directory to hold backups
109 date_dir = Time.now.strftime("%Y%m%d%H%M")
110 fresh_dir "#{@backup_dir}/#{@data['plan']}/#{date_dir}"
111 @data['hosts'].each { |location_id, meta|
112 host = meta['host']
113 if cmd("ssh #{@ssh_params} #{@user}@#{host} sipx-archive --backup-host #{location_id} < #{@config}")
114 if meta.key?('backup')
115 meta['backup'].each do |defId, command|
116 #cfengine does not accept '.' characters to be sent as variable values
117 defId_name = defId.split('.')[0]
118 unless cmd("#{@bin_dir}/sipxagent -b backup_collect -d #{defId_name}_definition")
119 @logger.error("ALARM_BACKUP_FAILED error: DONE but could not collect backup from host #{host}")
120 if Dir["#{@backup_dir}/#{@data['plan']}/#{date_dir}/*"].empty?
121 @logger.info("Newly created #{@backup_dir}/#{@data['plan']}/#{date_dir} is empty - remove it")
122 FileUtils.rm_rf "#{@backup_dir}/#{@data['plan']}/#{date_dir}"
123 end
124 @logger.info("Exit with exception")
125 raise "Error condition. EXIT"
126 end
127 if File.exists?("#{@backup_tmp_dir}/#{defId}")
128 FileUtils.cp("#{@backup_tmp_dir}/#{defId}", "#{@backup_dir}/#{@data['plan']}/#{date_dir}/#{defId}")
129 end
130 end
131 end
132 else
133 @logger.error("ALARM_BACKUP_FAILED error: Cannot complete on host #{host}")
134 if Dir["#{@backup_dir}/#{@data['plan']}/#{date_dir}/*"].empty?
135 @logger.info("Newly created #{@backup_dir}/#{@data['plan']}/#{date_dir} is empty - remove it")
136 FileUtils.rm_rf "#{@backup_dir}/#{@data['plan']}/#{date_dir}"
137 end
138 @logger.info("Exit with exception")
139 raise "Error condition. EXIT"
140 end
141 }
142 fs = file_manager(params)
143 fs.save(@data['max']) unless @dryrun
144 end


Have checked customisations. Only ssh-related file overwritten is
/etc/sysconfig/sshd (needlessly since everything commented-out) and not
/etc/ssh/sshd_config .

Deverrors.com suggests this is the signature of a generic authentication
error from sshd and can occur when file permissions on
~/.ssh or ~/.ssh/authorized_keys are wrong.

sipx's home is /etc/sipxpbx , so

# ls -l /etc/sipxpbx/.ssh/authorized_keys
-rw------- 1 sipx sipx 381 Jun 18 12:09 /etc/sipxpbx/.ssh/authorized_keys

Looked right. Checked top level directory:

# ls -al /etc/sipxpbx/ | grep ".ssh"
drwxr-xr-x. 2 sipx sipx 150 Jun 18 12:10 .ssh

Tried removing all but access to sipx user and retrying backup job.
It failed with the same error in backup.log.

Anyone seen this and/or can suggest how to resolve.

SipXcom Newbie


Support

unread,
Jun 23, 2026, 11:27:47 AM (14 hours ago) Jun 23
to SipXcom Newbie, sipxcom-users
'sipxecs-setup --ssh-keys' restores / recovers (only) the root and sipx user ssh keys.
Reply all
Reply to author
Forward
0 new messages