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

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

Closed
DavHau opened this issue Jun 28, 2024 · 4 comments
Closed

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

DavHau opened this issue Jun 28, 2024 · 4 comments
Labels
bug fetching Networking with the outside (non-Nix) world, input locking regression Something doesn't work anymore

Comments

@DavHau
Copy link
Member

DavHau commented Jun 28, 2024

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 👍 to issues you find important.

@DavHau DavHau added the bug label Jun 28, 2024
@roberth roberth added regression Something doesn't work anymore fetching Networking with the outside (non-Nix) world, input locking labels Jul 1, 2024
@edolstra
Copy link
Member

edolstra commented Jul 3, 2024

Try deleting /root/.cache/nix/fetcher-cache-v2.sqlite.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-07-03-nix-team-meeting-minutes-158/49097/1

@roberth
Copy link
Member

roberth commented Sep 13, 2024

Unfortunately something went wrong with the notes (previous comment), but iirc, we were unable to reproduce this, and we suspect that it may be related to running a development version; either an intermediate unreleased revision, or perhaps a branch like #6530.

As the issue is not actionable, I'll close it for now.

@roberth roberth closed this as completed Sep 13, 2024
@Montmorency
Copy link

I just ran in to this when bumping nix-darwin nixpkgs version in a flake:

    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";
    #nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-23.11-darwin";
error: creating statement 'insert or replace into Cache(domain, key, value, timestamp) values (?, ?, ?, ?)': SQL logic error, table Cache has no column named domain (in '/Users/lambert/.cache/nix/fetcher-cache-v2.sqlite')

removing: /Users/myusername/.cache/nix/fetcher-cache-v2.sqlite then meant the rebuild nix run nix-darwin -- switch --flake .#Enrico [0.0 MiB DL] just hanged.

Most nix functionality was broken at this stage (i.e. launching dev shells rebuilding nix-darwin etc.) Ended up doing a full reinstall of nix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fetching Networking with the outside (non-Nix) world, input locking regression Something doesn't work anymore
Projects
None yet
Development

No branches or pull requests

5 participants