Symptoms
-
Restoring a backup fails with the following error:
Error: backup_sign: Can't find public key in database:
backup_sign: Can't get server's public key -
The following error occurred during a scheduled backup:
Unable to create remote backup. Error: Unable to export backup: Can't initialize RSA private key
-
Backup or migration finishes with a warning:
Warning: Unable to upload the backup to the FTP storage: Unable to set backup sign certificate
-
Migration pre-check shows the following warning:
stderr: rsync: link_stat "/root/plesk_migrator/plesk_migrator-9xcxzh5oqyrrqyfdhjs8dezlk536xa5p/backup.tar" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1650) [Receiver=3.1.2]
rsync: [Receiver] write error: Broken pipe (32)
Cause
Backup sign certificate is missing.
Resolution
Note: if you don't have root access to Plesk server via SSH/RDP, contact your hosting provider regarding the issue
For Linux:
-
Connect to the server via SSH.
-
Regenerate the backup sign key using below command:
Note: if the issue occurred during migration, run the command on the source server
# /usr/local/psa/admin/sbin/backup_sign --generate
-
Restore, create a backup, or re-run the migration again.
For Windows:
-
Connect to the server via RDP.
-
Regenerate the backup sign key using the below commands:
Note: if the issue occurred during migration, run the command on the source server
C:> cd %plesk_bin%
backup_sign.exe --generate -
Restore, create a backup, or re-run the migration again.