Repository navigation
Description
After a cluster is restored from a cluster backup, backup repositories of the "S3-compatible / rclone" kind are not usable: the list of backups in the repository is empty, so no application can be restored from it and no new backup can be written to it.
Steps to reproduce
- On a working cluster, add a backup repository of the
rcloneprovider (for example an S3-compatible storage) with a base path such asbucket/folder, and run a backup of an application. - Download a cluster backup file (action
download-cluster-backup). - On a new node without a cluster, run
retrieve-cluster-backupwith that file and thenrestore-cluster. (Note: on Debian 13 the file is first rejected, see the related issue linked below.) - Run
read-backup-repositoriesfor the restored repository, or try to restore an application from it.
Expected behavior
The repository is available again, with the same content as before, and applications can be restored from it.
Actual behavior
The repository entry is restored, but the rclone gateway ignores it: read-backup-repositories returns an empty list, and the gateway log says "No upstream defined, server not started". The cause is that restore-cluster stores only the provider, the URL and the name of the repository, but not its base path. For the rclone provider the base path is required, so the gateway configuration step skips the repository (the warning text is "Backup destination ... config parse failed"). The cluster backup file does contain the base path, it is just not loaded.
Workaround, tested: set the missing value in Redis and reload the gateway: run runagent -m cluster with a small Python script calling hset cluster/backup_repository/<REPOSITORY_ID> basepath <BASE_PATH>, then systemctl reload rclone-gateway. Afterwards read-backup-repositories lists the applications again, and all of them could be restored.
Components
core 3.23.2 on Debian 13 (trixie), single-node cluster in a virtual machine. The code in the main branch of ns8-core has the same behavior.
See also
Found while testing backup and restore of a cluster on a second test node. Related: the Debian 13 rejection of the cluster backup file, #8410. Pull request with the fix: NethServer/ns8-core#1444
Assisted-by: Hermes Agent:claude-sonnet-5-5
Activity