Skip to content

Running a build at a runtime with a RocksDB database fails #37

Description

@kriszyp

When the nextjs plugin runs a build, nextjs spawns a new process to do the SSG build, and that process can try to access the database which fails because RocksDB does not support multi-process access. The error is:

Error: IO error: While lock file: /user.../hdb/database/system/LOCK: Resource temporarily unavailable opening database

We can look into trying to run nextjs builds in worker thread (reproduce the command line execution). Or the alternate resolution to that is probably to implement HarperFast/rocksdb-js#490 and then implement support for falling back to read-only mode in Harper, so that nextjs can do the build.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions