Open jkxyz opened 5 months ago
Cross-posted from #237057: as a workaround, here is an example of adapting the opensearch derivative to (a) fix the "opensearch-cli: No such file or directory" error, and (b) install several plugins.
opensearch-with-plugins = nixpkgs.opensearch.overrideAttrs (old: {
# Workaround for packaging bug (deleting opensearch-cli breaks opensearch-plugin command)
installPhase = builtins.replaceStrings ["rm $out/bin/opensearch-cli\n"] [""] old.installPhase;
postInstall = ''
# Install some plugins
$out/bin/opensearch-plugin install analysis-icu analysis-smartcn analysis-kuromoji analysis-stempel
'';
});
I'm noticing this as well when running opensearch
rather than opensearch-plugin
. The problem arises from within opensearch-keystore
, which attempts to find opensearch-cli
in the same directory opensearch-keystore
was invoked from.
Describe the bug
It's not currently possible to install plugins with OpenSearch.
With the
opensearch
andopensearch-cli
packages installed, or withservices.opensearch.enable = true
in my NixOS config, I can't find any way to use theopensearch-plugin
command.Runnning
opensearch-plugin
in any context produces this error:I've tried borrowing the
services.elasticsearch.plugins
option and duplicating theesPlugin
function found here into a local config. But even in this context theopensearch-plugin
executable produces an error.Steps To Reproduce
Steps to reproduce the behavior:
opensearch
andopensearch-cli
packages or addservices.opensearch.enable = true
to NixOS configopensearch-plugin
Expected behavior
The program should run without error.
Notify maintainers
@shyim
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.