[Freedombox-discuss] Problem restoring from remote backup.

A. F. Cano afc54 at comcast.net
Mon Nov 17 01:25:10 GMT 2025


thanks Sunil for the clarification about janus and how
not-available-anymore apps affect the restore operation.

I have tried repeatedly to complete the restore and it still doesn't
complete.  Earlier I said:


On Sun, Nov 02, 2025 at 05:07:20PM -0500, A. F. Cano via Freedombox-discuss wrote:
> 
> ...
> As it stands now, I cannot complete the restore.  Furthermore, the
> internel-to-external zone firewall sules seem not to be working.  I can
> not ssh out.  Firewall-cmd shows the permanent policy, but nothing goes
> through.  Could this be a result of an incomplete restore?  Now to debug
> this?

This is still the case.  Now I have not selected the missing apps (janus
and searx) and I've also not selected those that have no user data.  These
are the latest errors, the last line is "repository not found", which is
strange as I saw lots of traffic between the test freefombox and the
machine where the remote backups reside.  It also took a long time to
fail.

I also noticed another side-effect of the partial restore: the ssh key
got changed, probably because restoring everything (as I did at first)
restored all the configuration of ssh.  This is now undone with
ssh_keygen -f "~/.ssh/known_hosts" -R 10.42.0.1

Because of these latest errors, I can still not complete the restore
from the remote backup.  Any hints or anything that I might do to
pinpoint the cause of these errors would be welcome.

====================================================================

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/privileged.py", line 112, in wrapper
    return privileged_func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 75, in wrapper
    return run_privileged_method(func, module_name, action_name, args,
                                 kwargs)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 152, in run_privileged_method
    return _wait_for_server_response(*args)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 203, in _wait_for_server_response
    raise exception
RuntimeError: Borg exited unsuccessfully

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 105, in view
    return self.dispatch(request, *args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 144, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 151, in post
    form = self.get_form()
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 39, in get_form
    return form_class(**self.get_form_kwargs())
                        ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 231, in get_form_kwargs
    included_apps = self._get_included_apps()
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 289, in _get_included_apps
    return repository.get_archive_apps(name)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/repository.py", line 204, in get_archive_apps
    return privileged.get_archive_apps(archive_path,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
                                       self._get_encryption_passpharse())
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/privileged.py", line 114, in wrapper
    _reraise_known_errors(exception)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/privileged.py", line 127, in _reraise_known_errors
    raise known_error['raise_as'](known_error['message'])
plinth.modules.backups.errors.BorgRepositoryDoesNotExistError: Repository not found

===================================================================

Second error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/privileged.py", line 112, in wrapper
    return privileged_func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 75, in wrapper
    return run_privileged_method(func, module_name, action_name, args,
                                 kwargs)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 152, in run_privileged_method
    return _wait_for_server_response(*args)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 203, in _wait_for_server_response
    raise exception
RuntimeError: Borg exited unsuccessfully

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 105, in view
    return self.dispatch(request, *args, **kwargs)
           ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 144, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 144, in get
    return self.render_to_response(self.get_context_data())
                                   ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 237, in get_context_data
    context = super().get_context_data(**kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 74, in get_context_data
    kwargs["form"] = self.get_form()
                     ~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py", line 39, in get_form
    return form_class(**self.get_form_kwargs())
                        ~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 231, in get_form_kwargs
    included_apps = self._get_included_apps()
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 289, in _get_included_apps
    return repository.get_archive_apps(name)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/repository.py", line 204, in get_archive_apps
    return privileged.get_archive_apps(archive_path,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
                                       self._get_encryption_passpharse())
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/privileged.py", line 114, in wrapper
    _reraise_known_errors(exception)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/privileged.py", line 127, in _reraise_known_errors
    raise known_error['raise_as'](known_error['message'])
plinth.modules.backups.errors.BorgRepositoryDoesNotExistError: Repository not found

====================================================================



More information about the Freedombox-discuss mailing list