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

Closed
grandynguyen opened this issue Jul 16, 2018 · 5 comments
Closed

WSL Nix installation db.sqlite is busy #2292

grandynguyen opened this issue Jul 16, 2018 · 5 comments

Comments

@grandynguyen
Copy link

@grandynguyen grandynguyen 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
Copy link
Author

@grandynguyen grandynguyen commented Jul 17, 2018

#1203 Seems to be the issue.

@rdbuf
Copy link

@rdbuf rdbuf 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
Copy link

@DanielFabian DanielFabian 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.

@razvan-flavius-panda
Copy link

@razvan-flavius-panda razvan-flavius-panda commented May 1, 2020

I used the method mentioned by @rdbuf, and it appeared to it was stuck for a very long time on Unpacking, but in the end, it finished successfully.

@domenkozar
Copy link
Member

@domenkozar domenkozar commented Jul 15, 2020

This is fixed in master and 2.3.6

@domenkozar domenkozar closed this Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants