Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Relocated store URI is reported as 'local', wrong #11873

Open
roberth opened this issue Nov 13, 2024 · 1 comment
Open

Relocated store URI is reported as 'local', wrong #11873

roberth opened this issue Nov 13, 2024 · 1 comment
Labels
bug error-messages Confusing messages and better diagnostics store Issues and pull requests concerning the Nix store

Comments

@roberth
Copy link
Member

roberth commented Nov 13, 2024

Describe the bug

The store location in an error message is wrong. See steps.

Steps To Reproduce

There's probably an easier way to trigger this.

  1. Choose or make an unimportant store path <path>
  2. Back up a store path with nix copy --to ~/recoverstore <path>
  3. Corrupt the original store path by mounting the system store file system rw and deleting it from the file system. Do not delete it from the store db; we want that entry to remain.
  4. sudo nix store repair --extra-substituters ~/recoverstore --extra-trusted-substituters ~/recoverstore <path> (the latter option seems to have no effect; need ?trusted=true; different issue)

Observe a message like

warning: ignoring substitute for '/nix/store/nzb7spdhiy30ikv1crnk8dgl0svyjgw4-libunistring-1.2' from 'local', as it's not signed by any of the keys in 'trusted-public-keys'

Expected behavior

warning: ignoring substitute for '/nix/store/nzb7spdhiy30ikv1crnk8dgl0svyjgw4-libunistring-1.2' from '/root/recoverstore', as it's not signed by any of the keys in 'trusted-public-keys'

nix-env --version output

2.24.10

Additional context

Priorities

Add 👍 to issues you find important.

@roberth roberth added bug error-messages Confusing messages and better diagnostics store Issues and pull requests concerning the Nix store labels Nov 13, 2024
@Ericson2314
Copy link
Member

Yeah I think it doesn't render query params, and that is the normal form. Maybe my store reference cleanup branches can help with this...

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug error-messages Confusing messages and better diagnostics store Issues and pull requests concerning the Nix store
Projects
None yet
Development

No branches or pull requests

2 participants