fix: fail CLI edit if shared memory is not available#7921
Merged
Conversation
marimo edit today requires shared memory; this change updates the CLI to exit with an informative error if we detect that shared memory is not available This fixes an issue in which running marimo on minimal sandboxes that don't have /dev/shm led to a confusing error state, with the frontend repeatedly failing to connect.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
for more information, see https://pre-commit.ci
…github.com:marimo-team/marimo into aka/fix-fail-fast-when-shared-memory-not-available
mscolnick
reviewed
Jan 21, 2026
| " - If running in Docker, ensure /dev/shm is mounted with sufficient size\n" | ||
| " (e.g., --shm-size=256m or -v /dev/shm:/dev/shm)\n" | ||
| " - If /dev/shm is full, clear unused shared memory segments\n" | ||
| " - Use 'marimo run' instead if you only need to view notebooks" |
Contributor
There was a problem hiding this comment.
another option is to warn and then disable virtualfiles (we do support disabling virtual files and it will inline data)
Contributor
Author
There was a problem hiding this comment.
Oh interesting. I think this is fine for now, but if someone opens an issue we can consider
mscolnick
approved these changes
Jan 21, 2026
Contributor
Author
|
Failing test looks unrelated (this PR does not have API changes) |
botterYosuke
pushed a commit
to botterYosuke/marimo
that referenced
this pull request
Jan 22, 2026
marimo edit today requires shared memory; this change updates the CLI to exit with an informative error if we detect that shared memory is not available This fixes an issue in which running marimo on minimal sandboxes that don't have /dev/shm led to a confusing error state, with the frontend repeatedly failing to connect. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
botterYosuke
pushed a commit
to botterYosuke/marimo
that referenced
this pull request
Jan 23, 2026
marimo edit today requires shared memory; this change updates the CLI to exit with an informative error if we detect that shared memory is not available This fixes an issue in which running marimo on minimal sandboxes that don't have /dev/shm led to a confusing error state, with the frontend repeatedly failing to connect. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
marimo edit today requires shared memory; this change updates the CLI to exit with an informative error if we detect that shared memory is not available
This fixes an issue in which running marimo on minimal sandboxes that don't have /dev/shm led to a confusing error state, with the frontend repeatedly failing to connect.