Skip to content

Deno cache directory lock contention failure #16

@lrowe

Description

@lrowe

Came across this writing tests which are run with deno. Not a problem when I remove kvmserver from the mix and run the deno subprocess directly. I assume we must be missing some functionality here in the way file locking is implemented.

$ deno
Deno 2.3.5
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> using proc = new Deno.Command("sh", { args: ["-c", `exec /home/lrowe/devel/kvmserver/.build/kvmserver --allow-all --  deno run --allow-all --v8-flags=--single-threaded 'data:,Deno.serve(() => new Response("Hello, World!"))'`] }).spawn()
undefined

# After about 20 seconds
> Could not initialize cache database '/home/lrowe/.cache/deno/dep_analysis_cache_v2', deleting and retrying... (SqliteFailure(Error { code: FileLockingProtocolFailed, extended_code: 15 }, Some("locking protocol")))
Failed to open cache file '/home/lrowe/.cache/deno/dep_analysis_cache_v2', opening in-memory cache.
Could not initialize cache database '/home/lrowe/.cache/deno/node_analysis_cache_v2', deleting and retrying... (SqliteFailure(Error { code: FileLockingProtocolFailed, extended_code: 15 }, Some("locking protocol")))
Failed to open cache file '/home/lrowe/.cache/deno/node_analysis_cache_v2', opening in-memory cache.

# After about a minute
Listening on http://0.0.0.0:8000/ (http://localhost:8000/)
Program '/home/lrowe/.deno/bin/deno' loaded. epoll vm=1 huge=0/0 init=60328ms rss=131MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions