Skip to content

qubes-update-gui crashes upon restart of running qubes with updated templates #10045

@PeterLacknase

Description

@PeterLacknase

Qubes OS release

Qubes OS 4.2.4

Brief summary

root# qubes-update-gui 

Exception in thread Thread-7 (perform_restart):
Traceback (most recent call last):
  File "/usr/lib64/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.11/site-packages/qui/updater/summary_page.py", line 297, in perform_restart
    self.shutdown_domains(tmpls_to_shutdown)
  File "/usr/lib/python3.11/site-packages/qui/updater/summary_page.py", line 320, in shutdown_domains
    loop = asyncio.get_event_loop()
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/asyncio/events.py", line 677, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-7 (perform_restart)'.

Steps to reproduce

  1. run qubes-update-gui from dom0 terminal
  2. update qubes
  3. select qubes with updated templates and click the next button

Expected behavior

The qubes should get restarted.

Actual behavior

The updater crashes with the above shown terminal output.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions