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

WSL Nix installation db.sqlite is busy #2292

Open
grandynguyen opened this issue Jul 16, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@grandynguyen
Copy link

commented Jul 16, 2018

On a fresh install of Ubuntu on WSL when I run:

curl https://nixos.org/nix/install | sh

I get:

 % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2472  100  2472    0     0   1892      0  0:00:01  0:00:01 --:--:--  1891
downloading Nix 2.0.4 binary tarball for x86_64-linux from 'https://nixos.org/releases/nix/nix-2.0.4/nix-2.0.4-x86_64-linux.tar.bz2' to '/tmp/nix-binary-tarball-unpack.eyxxE5LXqk'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21.0M  100 21.0M    0     0   898k      0  0:00:23  0:00:23 --:--:-- 1487k
performing a single-user installation of Nix...
directory /nix does not exist; creating it by running 'mkdir -m 0755 /nix && chown grandy /nix' using sudo
[sudo] password for grandy:
copying Nix to /nix/store...............................
initialising Nix database...
Nix: creating /home/grandy/.nix-profile
installing 'nix-2.0.4'
building '/nix/store/9v9rz64kdblx991qw8q7472yhisz0rs2-user-environment.drv'...
created 6 symlinks in user environment
killing process 247: No such process
unpacking channels...
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy (SQLITE_PROTOCOL)
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy (SQLITE_PROTOCOL)
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy (SQLITE_PROTOCOL)
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy (SQLITE_PROTOCOL)
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy (SQLITE_PROTOCOL)
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy (SQLITE_PROTOCOL)

I tried waiting 10 minutes. Will leave it running while I'm away.

@grandynguyen

This comment has been minimized.

Copy link
Author

commented Jul 17, 2018

#1203 Seems to be the issue.

@rdbuf

This comment has been minimized.

Copy link

commented Dec 4, 2018

So, current workaround is such:

sudo mkdir /etc/nix; echo 'use-sqlite-wal = false' | sudo tee -a /etc/nix/nix.conf && sh <(curl https://nixos.org/nix/install)
@DanielFabian

This comment has been minimized.

Copy link

commented Apr 24, 2019

I think this is a duplicate of #2651 now. Following the two workarounds (sqlite-wal and sandbox) got it to work on WSL for me today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.