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

flakes: SQLite database is busy #3794

Closed
manveru opened this issue Jul 8, 2020 · 0 comments
Closed

flakes: SQLite database is busy #3794

manveru opened this issue Jul 8, 2020 · 0 comments
Assignees
Labels

Comments

@manveru
Copy link
Contributor

manveru commented Jul 8, 2020

Describe the bug

Running two (or more) builds of the same flake in parallel will result in an error like this:

SQLite database '/home/manveru/.cache/nix/eval-cache-v1/7bfed1c712ac845ecca1eebf57ba6b5c5f4571c0b7a204c10dcbb6ee21ceb5ce.sqlite' is busy

Steps To Reproduce

  1. Pick any flake
  2. Make it evaluate in parallel (before it is cached)
  3. See error

Expected behavior

Just like with normal builds, I'd like Nix to wait for the DB to be unlocked.

nix --version output

nix (Nix) 2.4pre20200622_334e26b

Additional context

There is no good way to catch this error and retry without parsing the output. So instead you have to do an eval first and hope nothing changes in-between that might cause re-evaluation.

@manveru manveru added the bug label Jul 8, 2020
@edolstra edolstra self-assigned this Jul 8, 2020
edolstra added a commit that referenced this issue Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants