Error installing local plugin

I have in my kibana directory a custom plugin "custom_plugin" My impression from reading this portion of the elastic docs is that the directory needs to be zipped.

So based on that, I do:

zip -r custom_plugin.zip custom_plugin

Then, adhering to the elastic doc example, I run:

mkdir plugins

bin/kibana-plugin install file:///custom_plugin.zip -d plugins

I get the following output:

Warning: Using the -d, --plugin-dir option is deprecated, and is known to not work for all plugins, including X-Pack.

Attempting to transfer from file:///custom_plugin.zip Error: ENOTFOUND

Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/file:///custom_plugin.zip/file:///custom_plugin.zip-6.7.2.zip

Plugin installation was unsuccessful due to error "No valid url specified."

Apologies about the docs, I can see how they would be misleading.

There's no need to zip if the files are available, you can throw them in the plugins folder and it'll be picked up automatically. For the plugin installer CLI - you have the right idea, I would use an absolute path to be sure. Its looking for the file in your root directory (eg /custom_plugin.zip). So either file://custom_plugin.zip or file:///home/me/kibana/custom_plugin.zip

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.