I am currently facing an issue with restoring a virtual machine (VM) using OpenNebula.
Here is my setup:
4 host servers running Ubuntu 24
A front-end also running Ubuntu 24
OpenNebula version 6.10
I have implemented a backup solution with restic. The backup completed successfully, but when I try to restore the VM, I encounter the following error:
ERROR: datastore_action: [STDOUT] ERROR: datastore_action: [STDERR] /var/lib/one/remotes/datastore/restic/restic.rb:369:in parse_paths': Fatal: unable to open config file: stat /var/lib/one/datastores/103/54/config: no such file or directory (StandardError)\nIs there a repository at the following location?\n/var/lib/one/datastores/103/54\n\n from /var/lib/one/remotes/datastore/restic/restic.rb:239:in read_document’\n from /var/lib/one/remotes/tm/lib/../../datastore/restic/ls:111:in `'\n Error restoring VM disks: cannot list backup contents
Has anyone experienced this issue before or could point me to the key areas to check to resolve it?
Thank you in advance for your help,
Pape
The error you are having should be solved by changing the repo_type variable to sftp here. You should find the file under /var/lib/one/remotes/datastore/restic/ls and change the specified line to :repo_type => :sftp,. After this, execute onehost sync -f and you should be able to restore backups from restic.
There was a bug with the ls command of the Restic driver, which has been addressed in this GitHub issue.
If you face additional issues when restoring, check that you have the restic binary in your restic server under /var/tmp/one/datastore/restic/restic. If it is missing, you should copy it from the Frontend and try again the operation.