[Nix-dev] hydra build fails on unstable localhost

stewart mackenzie setori88 at gmail.com
Tue Apr 7 16:12:00 CEST 2015


Okay this is great progress.

Moritz, thanks for that info, I did as you suggested, then switched.

but exactly the same errors appeared:

[root at server:~]
$ hydra-create-user sjm --password 123 --role admin
DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception:
DBD::SQLite::db prepare_cached failed: no such table: Users [for
Statement "SELECT me.username, me.fullname, me.emailaddress,
me.password, me.emailonerror, me.type FROM Users me WHERE (
me.username = ? )"] at
/nix/store/kmijnwfpc24kjsj4nxl1qly7ba5dfvj3-hydra-0.1pre1234-abcdef/bin/.hydra-create-user-wrapped
line 56

[root at server:~]
$ su hydra

[hydra at server:~]
$ hydra-create-user sjm --password 123 --role admin
Can't locate strict.pm:   Permission denied at
/nix/store/kmijnwfpc24kjsj4nxl1qly7ba5dfvj3-hydra-0.1pre1234-abcdef/bin/.hydra-create-user-wrapped
line 3.
BEGIN failed--compilation aborted at
/nix/store/kmijnwfpc24kjsj4nxl1qly7ba5dfvj3-hydra-0.1pre1234-abcdef/bin/.hydra-create-user-wrapped
line 3.

I hope this rings a bell for someone.

/sjm

On Tue, Apr 7, 2015 at 10:03 PM, Moritz Ulrich <moritz at tarn-vedra.de> wrote:
>
> This isn't related to your original issue, but I've noticed something
> regarding your 'authentication' string:
>
> Nix merges multiple strings for an attribute together. That means your
> 'authentication' attribute is appended (prepended?) to the default
> value. Therefore it is overriden by the default stuff (which sets
> 'md5').
>
> You need to do something like this (notice lib.mkForce):
>
> ```
> authentication = pkgs.lib.mkForce ''
>   host all all 127.0.0.1/32 trust
>   local all all trust
> '';
> ```


More information about the nix-dev mailing list