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
DispVM functionality is broken #705
Comments
I can repro on prod. If I attempt to open a file like so in I observe the following
|
If I change the policy line to |
also dispvm logs (not super useful but including to help us get a complete picture):
|
The This is handled here in the provisioning logic: @creviera @conorsch Do you see the same symlink error on your system? |
yup, i can confirm i'm seeing the same thing. looks like perhaps we're hitting this else clause:
|
If I delete the symlink and run |
I just performed a clean prod install, and the symlink is correct, and DispVMs are working as intended. Looks like we've found the culprit, although it seems the salt grains logic is failing only intermittently. Was going to ask you to rerun When I run |
I also see |
I get that consistently if I just keep re-running the command. I wonder if it's a boot race condition? I'll try shutting down sd-viewer as well between runs... |
The grain I'll do one more |
To clarify, are you seeing that Right now I'm testing this patch locally diff --git a/dom0/sd-mime-handling.sls b/dom0/sd-mime-handling.sls
index 664ef3a..1bcd903 100644
--- a/dom0/sd-mime-handling.sls
+++ b/dom0/sd-mime-handling.sls
@@ -20,7 +20,8 @@ sd-private-volume-mimeapps-config-dir:
- makedirs: True
- mode: "0755"
-{% if grains['id'] in ["sd-viewer", "sd-app", "sd-devices-dvm"] %}
+{% set vm_name = salt['cmd.shell']('qubesdb-read /name') %}
+{% if vm_name in ["sd-viewer", "sd-app", "sd-devices-dvm"] %}
sd-private-volume-mimeapps-handling:
file.symlink: Which seems to work well. Take it for a spin on your machine if you're still seeing problems. |
Yes.
|
this is also happening to me on a |
I reduced the
During 4
If y'all can reproduce that, it may be worth digging further into how concurrency interacts with the |
we can close this now that #708 is merged |
When opening files in the SecureDrop Client recently, I observed DispVMs failing to display documents.
Steps to reproduce
Expected results
DispVM displays the document requested, and remains open until I close the window
Actual results
DispVM never displays the document, and closes immediately.
More info
Reported earlier in freedomofpress/qubes-template-securedrop-workstation#20 (comment), but warrants its own issue. I suspect that mimetype associations are to blame, will start investigating logs.
The text was updated successfully, but these errors were encountered: