Skip to content
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

Support for Kibana 7.12 or later in Docker installation (_src_plugins_vis_default_editor_public__WEBPACK_IMPORTED_MODULE_2__.Schemas is not a constructor) #14

Open
jtt0 opened this issue May 26, 2021 · 0 comments

Comments

@jtt0
Copy link

jtt0 commented May 26, 2021

Hi, I'm trying to install kbn-radar in a docker image of kibana 7.12. I followed this steps:

  1. I have downloaded release 7.10 and modified kibana.json to upgrade to 7.12. I have create a new release here to install plugins from url. I have tried installing from local files but I obtain the same error.
  2. Dockerfile contains:
FROM docker.elastic.co/kibana/kibana:7.12.0
COPY kbn_radar-7.12.0.zip plugins/kbn_radar.zip
USER root
RUN /usr/share/kibana/bin/kibana-plugin install --timeout 5m https://github.com/jtt0/kbn_radar_7.12/releases/download/v2/kbn_radar-7.12.0.zip 
RUN /usr/share/kibana/bin/kibana --optimize --allow-root
RUN chown -R kibana:root /usr/share/kibana/plugins
USER kibana

Then, when I up docker image, I get this error:

kbn-radar-error

_src_plugins_vis_default_editor_public__WEBPACK_IMPORTED_MODULE_2__.Schemas is not a constructor
Version: 7.12.0
Build: 39309
TypeError: _src_plugins_vis_default_editor_public__WEBPACK_IMPORTED_MODULE_2__.Schemas is not a constructor
    at kbnRadarVisTypeDefinition (http://localhost:5601/39309/bundles/plugin/kbnRadar/kbnRadar.plugin.js:21010:16)
    at KbnRadarPlugin.setup (http://localhost:5601/39309/bundles/plugin/kbnRadar/kbnRadar.plugin.js:21428:124)
    at plugin_PluginWrapper.setup (http://localhost:5601/39309/bundles/core/core.entry.js:13:198334)
    at plugins_service_PluginsService.setup (http://localhost:5601/39309/bundles/core/core.entry.js:13:202168)
    at async core_system_CoreSystem.setup (http://localhost:5601/39309/bundles/core/core.entry.js:13:276177)
    at async Module.__kbnBootstrap__ (http://localhost:5601/39309/bundles/core/core.entry.js:13:282300)

And kibana logs:

{"type":"log","@timestamp":"2021-05-26T15:51:50+00:00","tags":["error","plugins","taskManager"],"pid":7,"message":"Failed to poll for work: Error: work has timed out"}

I have tried everything that I can, for example:

  1. I have tried to use the flag --timeout 5m.
  2. Following this similar question of the error, I have tried to change this line import tableVisTemplate from './kbn-radar-vis.html'; with this import {tableVisTemplate} from './kbn-radar-vis.html';.

Thanks for your attention :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant