Conflict of customized config for installing different Kibana plugins

Hi,
I develope two different plugin.
In the kibana.yml,I configure the customized config as below

feature1.uri: "http://192.168.28.152:11213"
feature2.uri: "http://192.168.28.152:11214"

index.js as below

return new kibana.Plugin({
    require: ['elasticsearch'],
    name: 'feature1',
    uiExports: {
      app: {
        title: 'feature1',
        description: 'feature1',
        main: 'plugins/feature1/app',
      },
      hacks: [
        'plugins/feature1/hack'
      ],
      styleSheetPaths: require('path').resolve(__dirname, 'public/app.scss'),
    },

    config(Joi) {
      return Joi.object({
        uri: Joi.array().items(Joi.string().uri({ scheme: ['http', 'https'] })).single(),
      }).default();
    },

And the install script are

RUN bin/kibana-plugin install file:///usr/share/kibana/feature1-0.0.0.zip -d plugins
RUN bin/kibana-plugin install file:///usr/share/kibana/feature2-0.0.0.zip -d plugins

but It occur the following error

FATAL Error: "feature2.feature2.uri" settings was not applied. Check for spelling errors and ensure that expected plugins are installed.

But when I just install feature1 plugin and config feature1 config,It works well.
It seems like that when I simultaneously install two plugins,and then it would fail when checked another config for another plugin.

How can I solve this problem?

@tony21177

Do you have a similar success if you only install feature2 as you do with feature1?

Hi,Matthew Kime

Sorry for my late reply.
After I arrange the order of commands in Dockerfile
which is "Copy kibana.yml command" behind the "install plugins command"
,It works!
Thank you!

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