-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
nixops deploys wrong schema #603
Comments
@basvandijk Is this after the initial reboot (so after the bootstrapping of nixos via the rescue system?) |
@aszlig Have you seen this before? @basvandijk I will try to reproduce with 16.09 today. |
@basvandijk Is this with nixops 1.4 btw? |
I think this should be the issue: nixops/nix/hetzner-bootstrap.nix Line 83 in c3b164a
|
@aszlig So this bootstrap gets built with a different nixpkgs, I guess (from NIX_PATH of the nixops process) ? |
@aszlig will test that, thanks. |
Great, I see you guys already spotted the problem. @rbvermaa let me still answer your initial questions:
|
@basvandijk Although I think the solution that aszlig mentions, will fix the issue for you, I haven't been able to reproduce the issue with nixops 1.4 and nixos-16.09 yet. Could you run one more command and post the output:
Please run this with the same NIX_PATH env variable as your nixops call (note that if you use -I to pass nixops a different nixpkgs, I do not need this one) |
@rbvermaa the output is {
"url": "https://github.com/NixOS/nixpkgs.git",
"rev": "cd58b22b178cb01e17aeac548279293a847162f9",
"date": "2017-02-06T20:06:19+01:00",
"sha256": "0b5z38jm5b58pijjxyhlzisyna3x362rr7ijklnrnkggipxd32sx"
} |
I just ran into this issue, too. I deploy to Hetzner. Initial deployment works. I stumbled over the error pasted by the OP after doing
|
Sounds like this is fixed in 08d5156 |
This appears to be fixed as said. Please reopen if issue persits. |
I just provisioned a new machine on Hetzner with nixops. After the initial successful deployment I did another deployment during which I got the following error:
Note that I'm using
nixos-16.09
and I haven't overriddennix
withnixUnstable
or anything. Onhermes
I'm using the following version of the nix tools:The Nix schema on
hermes
is indeed 10 (on my workstation it's 7):After removing
/nix/var/nix/db/schema
the deployment went successful and the schema was back at 7:Any idea what's going on?
The text was updated successfully, but these errors were encountered: