Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky qrexec-agent on vchan error #7598

Closed
iacore opened this issue Jul 2, 2022 · 2 comments
Closed

Flaky qrexec-agent on vchan error #7598

iacore opened this issue Jul 2, 2022 · 2 comments
Labels
affects-4.1 This issue affects Qubes OS 4.1. C: gui-virtualization eol-4.1 Closed because Qubes 4.1 has reached end-of-life (EOL) P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@iacore
Copy link

iacore commented Jul 2, 2022

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
@iacore iacore added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. labels Jul 2, 2022
@andrewdavidwong andrewdavidwong added C: gui-virtualization needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels Jul 4, 2022
@andrewdavidwong andrewdavidwong added this to the Release 4.1 updates milestone Jul 4, 2022
@iacore
Copy link
Author

iacore commented Jul 5, 2022

So, when the AppVM is still starting up, if I try to open an app, something seem to be broken until restart.

One thing I realized is that qrexec-fork-server is not running as user user when this bug happens. It's running as root instead.
This maybe due to some logic like "if qrexec-fork-server is not running, start it", but it was started as wrong user.

Again, checking logs is useless, as it has no useful info.

@DemiMarie DemiMarie self-assigned this Jul 5, 2022
@andrewdavidwong andrewdavidwong added the affects-4.1 This issue affects Qubes OS 4.1. label Aug 8, 2023
@andrewdavidwong andrewdavidwong removed this from the Release 4.1 updates milestone Aug 13, 2023
@DemiMarie DemiMarie removed their assignment Mar 6, 2024
@andrewdavidwong andrewdavidwong added eol-4.1 Closed because Qubes 4.1 has reached end-of-life (EOL) and removed needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels Dec 7, 2024
Copy link

github-actions bot commented Dec 7, 2024

This issue is being closed because:

If anyone believes that this issue should be reopened, please leave a comment saying so.
(For example, if a bug still affects Qubes OS 4.2, then the comment "Affects 4.2" will suffice.)

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.1 This issue affects Qubes OS 4.1. C: gui-virtualization eol-4.1 Closed because Qubes 4.1 has reached end-of-life (EOL) P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

No branches or pull requests

3 participants