"DBIx::Class::Schema" is empty
tbenst opened this issue · comments
So I think this is a hydra issue, but cross-posting here: NixOS/hydra#696
When I call hydra-init
, I get the following error:
Base class package "DBIx::Class::Schema" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in @INC (@INC contains: /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/libexec/hydra/lib /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydra-perl-deps/lib/perl5/site_perl/5.30.0/x86_64-linux-thread-multi /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydra-perl-deps/lib/perl5/site_perl/5.30.0 /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydra-perl-deps/lib/perl5/site_perl /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl/5.30.0/x86_64-linux-thread-multi /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl/5.30.0 /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydra-perl-deps/lib/perl5/site_perl/5.30.0/x86_64-linux-thread-multi /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydra-perl-deps/lib/perl5/site_perl/5.30.0 /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydra-perl-deps/lib/perl5/site_perl /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl/5.30.0/x86_64-linux-thread-multi /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl/5.30.0 /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl/5.30.0/x86_64-linux-thread-multi /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/site_perl/5.30.0 /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/5.30.0/x86_64-linux-thread-multi /nix/store/3adfpfcpcf8vwm3ncsg5h4dlki7xkmsb-perl-5.30.0/lib/perl5/5.30.0).
at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/libexec/hydra/lib/Hydra/Schema.pm line 10.
BEGIN failed--compilation aborted at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/libexec/hydra/lib/Hydra/Schema.pm line 10.
Compilation failed in require at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/bin/.hydra-init-wrapped line 4.
BEGIN failed--compilation aborted at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/bin/.hydra-init-wrapped line 4.
On startup of hydra-init.service
, I get the following error:
> journalctl -u hydra-init
Dec 10 01:50:27 hydra-server systemd[1]: Starting hydra-init.service...
Dec 10 01:50:27 hydra-server sudo[2715]: root : TTY=unknown ; PWD=/ ; USER=postgres ; COMMAND=/nix/store/46xc51hfqc493zbd4kr2abw07h19y0zd-postgresql-11.6/bin/createuser hydra
Dec 10 01:50:27 hydra-server sudo[2715]: pam_unix(sudo:session): session opened for user postgres by (uid=0)
Dec 10 01:50:27 hydra-server sudo[2715]: pam_unix(sudo:session): session closed for user postgres
Dec 10 01:50:27 hydra-server sudo[2718]: root : TTY=unknown ; PWD=/ ; USER=postgres ; COMMAND=/nix/store/46xc51hfqc493zbd4kr2abw07h19y0zd-postgresql-11.6/bin/createdb -O hydra hydra
Dec 10 01:50:27 hydra-server sudo[2718]: pam_unix(sudo:session): session opened for user postgres by (uid=0)
Dec 10 01:50:27 hydra-server sudo[2718]: pam_unix(sudo:session): session closed for user postgres
Dec 10 01:50:27 hydra-server sudo[2723]: root : TTY=unknown ; PWD=/ ; USER=postgres ; COMMAND=/nix/store/46xc51hfqc493zbd4kr2abw07h19y0zd-postgresql-11.6/bin/psql hydra
Dec 10 01:50:27 hydra-server sudo[2723]: pam_unix(sudo:session): session opened for user postgres by (uid=0)
Dec 10 01:50:27 hydra-server qgd2f34hvxlfpry9z9mqjx2ygbpwky7f-unit-script-hydra-init-pre-start[2703]: CREATE EXTENSION
Dec 10 01:50:27 hydra-server sudo[2723]: pam_unix(sudo:session): session closed for user postgres
Dec 10 01:50:27 hydra-server hydra-init[2729]: Base class package "DBIx::Class::Schema" is empty.
Dec 10 01:50:27 hydra-server hydra-init[2729]: (Perhaps you need to 'use' the module which defines that package first,
Dec 10 01:50:27 hydra-server hydra-init[2729]: or make that module available in @INC (@INC contains: /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/libexec/hydra/lib /nix/store/82byfimpw49vlwrzwg0zcpk0s06g4hk3-hydr>
Dec 10 01:50:27 hydra-server hydra-init[2729]: at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/libexec/hydra/lib/Hydra/Schema.pm line 10.
Dec 10 01:50:27 hydra-server hydra-init[2729]: BEGIN failed--compilation aborted at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/libexec/hydra/lib/Hydra/Schema.pm line 10.
Dec 10 01:50:27 hydra-server hydra-init[2729]: Compilation failed in require at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/bin/.hydra-init-wrapped line 4.
Dec 10 01:50:27 hydra-server hydra-init[2729]: BEGIN failed--compilation aborted at /nix/store/xky44md2ixi021xphjh81zc83qjiqjdx-hydra-2019-08-30/bin/.hydra-init-wrapped line 4.
Dec 10 01:50:27 hydra-server systemd[1]: hydra-init.service: Main process exited, code=exited, status=255/EXCEPTION
Dec 10 01:50:27 hydra-server systemd[1]: hydra-init.service: Failed with result 'exit-code'.
Dec 10 01:50:27 hydra-server systemd[1]: Failed to start hydra-init.service.
I tried adding the following with no luck:
services.postgresql = {
enable = true;
package = pkgs.postgresql;
ensureDatabases = [ "hydra" ];
ensureUsers = [
{
name = "hydra";
ensurePermissions = {
"DATABASE hydra" = "ALL PRIVILEGES";
};
}
];
};
Adding the ~/.pgpass
file from Installation section of manual made no difference either.
What version of NixOS are you on, and what version of Hydra is this?
@ElvishJerricco
NixOS: 20.03.git.21bd378546d (Markhor)
Hydra: nixos-system-hydra-server-20.03.git.21bd378546d
OOps think that NixOS is my fork with a couple extra commits--this was tested on nixpkgs 3140fa89c51233397f496f49014f6b23216667c2
from Dec 5 as well.
fixed by NixOS/nixpkgs#75689