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

Mixed Nix versions from host and hydra can cause forced upgrades to the Nix database. #43

Open
karltk opened this issue Sep 4, 2012 · 1 comment

Comments

@karltk
Copy link

karltk commented Sep 4, 2012

I am running Hydra on "Ubuntu 10.04.4 LTS" (lucid). The host has Nix 1.1-1 installed from the 1.1 release page, downloaded as a .deb for 10.04.

There is a mismatch between the libsqlite3 library used by the host Nix and the Nix inside the Hydra closure.

The "host" Nix links dynamically against libsqlite3.so version 3.6.22-1, as provided by Ubuntu 10.04.

The Nix inside the Hydra closure links against libsqlite3.so version 3.7.13.

After 3.7.0, sqlite3 supports Write-Ahead Logging, and this is incompatible with older versions of sqlite3.

AFAICT, installing and running Hydra will upgrade the sqlite3 datastore, rendering the host Nix installation unusable.

The simple workaround, just installing the Nix from Hydra's closure into the user-specific Nix profile works just fine, of course, but it's a bit surprising that this is necessary. I didn't see any prominently displayed warning about this breaking upgrade when I started the Hydra services.

@grahamc
Copy link
Member

grahamc commented May 8, 2020

This is a bit surprising indeed, maybe the docs should say something like "Your system's Nix should be the same as the Nix used to build Hydra." This problem could happen on NixOS just the same as Ubuntu or RHEL.

@grahamc grahamc changed the title error: setting synchronous mode: file is encrypted or is not a database Mixed Nix versions from host and hydra can cause forced upgrades to the Nix database. May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants