NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.45k stars 1.44k forks source link

fetcher cache sqlite error: table Cache has no column named domain #10985

Open DavHau opened 3 days ago

DavHau commented 3 days ago

I ran into this issue since upgrading from 2.20 to 2.23.1.

Error:

> sudo nixos-rebuild --flake . switch
[sudo] password for grmpf: 
warning: Git tree '/home/grmpf/synced/projects/hyperconfig' is dirty
error:
       … while fetching the input 'git+file:///home/grmpf/synced/projects/hyperconfig'

       error: creating statement 'insert or replace into Cache(domain, key, value, timestamp) values (?, ?, ?, ?)': SQL logic error, table Cache has no column named domain (in '/root/.cache/nix/fetcher-cache-v2.sqlite')

deleting {root,$HOME}/.cache/nix fixes the issue

Priorities

Add :+1: to issues you find important.