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

error: profile manifest '/nix/var/nix/profiles/per-user/teto/profile/manifest.json' has unsupported version 3 #10628

Open
teto opened this issue Apr 30, 2024 · 4 comments
Labels
feature Feature request or proposal

Comments

@teto
Copy link
Member

teto commented Apr 30, 2024

Is your feature request related to a problem? Please describe.
Trying to install a program on nixos with nix 2.21.2 I get

[nix-shell:~/.cache/nixpkgs-review/pr-307576-1]$ nix profile install ./results/warp-terminal
error: profile manifest '/nix/var/nix/profiles/per-user/teto/profile/manifest.json' has unsupported version 3

Describe the solution you'd like
The message could be improved first to mention if it's unsupported because tool old or too recent. Alternatively list supported versions.
Also it could show a way out (downgrade/upgrade nix version).

Describe alternatives you've considered
I can't edit the file because store is readonly else I would have set the manifest to 2.

Additional context
I am a bit at a loss there as I am using the same nix throughout, so the one that created that manifest now tells me it can't list it ?

Priorities

Add 👍 to issues you find important.

@teto teto added the feature Feature request or proposal label Apr 30, 2024
@edolstra
Copy link
Member

This is surprising because manifest version 3 has been supported since Nix 2.20.

@bobvanderlinden
Copy link
Member

@teto is this still a problem?
All older versions of manifest.json should be supported by newer versions of Nix. Nix will automatically upgrade the manifest.json if needed. It just doesn't downgrade when using an older version of Nix.

If it's still a problem it might help to list the version of Nix:

$ nix profile install ./results/warp-terminal
error: profile manifest '/nix/var/nix/profiles/per-user/teto/profile/manifest.json' has unsupported version 3
$ nix --version

@teto
Copy link
Member Author

teto commented May 13, 2024

it still happens, on several computers (more or less same config). I've listed the version in my previous ticket but I was just able to reproduce with nix (Nix) 2.22.0. I use home-manager if that helps.
Here is the manifest. If that helps I can reduce it:

