My production FreedomBox is, thankfully, working just fine.  All this is
done on the backup FreedomBox that started as a bookworm image (since
the apu2 cannot boot the latest UEFI images), upgraded over 36 hours to
the latest stable image and later upgraded on its own to the latest:
25.14.

I just tried to do a full restore from a remote backup.  The backup app
found the remote backups, so the original problem is now fixed (thanks
Sunil) but when I clicked "Restore" on the latest backup it went to work
and restored partially, until I got this:


Error running operation. Details
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 153, 
in post
    return self.form_valid(form)
           ~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 
296, in form_valid
    repository.restore_archive(self.kwargs['name'], selected_apps)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/repository.py", 
line 211, in restore_archive
    api.restore_apps(restore_archive_handler, app_ids=app_ids,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     create_subvolume=False, backup_file=archive_path,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     encryption_passphrase=passphrase)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/api.py", line 
150, in restore_apps
    _install_apps_before_restore(components)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/api.py", line 
188, in _install_apps_before_restore
    setup.run_setup_on_apps(apps_to_setup)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/setup.py", line 351, in 
run_setup_on_apps
    setup_apps(app_ids, allow_install=allow_install)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/setup.py", line 255, in setup_apps
    operation = run_setup_on_app(app.app_id, allow_install=allow_install)
  File "/usr/lib/python3/dist-packages/plinth/setup.py", line 51, in 
run_setup_on_app
    return operation_module.manager.new(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        f'{app_id}-setup', app_id, name, _run_setup_on_app,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        [app, current_version], show_message=show_message,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        show_notification=show_notification,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        thread_data={'allow_install': allow_install})
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/operation.py", line 198, in new
    raise KeyError('Operation in progress/scheduled')
KeyError: 'Operation in progress/scheduled'

This might have been a non-fatal error as it appeared that the operation
was continuing.  Various apps were installed and this was visible in the
notifications when doing refresh of the backups page, but then:


Error running operation. Details
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 153, 
in post
    return self.form_valid(form)
           ~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/views.py", line 
296, in form_valid
    repository.restore_archive(self.kwargs['name'], selected_apps)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/repository.py", 
line 211, in restore_archive
    api.restore_apps(restore_archive_handler, app_ids=app_ids,
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     create_subvolume=False, backup_file=archive_path,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     encryption_passphrase=passphrase)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/api.py", line 
150, in restore_apps
    _install_apps_before_restore(components)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/backups/api.py", line 
188, in _install_apps_before_restore
    setup.run_setup_on_apps(apps_to_setup)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/setup.py", line 351, in 
run_setup_on_apps
    setup_apps(app_ids, allow_install=allow_install)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/setup.py", line 257, in setup_apps
    operation.join()
    ~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/plinth/operation.py", line 91, in join
    raise self.exception
  File "/usr/lib/python3/dist-packages/plinth/setup.py", line 74, in 
_run_setup_on_app
    app.setup(old_version=current_version)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/modules/janus/__init__.py", line 
94, in setup
    super().setup(old_version)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/app.py", line 154, in setup
    component.setup(old_version=old_version)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/plinth/package.py", line 192, in setup
    install(self.get_actual_packages(),
            ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/plinth/package.py", line 179, in 
get_actual_packages
    package_expression.actual()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3/dist-packages/plinth/package.py", line 79, in actual
    raise MissingPackageError(self.name)
plinth.errors.MissingPackageError: janus

Attempting manual instsll says:

This application is currently not available in your distribution.

So it appears that janus is no longer available.  I hope this is a
temporary situation, as I use it regularly.  On my production FreedomBox
it works just fine, but this would probably cause major problems if I
had to restore it.

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?

Is janus coming back? if not, is it possible to make the restore finish
without some missing app?

Thanks.

Augustine

_______________________________________________
Freedombox-discuss mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss

Reply via email to