Kibana 8.7.1 plugin fails to launch

Hi,

Our plugin which was working in ELK 8.6.2 is failing in 8.7.1 with this failure "[FATAL][root] Error: Cannot find module '../../../../../../packages/kbn-config-schema'"

This should still be supported? 'yarn kbn bootstrap' and 'yarn build' were successful.

import { schema as configSchema } from '@kbn/config-schema';
2023-05-15T20:34:32.776148861Z stdout F Created Kibana keystore in /usr/share/kibana/config/kibana.keystore
2023-05-15T20:34:37.810100545Z stdout F [2023-05-15T20:34:37.775+00:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
2023-05-15T20:34:38.097340437Z stdout F [2023-05-15T20:34:38.086+00:00][FATAL][root] Error: Cannot find module '../../../../../../packages/kbn-config-schema'
2023-05-15T20:34:38.097371248Z stdout F Require stack:
2023-05-15T20:34:38.097375868Z stdout F - /usr/share/kibana/plugins/wind/server/lib/adapters/framework/kibana.js
2023-05-15T20:34:38.097378987Z stdout F - /usr/share/kibana/plugins/wind/server/lib/adapters/framework/index.js
2023-05-15T20:34:38.097384363Z stdout F - /usr/share/kibana/plugins/wind/server/lib/compose/kibana.js
2023-05-15T20:34:38.097387163Z stdout F - /usr/share/kibana/plugins/wind/server/plugin.js
2023-05-15T20:34:38.097389941Z stdout F - /usr/share/kibana/plugins/wind/server/index.js
2023-05-15T20:34:38.097392463Z stdout F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/plugin.js
2023-05-15T20:34:38.097394899Z stdout F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/discovery/plugins_discovery.js
2023-05-15T20:34:38.097398023Z stdout F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/discovery/index.js
2023-05-15T20:34:38.097400362Z stdout F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/plugins_service.js
2023-05-15T20:34:38.097402809Z stdout F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/index.js
2023-05-15T20:34:38.097405089Z stdout F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/index.js
2023-05-15T20:34:38.097407349Z stdout F - /usr/share/kibana/node_modules/@kbn/core-root-server-internal/src/server.js
2023-05-15T20:34:38.097409604Z stdout F - /usr/share/kibana/node_modules/@kbn/core-root-server-internal/src/index.js
2023-05-15T20:34:38.097411893Z stdout F - /usr/share/kibana/node_modules/@kbn/core-root-server-internal/index.js
2023-05-15T20:34:38.097414186Z stdout F - /usr/share/kibana/src/core/server/index.js
2023-05-15T20:34:38.097416527Z stdout F - /usr/share/kibana/src/cli/serve/serve.js
2023-05-15T20:34:38.097418822Z stdout F - /usr/share/kibana/src/cli/cli.js
2023-05-15T20:34:38.0974212Z stdout F - /usr/share/kibana/src/cli/dist.js
2023-05-15T20:34:38.097423645Z stdout F     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
2023-05-15T20:34:38.097426258Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:81:25)
2023-05-15T20:34:38.097428663Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/elastic-apm-node/lib/ritm.js:108:34)
2023-05-15T20:34:38.097430903Z stdout F     at require (node:internal/modules/cjs/helpers:108:18)
2023-05-15T20:34:38.097433199Z stdout F     at Object.<anonymous> (/usr/share/kibana/plugins/wind/server/lib/adapters/framework/kibana.ts:23:1)
2023-05-15T20:34:38.097435502Z stdout F     at Module._compile (node:internal/modules/cjs/loader:1191:14)
2023-05-15T20:34:38.097437785Z stdout F     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
2023-05-15T20:34:38.097440156Z stdout F     at Module.load (node:internal/modules/cjs/loader:1069:32)
2023-05-15T20:34:38.097442428Z stdout F     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
2023-05-15T20:34:38.097444686Z stdout F     at Module.require (node:internal/modules/cjs/loader:1093:19)
2023-05-15T20:34:38.097446965Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097449298Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097451729Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097454319Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097467508Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097470278Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/elastic-apm-node/lib/ritm.js:129:39)
2023-05-15T20:34:38.097472582Z stdout F     at require (node:internal/modules/cjs/helpers:108:18)
2023-05-15T20:34:38.097474864Z stdout F     at Object.<anonymous> (/usr/share/kibana/plugins/wind/server/lib/adapters/framework/index.ts:8:1)
2023-05-15T20:34:38.097477134Z stdout F     at Module._compile (node:internal/modules/cjs/loader:1191:14)
2023-05-15T20:34:38.097480824Z stdout F     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
2023-05-15T20:34:38.097483124Z stdout F     at Module.load (node:internal/modules/cjs/loader:1069:32)
2023-05-15T20:34:38.097485414Z stdout F     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
2023-05-15T20:34:38.09748773Z stdout F     at Module.require (node:internal/modules/cjs/loader:1093:19)
2023-05-15T20:34:38.097490133Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097492451Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097494853Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.09749722Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097499534Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097506188Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/elastic-apm-node/lib/ritm.js:129:39)
2023-05-15T20:34:38.097508484Z stdout F     at require (node:internal/modules/cjs/helpers:108:18)
2023-05-15T20:34:38.097514781Z stdout F     at Object.<anonymous> (/usr/share/kibana/plugins/wind/server/lib/compose/kibana.ts:10:1)
2023-05-15T20:34:38.097517451Z stdout F     at Module._compile (node:internal/modules/cjs/loader:1191:14)
2023-05-15T20:34:38.097519813Z stdout F     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
2023-05-15T20:34:38.097522081Z stdout F     at Module.load (node:internal/modules/cjs/loader:1069:32)
2023-05-15T20:34:38.097558628Z stdout F     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
2023-05-15T20:34:38.09756427Z stdout F     at Module.require (node:internal/modules/cjs/loader:1093:19)
2023-05-15T20:34:38.097566733Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097569085Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097571568Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097575119Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097577385Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.097579724Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/elastic-apm-node/lib/ritm.js:129:39)
2023-05-15T20:34:38.097581986Z stdout F     at require (node:internal/modules/cjs/helpers:108:18)
2023-05-15T20:34:38.097584336Z stdout F     at Object.<anonymous> (/usr/share/kibana/plugins/wind/server/plugin.ts:12:1)
2023-05-15T20:34:38.097586638Z stdout F     at Module._compile (node:internal/modules/cjs/loader:1191:14)
2023-05-15T20:34:38.097594089Z stdout F     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
2023-05-15T20:34:38.097596802Z stdout F     at Module.load (node:internal/modules/cjs/loader:1069:32)
2023-05-15T20:34:38.097599164Z stdout F     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
2023-05-15T20:34:38.097603709Z stdout F     at Module.require (node:internal/modules/cjs/loader:1093:19)
2023-05-15T20:34:38.097617042Z stdout F     at Module.Hook._require.Module.require (/usr/share/kibana/node_modules/require-in-the-middle/index.js:101:39)
2023-05-15T20:34:38.100579898Z stderr F
2023-05-15T20:34:38.10059866Z stderr F  FATAL  Error: Cannot find module '../../../../../../packages/kbn-config-schema'
2023-05-15T20:34:38.100608904Z stderr F Require stack:
2023-05-15T20:34:38.10061256Z stderr F - /usr/share/kibana/plugins/wind/server/lib/adapters/framework/kibana.js
2023-05-15T20:34:38.100615421Z stderr F - /usr/share/kibana/plugins/wind/server/lib/adapters/framework/index.js
2023-05-15T20:34:38.100617938Z stderr F - /usr/share/kibana/plugins/wind/server/lib/compose/kibana.js
2023-05-15T20:34:38.100620374Z stderr F - /usr/share/kibana/plugins/wind/server/plugin.js
2023-05-15T20:34:38.100625097Z stderr F - /usr/share/kibana/plugins/wind/server/index.js
2023-05-15T20:34:38.100627499Z stderr F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/plugin.js
2023-05-15T20:34:38.100629919Z stderr F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/discovery/plugins_discovery.js
2023-05-15T20:34:38.100632854Z stderr F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/discovery/index.js
2023-05-15T20:34:38.100635127Z stderr F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/plugins_service.js
2023-05-15T20:34:38.100637393Z stderr F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/src/index.js
2023-05-15T20:34:38.100639697Z stderr F - /usr/share/kibana/node_modules/@kbn/core-plugins-server-internal/index.js
2023-05-15T20:34:38.100641979Z stderr F - /usr/share/kibana/node_modules/@kbn/core-root-server-internal/src/server.js
2023-05-15T20:34:38.100644157Z stderr F - /usr/share/kibana/node_modules/@kbn/core-root-server-internal/src/index.js
2023-05-15T20:34:38.100646362Z stderr F - /usr/share/kibana/node_modules/@kbn/core-root-server-internal/index.js
2023-05-15T20:34:38.10064856Z stderr F - /usr/share/kibana/src/core/server/index.js
2023-05-15T20:34:38.100650753Z stderr F - /usr/share/kibana/src/cli/serve/serve.js
2023-05-15T20:34:38.10065297Z stderr F - /usr/share/kibana/src/cli/cli.js
2023-05-15T20:34:38.10065644Z stderr F - /usr/share/kibana/src/cli/dist.js
2023-05-15T20:34:38.100658593Z stderr F

Hi @kbujold_wr ,

I saw your comment, it means you are aware of the registered Kibana issue #154325

As pointed in the issue, you can either pull the latest Kibana 8.7 branch, build it and check if your plugin is working. Alternatively, you need to wait for the next 8.7.x release.

Best regards, Dima

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