cat /nix/var/nix/profiles/per-user/teto/profile/manifest.json
{"elements":{"aichat":{"active":true,"attrPath":"legacyPackages.x86_64-linux.aichat","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/bpdyvr51gkn66rgzkb9c8bpy6s3bdgr6-aichat-0.16.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"cargo":{"active":true,"attrPath":"legacyPackages.x86_64-linux.cargo","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/4ry19b6xvzqf98fhq8ijk6zpxv13a483-cargo-1.77.1"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"ddcui":{"active":true,"attrPath":"legacyPackages.x86_64-linux.ddcui","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/aclxi5a3r9mfv5l615d811ibjz4xxvsa-ddcui-0.5.4"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"gh-dash":{"active":true,"priority":5,"storePaths":["/nix/store/l5np3x2g6k4vvxxgpjyhnjv1mxsnffj9-gh-dash-3.13.0"]},"git-repo-manager":{"active":true,"attrPath":"packages.x86_64-linux.git-repo-manager","originalUrl":"github:colemickens/nixcfg","outputs":null,"priority":5,"storePaths":["/nix/store/jf5yzjqwzkkh9p7x9hr4k92zs0jsyiqf-git-repo-manager-0.7.16-unstable-2024-04-27"],"url":"github:colemickens/nixcfg/2bbfb3d563a8fb89bceb6ac7a7e73b8f601d1ed4?narHash=sha256-Oqtp2cLlqC9SLi36zmnN58iNPw55ULuoeqZFXk5bzkM%3D"},"git-revise":{"active":true,"attrPath":"legacyPackages.x86_64-linux.git-revise","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/86cx08py46acxc615cnchcfxc5mri2sx-python3.11-git-revise-0.7.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=5a49142f7fbc33e42b0b4fe948f53164b8e4dd32"},"gitui":{"active":true,"attrPath":"legacyPackages.x86_64-linux.gitui","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/zvj4qhq346qyfhl9yh0d183jkcmlq7j2-gitui-0.26.1"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"gnupg":{"active":true,"attrPath":"legacyPackages.x86_64-linux.gnupg","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/5kk1414f5iadlz9b7vnbg5dlk6icryjl-gnupg-2.4.5"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"gparted":{"active":true,"attrPath":"legacyPackages.x86_64-linux.gparted","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/iql37r18dxnwak7syibaqdh6x9iazqrj-gparted-1.6.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=5a49142f7fbc33e42b0b4fe948f53164b8e4dd32"},"komikku":{"active":true,"priority":5,"storePaths":["/nix/store/sjki8x8ix25n1nxjm807xxs1q6pz57yx-komikku-1.29.0"]},"libreoffice":{"active":true,"attrPath":"legacyPackages.x86_64-linux.libreoffice","originalUrl":"flake:nixpkgs","outputs":null,"priority":-10,"storePaths":["/nix/store/vfb17gx6y2wmcmkwy0rpwbdla56xw4wy-libreoffice-7.5.9.2-wrapped"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"lutris":{"active":true,"attrPath":"legacyPackages.x86_64-linux.lutris","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/sa66n7i9i03ivh6260khjyjfwm0mjby9-lutris"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nix-doc":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nix-doc","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/v7hl0siq0x363sl9m0iyynx82hhn4jlb-nix-doc-0.6.5"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nix-output-monitor":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nix-output-monitor","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/l090fngr29b3j6k3blb05l4f8qy8379m-nix-output-monitor-2.1.2"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nix-universal-prefetch":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nix-universal-prefetch","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/84nvba94vcya6klxik9yw51m47q2hgjv-nix-universal-prefetch-0.4.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"nurl":{"active":true,"attrPath":"legacyPackages.x86_64-linux.nurl","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/rjqb0f1710j8i3a158agyi5bzx20c3pq-nurl-0.3.13"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"ov":{"active":true,"attrPath":"legacyPackages.x86_64-linux.ov","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/00ajp3vah5r9bn208z5644lagc525ay0-ov-0.34.1"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=5a49142f7fbc33e42b0b4fe948f53164b8e4dd32"},"podman-tui":{"active":true,"attrPath":"legacyPackages.x86_64-linux.podman-tui","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/3mh4sh05jja8whymvsywvjbd9qs8717i-podman-tui-1.0.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"popcorntime":{"active":true,"attrPath":"legacyPackages.x86_64-linux.popcorntime","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/sdcnn8c14aan8m3sgj24zvk0mlap9942-popcorntime-0.5.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"process-compose":{"active":true,"attrPath":"legacyPackages.x86_64-linux.process-compose","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/xiqwdkk4blifr86rgvsh03g0rs36qv2n-process-compose-1.2.0"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"},"star-history":{"active":true,"attrPath":"legacyPackages.x86_64-linux.star-history","originalUrl":"git+file:///home/teto/nixpkgs3","outputs":null,"priority":5,"storePaths":["/nix/store/wgb225iw4kq7l9v0fmqn9gmhk51m6zcc-star-history-1.0.21"],"url":"git+file:///home/teto/nixpkgs3?ref=refs/heads/teto/update-lua-packages&rev=fc0af66e43676db32097fefb42a850095619784e"},"sway-easyfocus-unstable":{"active":true,"priority":5,"storePaths":["/nix/store/zzhqhcni6cwgsxxwapn8f9zyd40g9qqs-sway-easyfocus-unstable-2023-11-05"]},"view_json":{"active":true,"attrPath":"packages.x86_64-linux.view_json","originalUrl":"git+file:///home/teto/nova/jinko/dev","outputs":null,"priority":5,"storePaths":["/nix/store/cly4fr2qkp2dz4nr2ds3hpbca6vp94lx-view_json"],"url":"git+file:///home/teto/nova/jinko/dev?ref=refs/heads/matt/more-trial-metrics&rev=4adbaeb5a80fd6aa9de84b79463e272b1ed536a4"},"vlc":{"active":true,"attrPath":"legacyPackages.x86_64-linux.vlc","originalUrl":"flake:nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/baxb0m4453wnpfhdl6mcxvinp17wfwhg-vlc-3.0.20"],"url":"path:/nix/store/ql6i40glyqwilcpp2rnlb16xrqdp626g-source?lastModified=0&narHash=sha256-Y/3PNcPOHKeDEWAl1nA8OWPvipVslj9eibbX6AINDQk%3D"},"xdg-terminal-exec-unstable":{"active":true,"priority":5,"storePaths":["/nix/store/cdygis986l0pp43iyjh9k79kl9d63i6a-xdg-terminal-exec-unstable-2023-12-08"]},"ytfzf":{"active":true,"attrPath":"legacyPackages.x86_64-linux.ytfzf","originalUrl":"git+file:///home/teto/nixpkgs","outputs":null,"priority":5,"storePaths":["/nix/store/wd5m1g8wmixx1c97dllfxs4rsblxzpnq-ytfzf-2.6.2"],"url":"git+file:///home/teto/nixpkgs?ref=refs/heads/nixos-unstable&rev=bca312de5a21eee623f0a6f8832121db381b9c67"}},"version":3}

@fabianhjr
Copy link
Member

Recently got this issue on nixos with home-manager:

fabian@nixos ~/D/O/n/main (main) [1]> home-manager -I "nixpkgs=$PWD" switch --keep-going
/nix/store/4mwvnf1h075c6hknpqwfga8s6c1i5w3j-home-manager-generation
Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating linkGeneration
Cleaning up orphan links from /home/fabian
No change so reusing latest profile generation 213
Creating home file links in /home/fabian
Activating batCache
No themes were found in '/home/fabian/.config/bat/themes', using the default set
No syntaxes were found in '/home/fabian/.config/bat/syntaxes', using the default set.
Writing theme set to /home/fabian/.cache/bat/themes.bin ... okay
Writing syntax set to /home/fabian/.cache/bat/syntaxes.bin ... okay
Writing metadata to folder /home/fabian/.cache/bat ... okay
Activating installPackages
error: profile manifest '/nix/var/nix/profiles/per-user/fabian/profile/manifest.json' has unsupported version 3
error: profile manifest '/nix/var/nix/profiles/per-user/fabian/profile/manifest.json' has unsupported version 3

Oops, Nix failed to install your new Home Manager profile!

Perhaps there is a conflict with a package that was installed using
"nix profile install"? Try running

    nix profile list

and if there is a conflicting package you can remove it with

    nix profile remove {number | store path}

Then try activating your Home Manager configuration again.
fabian@nixos ~/D/O/n/main (main) [1]> nix profile list
error: profile manifest '/nix/var/nix/profiles/per-user/fabian/profile/manifest.json' has unsupported version 3
fabian@nixos ~/D/O/n/main (main) [1]> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

4 participants