Open kevincox opened 1 year ago
It appears this can be mitigated by adding the JDK into the service path. After migration it appears that this can be removed again.
systemd.services.metabase.path = [pkgs.jdk11];
It also appears that this ends up downloading code to do the migration. Ideally that could would be downloaded at build time and included in the package.
This is peculiar. The wrapper executes the JAR using jdk11: https://github.com/NixOS/nixpkgs/blob/efdd0dd6f08801860ecad75a3a81d2dba7e51191/pkgs/servers/metabase/default.nix#L18
And the module simply executes that wrapper: https://github.com/NixOS/nixpkgs/blob/efdd0dd6f08801860ecad75a3a81d2dba7e51191/nixos/modules/services/misc/metabase.nix#L95
I wonder if we should be adding jdk11 to PATH in the wrapper, then having it use java
without using its store path.
Describe the bug
Starting the Metabase NixOS service fails.
Full log: metabase.log
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
The service starts.
Additional context
This could probably be mitigated by adding
java
to the service path, but ideally the package itself would be patched to avoid replying on the PATH (maybe using a wrapper if required).Maybe related to https://github.com/NixOS/nixpkgs/pull/225033/files
Notify maintainers
@schneefux @thoughtpolice @mmahut
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 6.2.11, NixOS, 23.05 (Stoat), 23.05pre474575.f00994e78cd
yes
yes
nix-env (Nix) 2.13.3
""
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos