Issue with Custom Plugin Causing "Elastic did not load properly" Error in Kibana 8.14.0
Hi everyone,
Greetings of the day!
I have successfully cloned the Kibana repository and set up everything for local development. When using a snapshot of Elasticsearch, everything works fine. Here’s a brief overview of my setup process:
- Cloned the Kibana repository using:
git clone --depth 1 --branch v8.14.0 GitHub - elastic/kibana: Your window into the Elastic Stack kibana8.14.0
- Ran the following commands:
yarn kbn bootstrap
yarn es snapshot --license trial
yarn start
At this point, everything works perfectly. I can log in to Kibana and browse the Kibana UI without any issues.
However, the problem arises when I create a custom plugin. Here are the steps I follow to create the plugin:
- Generate the custom plugin using:
node scripts/generate_plugin
- Navigate to the plugin folder and build the plugin:
cd plugins/my_custom_plugin
yarn build
- Clean and bootstrap Kibana again:
yarn kbn clean
yarn kbn bootstrap
After these steps, the login page shows up, but upon logging in, I encounter the error: "Elastic did not load properly. Check the server output for more information."
In kibana server output it shows:
[2024-06-19T09:55:29.579+02:00][INFO ][plugins.security.authentication] Login attempt with "basic" provider succeeded (requires redirect: true).
That means login is successful but after login I am getting "Elastic did not load properly. Check the server output for more information."
If I delete the custom plugin and run yarn kbn bootstrap
again, everything works fine. It seems the issue is directly related to the custom plugin.
One common warning I am getting on the kibana console:
[2024-06-19T09:54:50.094+02:00][WARN ][http.server.Kibana] Event loop utilization for /zzq/XXXXXXXXXXXX/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js exceeded threshold of 250ms (510ms out of 1161ms) and 15% (44%)
It is showing without plugin and also with custom plugin, so I think this is the not the problem.
Has anyone else faced a similar issue or have any suggestions on how to resolve this? Any help would be greatly appreciated!
Thank you!