elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

Error: Cannot find module './get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen' #174231

Open ahmohamed0912 opened 10 months ago

ahmohamed0912 commented 10 months ago

Kibana version: kibana-8.11.2

Elasticsearch version: elasticsearch-8.11.3

Nodejs version: nodejs 20.10.0

Server OS version: Windows 11 Pro

Browser version: Google Chrome Version 120.0.6099.130 (Official Build) (64-bit)

Browser OS version: Microsoft Edge Version 120.0.2210.91 (Official build) (64-bit)

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug: Error when try to run the kibana.bat command from cmd or powershell Found the line Kibana started then after waiting for 1 min or try to call url: http://localhost:5601/ this error happened and the session terminated Error: Cannot find module './get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen'

Steps to reproduce:

  1. Download Kibana For Windows from official website
  2. Unzip kibana-8.11.2-windows-x86_64.zip file
  3. Move to this file kibana-8.11.0\config
  4. Open kibana.yml file
  5. Un comment the following lines then save the file server.port: 5601 server.host: "localhost" elasticsearch.hosts: ["http://localhost:9200"] elasticsearch.username: "kibana_system" elasticsearch.password: "pass"
  6. Move to kibana-8.11.0\bin
  7. Open cmd or powershell terminal on this page
  8. Run this command kibana.bat for cmd or ./kibana for powershell

Expected behavior: Kibana working and can be able to open this web application http://localhost:5601

Screenshots (if relevant):

Errors in browser console (if relevant): D:\Tools\ElasticSearch_Kibana_logstash\kibana-8.11.2\bin>kibana.bat Kibana is currently running with legacy OpenSSL providers enabled! For details and instructions on how to disable see https://www.elastic.co/guide/en/kibana/8.11/production.html#openssl-legacy-provider {"log.level":"info","@timestamp":"2024-01-03T14:16:09.647Z","log":{"logger":"elastic-apm-node"},"agentVersion":"4.1.0","env":{"pid":10560,"proctitle":"C:\Windows\System32\cmd.exe - kibana.bat","os":"win32 10.0.22621","arch":"x64","host":"aafify-EG","timezone":"UTC+0200","runtime":"Node.js v18.18.2"},"config":{"serviceName":{"source":"start","value":"kibana","commonName":"service_name"},"serviceVersion":{"source":"start","value":"8.11.2","commonName":"service_version"},"serverUrl":{"source":"start","value":"https://kibana-cloud-apm.apm.us-east-1.aws.found.io/","commonName":"server_url"},"logLevel":{"source":"default","value":"info","commonName":"log_level"},"active":{"source":"start","value":true},"contextPropagationOnly":{"source":"start","value":true},"environment":{"source":"start","value":"production"},"globalLabels":{"source":"start","value":[["kibana_uuid","dafb2cb7-29c4-48db-9c36-e370753d4ab6"],["git_rev","92746356b61c3e3ac62b6d7045727f8d737fa4b5"]],"sourceValue":{"kibana_uuid":"dafb2cb7-29c4-48db-9c36-e370753d4ab6","git_rev":"92746356b61c3e3ac62b6d7045727f8d737fa4b5"}},"secretToken":{"source":"start","value":"[REDACTED]","commonName":"secret_token"},"breakdownMetrics":{"source":"start","value":false},"captureSpanStackTraces":{"source":"start","sourceValue":false},"centralConfig":{"source":"start","value":false},"metricsInterval":{"source":"start","value":120,"sourceValue":"120s"},"propagateTracestate":{"source":"start","value":true},"transactionSampleRate":{"source":"start","value":0.1,"commonName":"transaction_sample_rate"},"captureBody":{"source":"start","value":"off","commonName":"capture_body"},"captureHeaders":{"source":"start","value":false}},"activationMethod":"require","ecs":{"version":"1.6.0"},"message":"Elastic APM Node.js Agent v4.1.0"} [2024-01-03T16:16:11.185+02:00][INFO ][root] Kibana is starting [2024-01-03T16:16:11.204+02:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui] [2024-01-03T16:16:26.196+02:00][INFO ][root] Kibana is shutting down [2024-01-03T16:16:26.200+02:00][FATAL][root] Reason: Cannot find module './get_prebuilt_rules_and_timelines_status/get_prebuilt_rules_and_timelines_status_route.gen' Require stack:

Provide logs and/or server output (if relevant):

Any additional context:

elasticmachine commented 10 months ago

Pinging @elastic/security-solution (Team: SecuritySolution)