[Nix-dev] hydra build fails on unstable localhost

stewart mackenzie setori88 at gmail.com
Tue Apr 7 16:03:55 CEST 2015


Okay I'll update my localhost, the server compiles and tests pass, so
I'll focus on the next issue... being a hydra-create-user issue:

    postgresql = {
       enable = true;
       package = pkgs.postgresql;
       dataDir = "/var/db/postgresql";
       authentication = ''
         # Generated file; do not edit!
         local all all                trust
         host  all all 127.0.0.1/32   trust
       '';
     }

Now I've dropped the db and the user, recreated both:

# createuser hydra -P
# createdb -O hydra hydra
# echo "grant all on database hydra to hydra;" | psql hydra

then issued the below commands

[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:/root]
$ 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.

Some light on this issue would be great!

> You need a newer version of nixUnstable. A sufficiently new version is provided
> by both the Nixpkgs 14.12 and master branches.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/


More information about the nix-dev mailing list