Skip to content

Flaky qrexec-agent on vchan error #7598

@iacore

Description

@iacore

Qubes OS release

r4.1

Brief summary

Sometimes (regular enough), when starting up system, I cannot open any GUI app.

By connecting to console using display DVM, I found the error

> cat ~/.xsession-errors
....
Not in GuiVM or dom0. Exiting.
qrexec-fork-server[xxx]: qrexec-agent-data.c: vchan connect error
qrexec-fork-server[xxx]: qrexec-agent-data.c: vchan connect error
qrexec-fork-server[xxx]: qrexec-agent-data.c:159:handle_just_exec: executed (nowait): QUBESRPC qubes.StartApp+xfce4-terminal dom0 (pid 1262)

One way to "fix" this is to run systemctl restart qubes-gui-agent, and it works immediately. Even the app previous I want to open (Application Finder in dom0) opens without any request. This only worked sometimes.

I read the logs with sudo journalctl -xeu qubes-gui-agent, but I cannot find any error there.

I suspect this is another race condition, when "qubes-guishould start beforeqrexec-fork-server`, or vice versa.

Steps to reproduce

This is difficult.

  1. install this modified branch Fix focus handling (attempt 2) qubes-gui-agent-linux#154.
  2. install a new version of "qubes-gui-agent.xxxxx.tar.zst" in arch linux AppVM
  3. shutdown 0
  4. Start any app using Application Finder from dom0

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: gui-virtualizationThis issue pertains to GUI virtualization in Qubes OS.P: defaultPriority: default. Default priority for new issues, to be replaced given sufficient information.affects-4.1This issue affects Qubes OS 4.1.eol-4.1This issue has been closed because Qubes OS 4.1 has reached end of life (EOL).

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions