I get repeated failures trying to restore an HA environment
juju backups restore --id=<...>
ERROR could not exit restoring status: cannot complete restore: <nil>: Restore did not finish succesfuly
ERROR cannot perform restore: <nil>: restore failed: cannot load agent config from disk: cannot read agent config "/var/lib/juju/agents/machine-0/agent.conf": open /var/lib/juju/agents/machine-0/agent.conf: no such file or directory
Machine-0 is the new bootstrap instance created when restoring.
The machine-0 stuff doesn't exist - my backup file contains 'machine-6/agent.conf', as I guess that was the leader of the HA environment when I backed up. As the restore process seems to replace '/var/lib/juju/agents/*', it isn't possible to simply rename the file.
Also,the error message misspells 'successfully'.
for clarification, this was running 1.24.5-trusty-amd64