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

Unable to run container with readOnlyRootFilesystem and "nodeModulesDir": "auto" #446

Open
M4RC3L05 opened this issue Jan 31, 2025 · 0 comments

Comments

@M4RC3L05
Copy link

Like the title says, running the a deno docker container that uses node_module with "nodeModulesDir": "auto" on a read only root file system seems to be giving me errors like:

podman run --rm -it --read-only docker.io/maingufu/rss-hub:latest deno run -A --cached-only --unstable-npm-lazy-caching src/apps/api/main.ts
Could not initialize cache database '/deno-dir/dep_analysis_cache_v2', deleting and retrying... (SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file")))
Could not initialize cache database '/deno-dir/node_analysis_cache_v2', deleting and retrying... (SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file")))
Could not initialize cache database '/deno-dir/v8_code_cache_v2', deleting and retrying... (SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file")))
Failed to open cache file '/deno-dir/v8_code_cache_v2', performance may be degraded.
Failed to open cache file '/deno-dir/node_analysis_cache_v2', opening in-memory cache.
Failed to open cache file '/deno-dir/dep_analysis_cache_v2', opening in-memory cache.
error: File exists (os error 17), symlink '../../[email protected]/node_modules/normalize-url' -> '/app/node_modules/.deno/@[email protected]/node_modules/normalize-url'

And if i remove the nodeModulesDir from deno.json our setting it to none, will run ok.
Is deno incompatible, or do we have lower performace while running with readOnlyRootFilesystem enabled?

@M4RC3L05 M4RC3L05 changed the title Unable to run container with readOnlyRootFilesystem and "nodeModulesDir": "auto", Unable to run container with readOnlyRootFilesystem and "nodeModulesDir": "auto" Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant