New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install elasticsearch plugins #56777
Comments
i have been playing around with this a little. What i have found so far: this has to be done here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/search/elasticsearch/plugins.nix#L9 resulting in: installPhase ? ''
mkdir -p $out/config
mkdir -p $out/plugins
ln -s ${elasticsearch-oss}/lib $out/lib
ES_HOME=$out ${elasticsearch-oss}/bin/elasticsearch-plugin install --batch -v file://$src
rm $out/lib
'' BUT: this results in elasticsearch trying to load the plugins but failing with this can be worked around by copying the plugins instead of symlinking here. mkdir -p ${cfg.dataDir}/plugins
for plugin in ${concatStringsSep " " cfg.plugins}; do
cp -r $plugin/plugins/* ${cfg.dataDir}/plugins
done but this kind of seems crappy. the root cause might be this: |
changing the module to esPlugins = pkgs.stdenv.mkDerivation {
name = "elasticsearch-plugins";
buildCommand = ''
mkdir -p $out/plugins
for plugin in ${concatStringsSep " " cfg.plugins}; do
cp -r $plugin/plugins/* $out/plugins
done
'';
}; seems to work, which lets me believe that the aforementioned link is relevant here.
|
Any news? It's almost a year. |
Hello, I'm a bot and I thank you in the name of the community for opening this issue. To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them. Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel. |
Issue description
There is an error in install stage when configuring plugins for elastic search. It is present in 18.09 channel and on master branch of nixpkgs.
Steps to reproduce
nixos-rebuild switch --upgrade
and watch the errorTechnical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste theresults.
The text was updated successfully, but these errors were encountered: