-
-
Notifications
You must be signed in to change notification settings - Fork 416
gvisor: Sandbox unexpectedly exited #1563
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
Comments
Maybe it does not run correctly on the ARM CPU, however, it says |
When Grist starts up, it makes a sandbox instance, loads a bunch of code into it, makes a checkpoint, and then copies that checkpoint when it actually needs any sandboxes. This shaves off maybe half a second of startup time. When working with this initial sandbox, there is an ugly message that we really should clean up, I'm sorry about it. If in your admin panel the sandbox check is showing green, then gvisor is passing a self check. |
@paulfitz Maybe its worth exploring other techniques to isolate workspaces, e.g. docker in docker. Since this is a security setting. I think Grist should not continue if the sandbox does not come up. So I advise converting the issue to a bug and improve the behavior in this case. |
@cruftex was the admin panel showing green for gvisor when it was not in fact working? That's serious. What is your cloud provider? If you have some control over capabilities, check the PTRACE capability. There are alternatives to gvisor. The easiest to deploy is pyodide. setting |
No, in the admin panel it showed correctly. My problem is with the confusing messaging at startup. It should be more explicit that Gvisor is not available and, if I specify Gvisor and its not working, it would be actually best not to continue, since the specified security level is not met. Thanks for the hint about the alternative sandboxing settings. I did not know there are alternatives to Gvisor available. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the current behavior
I am trying to enable gvisor sandbox on a self hosted environment.
I see the following warning in my log message:
However, the startup continues normally.
Is the sandbox active?
Should this be disregarded?
If the sandbox is not active: Shouldn't this be a hard error, if the sandbox cannot be established, but requested?
Here is the complete beginning of the startup log:
Steps to reproduce
docker compose up
Describe the expected behavior
No warning.
Where have you encountered this bug?
Instance information (when self-hosting only)
The text was updated successfully, but these errors were encountered: