Kibana fails to start

The cmd stucks at this stage:

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.14/production.html#openssl-legacy-provider
{"log.level":"info","@timestamp":"2024-08-12T11:02:10.854Z","log.logger":"elastic-apm-node","ecs.version":"8.10.0","agentVersion":"4.5.0","env":{"pid":7084,"proctitle":"C:\\Windows\\system32\\cmd.exe","os":"win32 10.0.19045","arch":"x64","host":"DESKTOP-FHLS07P","timezone":"UTC+0300","runtime":"Node.js v20.13.1"},"config":{"active":{"source":"start","value":true},"breakdownMetrics":{"source":"start","value":false},"captureBody":{"source":"start","value":"off","commonName":"capture_body"},"captureHeaders":{"source":"start","value":false},"centralConfig":{"source":"start","value":false},"contextPropagationOnly":{"source":"start","value":true},"environment":{"source":"start","value":"production"},"globalLabels":{"source":"start","value":[["kibana_uuid","d8d4aad6-06ca-43a2-b808-5529b0e16454"],["git_rev","465f50087cd040ef03e6ccec1cb7737427a713ce"]],"sourceValue":{"kibana_uuid":"d8d4aad6-06ca-43a2-b808-5529b0e16454","git_rev":"465f50087cd040ef03e6ccec1cb7737427a713ce"}},"logLevel":{"source":"default","value":"info","commonName":"log_level"},"metricsInterval":{"source":"start","value":120,"sourceValue":"120s"},"serverUrl":{"source":"start","value":"https://kibana-cloud-apm.apm.us-east-1.aws.found.io/","commonName":"server_url"},"transactionSampleRate":{"source":"start","value":0.1,"commonName":"transaction_sample_rate"},"captureSpanStackTraces":{"source":"start","sourceValue":false},"secretToken":{"source":"start","value":"[REDACTED]","commonName":"secret_token"},"serviceName":{"source":"start","value":"kibana","commonName":"service_name"},"serviceVersion":{"source":"start","value":"8.14.3","commonName":"service_version"}},"activationMethod":"require","message":"Elastic APM Node.js Agent v4.5.0"}
Native global console methods have been overridden in production environment.
[2024-08-12T14:02:12.902+03:00][INFO ][root] Kibana is starting
[2024-08-12T14:02:12.936+03:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2024-08-12T14:02:24.994+03:00][INFO ][plugins-service] The following plugins are disabled: "cloudChat,cloudExperiments,cloudFullStory,profilingDataAccess,profiling,securitySolutionServerless,serverless,serverlessObservability,serverlessSearch".
[2024-08-12T14:02:25.071+03:00][INFO ][http.server.Preboot] http server running at http://localhost:5601
[2024-08-12T14:02:25.207+03:00][INFO ][plugins-system.preboot] Setting up [1] plugins: [interactiveSetup]
[2024-08-12T14:02:25.265+03:00][WARN ][config.deprecation] The default mechanism for Reporting privileges will work differently in future versions, which will affect the behavior of this cluster. Set "xpack.reporting.roles.enabled" to "false" to adopt the future behavior before upgrading.
[2024-08-12T14:02:25.526+03:00][INFO ][plugins-system.standard] Setting up [158] plugins: [devTools,translations,share,searchConnectors,screenshotMode,usageCollection,telemetryCollectionManager,telemetryCollectionXpack,taskManager,kibanaUsageCollection,cloud,newsfeed,savedObjectsFinder,noDataPage,monitoringCollection,licensing,mapsEms,globalSearch,globalSearchProviders,features,guidedOnboarding,banners,licenseApiGuard,customBranding,ftrApis,fieldFormats,expressions,screenshotting,esUiShared,customIntegrations,contentManagement,dataViews,home,searchprofiler,painlessLab,management,spaces,security,telemetry,licenseManagement,snapshotRestore,lists,files,encryptedSavedObjects,eventLog,actions,observabilityAIAssistant,notifications,cloudDataMigration,aiAssistantManagementSelection,advancedSettings,grokdebugger,console,searchNotebooks,bfetch,data,savedObjectsTagging,savedObjectsManagement,unifiedSearch,navigation,graph,embeddable,uiActionsEnhanced,savedSearch,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,controls,alerting,fileUpload,ingestPipelines,ecsDataQualityDashboard,dataViewFieldEditor,dataViewManagement,charts,watcher,visualizations,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeMarkdown,visTypeHeatmap,inputControlVis,expressionTagcloud,expressionPartitionVis,visTypePie,expressionMetricVis,expressionLegacyMetricVis,expressionHeatmap,expressionGauge,visTypeGauge,eventAnnotation,expressionXY,lens,dashboard,triggersActionsUi,transform,stackConnectors,searchPlayground,stackAlerts,ruleRegistry,cases,timelines,sessionView,kubernetesSecurity,threatIntelligence,metricsDataAccess,logsShared,aiops,links,discover,reporting,canvas,fleet,osquery,logsExplorer,datasetQuality,cloudSecurityPosture,cloudDefend,observability,slo,observabilityLogsExplorer,observabilityOnboarding,discoverEnhanced,maps,dataVisualizer,ml,uptime,synthetics,observabilityAIAssistantApp,indexManagement,textBasedLanguages,rollup,remoteClusters,crossClusterReplication,indexLifecycleManagement,enterpriseSearch,observabilityAiAssistantManagement,elasticAssistant,securitySolution,securitySolutionEss,dashboardEnhanced,apmDataAccess,infra,upgradeAssistant,monitoring,logstash,assetManager,apm,ux]
[2024-08-12T14:02:25.892+03:00][INFO ][plugins.taskManager] TaskManager is identified by the Kibana UUID: d8d4aad6-06ca-43a2-b808-5529b0e16454
[2024-08-12T14:02:26.611+03:00][INFO ][custom-branding-service] CustomBrandingService registering plugin: customBranding[2024-08-12T14:02:27.492+03:00][INFO ][plugins.screenshotting.config] Chromium sandbox provides an additional layer of protection, and is supported for Win32 OS. Automatically enabling Chromium sandbox.
[2024-08-12T14:02:27.977+03:00][WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2024-08-12T14:02:27.978+03:00][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2024-08-12T14:02:28.005+03:00][WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2024-08-12T14:02:28.006+03:00][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2024-08-12T14:02:28.262+03:00][WARN ][plugins.encryptedSavedObjects] Saved objects encryption key is not set. This will severely limit Kibana functionality. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2024-08-12T14:02:28.433+03:00][WARN ][plugins.actions] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2024-08-12T14:02:28.665+03:00][INFO ][plugins.notifications] Email Service Error: Email connector not specified.
[2024-08-12T14:02:29.172+03:00][WARN ][plugins.alerting] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2024-08-12T14:02:29.173+03:00][INFO ][plugins.alerting] using indexes and aliases for persisting alerts
[2024-08-12T14:02:31.461+03:00][WARN ][plugins.reporting.config] Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2024-08-12T14:02:32.267+03:00][INFO ][plugins.cloudSecurityPosture] Registered task successfully [Task: cloud_security_posture-stats_task]
[2024-08-12T14:02:36.842+03:00][INFO ][plugins.securitySolution.endpoint:user-artifact-packager:1.0.0] Registering endpoint:user-artifact-packager task with timeout of [20m], interval of [60s] and policy update batch size of [25]
[2024-08-12T14:02:36.843+03:00][INFO ][plugins.securitySolution.endpoint:complete-external-response-actions] Registering task [endpoint:complete-external-response-actions] with timeout of [5m] and run interval of [60s]
[2024-08-12T14:02:37.505+03:00][INFO ][plugins.assetManager] Server is NOT enabled
[2024-08-12T14:02:37.905+03:00][INFO ][plugins.screenshotting.chromium] Browser executable: C:\Users\umutc\Desktop\kibana-8.14.3\node_modules\@kbn\screenshotting-plugin\chromium\chrome-win\chrome.exe
[2024-08-12T14:02:37.952+03:00][INFO ][elasticsearch-service] Successfully connected to Elasticsearch after waiting for 74 milliseconds
[2024-08-12T14:03:37.961+03:00][INFO ][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
[2024-08-12T14:03:37.962+03:00][INFO ][savedobjects-service] Starting saved objects migrations
[2024-08-12T14:03:38.017+03:00][INFO ][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 36ms.
[2024-08-12T14:03:38.023+03:00][INFO ][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> UPDATE_SOURCE_MAPPINGS_PROPERTIES. took: 7ms.
[2024-08-12T14:03:38.026+03:00][INFO ][savedobjects-service] [.kibana] UPDATE_SOURCE_MAPPINGS_PROPERTIES -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 3ms.
[2024-08-12T14:03:38.031+03:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 49ms.
[2024-08-12T14:03:38.034+03:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 8ms.
[2024-08-12T14:03:38.040+03:00][INFO ][savedobjects-service] [.kibana_analytics] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 52ms.
[2024-08-12T14:03:38.044+03:00][INFO ][savedobjects-service] [.kibana_security_solution] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 52ms.
[2024-08-12T14:03:38.049+03:00][INFO ][savedobjects-service] [.kibana_task_manager] WAIT_FOR_YELLOW_SOURCE -> UPDATE_SOURCE_MAPPINGS_PROPERTIES. took: 18ms.
[2024-08-12T14:03:38.050+03:00][INFO ][savedobjects-service] [.kibana_task_manager] UPDATE_SOURCE_MAPPINGS_PROPERTIES -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 1ms.
[2024-08-12T14:03:38.053+03:00][INFO ][savedobjects-service] [.kibana_analytics] WAIT_FOR_YELLOW_SOURCE -> UPDATE_SOURCE_MAPPINGS_PROPERTIES. took: 13ms.
[2024-08-12T14:03:38.055+03:00][INFO ][savedobjects-service] [.kibana_analytics] UPDATE_SOURCE_MAPPINGS_PROPERTIES -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 2ms.
[2024-08-12T14:03:38.057+03:00][INFO ][savedobjects-service] [.kibana_security_solution] WAIT_FOR_YELLOW_SOURCE -> UPDATE_SOURCE_MAPPINGS_PROPERTIES. took: 13ms.
[2024-08-12T14:03:38.059+03:00][INFO ][savedobjects-service] [.kibana_security_solution] UPDATE_SOURCE_MAPPINGS_PROPERTIES -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 2ms.
[2024-08-12T14:03:38.061+03:00][INFO ][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 11ms.
[2024-08-12T14:03:38.066+03:00][INFO ][savedobjects-service] [.kibana_analytics] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 10ms.
[2024-08-12T14:03:38.071+03:00][INFO ][savedobjects-service] [.kibana_security_solution] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 12ms.
[2024-08-12T14:03:38.078+03:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 44ms.
[2024-08-12T14:03:38.085+03:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> CHECK_TARGET_MAPPINGS. took: 7ms.
[2024-08-12T14:03:38.088+03:00][INFO ][savedobjects-service] [.kibana] There are no changes in the mappings of any of the SO types, skipping UPDATE_TARGET_MAPPINGS steps.
[2024-08-12T14:03:38.089+03:00][INFO ][savedobjects-service] [.kibana] CHECK_TARGET_MAPPINGS -> CHECK_VERSION_INDEX_READY_ACTIONS. took: 3ms.
[2024-08-12T14:03:38.090+03:00][INFO ][savedobjects-service] [.kibana] CHECK_VERSION_INDEX_READY_ACTIONS -> DONE. took: 2ms.
[2024-08-12T14:03:38.091+03:00][INFO ][savedobjects-service] [.kibana] Migration completed after 111ms
[2024-08-12T14:03:38.093+03:00][INFO ][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 32ms.
[2024-08-12T14:03:38.098+03:00][INFO ][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> CHECK_TARGET_MAPPINGS. took: 5ms.
[2024-08-12T14:03:38.099+03:00][INFO ][savedobjects-service] [.kibana_task_manager] There are no changes in the mappings of any of the SO types, skipping UPDATE_TARGET_MAPPINGS steps.
[2024-08-12T14:03:38.100+03:00][INFO ][savedobjects-service] [.kibana_task_manager] CHECK_TARGET_MAPPINGS -> CHECK_VERSION_INDEX_READY_ACTIONS. took: 1ms.
[2024-08-12T14:03:38.101+03:00][INFO ][savedobjects-service] [.kibana_task_manager] CHECK_VERSION_INDEX_READY_ACTIONS -> DONE. took: 2ms.
[2024-08-12T14:03:38.102+03:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 120ms
[2024-08-12T14:03:38.105+03:00][INFO ][savedobjects-service] [.kibana_security_solution] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 34ms.
[2024-08-12T14:03:38.108+03:00][INFO ][savedobjects-service] [.kibana_analytics] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 43ms.
[2024-08-12T14:03:38.113+03:00][INFO ][savedobjects-service] [.kibana_security_solution] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> CHECK_TARGET_MAPPINGS. took: 8ms.
[2024-08-12T14:03:38.115+03:00][INFO ][savedobjects-service] [.kibana_security_solution] There are no changes in the mappings of any of the SO types, skipping UPDATE_TARGET_MAPPINGS steps.
[2024-08-12T14:03:38.115+03:00][INFO ][savedobjects-service] [.kibana_security_solution] CHECK_TARGET_MAPPINGS -> CHECK_VERSION_INDEX_READY_ACTIONS. took: 2ms.
[2024-08-12T14:03:38.116+03:00][INFO ][savedobjects-service] [.kibana_security_solution] CHECK_VERSION_INDEX_READY_ACTIONS -> DONE. took: 1ms.
[2024-08-12T14:03:38.117+03:00][INFO ][savedobjects-service] [.kibana_security_solution] Migration completed after 125ms[2024-08-12T14:03:38.119+03:00][INFO ][savedobjects-service] [.kibana_analytics] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> CHECK_TARGET_MAPPINGS. took: 11ms.
[2024-08-12T14:03:38.120+03:00][INFO ][savedobjects-service] [.kibana_analytics] There are no changes in the mappings of any of the SO types, skipping UPDATE_TARGET_MAPPINGS steps.
[2024-08-12T14:03:38.121+03:00][INFO ][savedobjects-service] [.kibana_analytics] CHECK_TARGET_MAPPINGS -> CHECK_VERSION_INDEX_READY_ACTIONS. took: 1ms.
[2024-08-12T14:03:38.122+03:00][INFO ][savedobjects-service] [.kibana_analytics] CHECK_VERSION_INDEX_READY_ACTIONS -> DONE. took: 2ms.
[2024-08-12T14:03:38.123+03:00][INFO ][savedobjects-service] [.kibana_analytics] Migration completed after 135ms

And the only thing shows at localhost:5601 is:

"Kibana server is not ready yet."

Could anyone help?

Hi @UMUT_CAN_ARGUN, there is no error I can see.

Could you please provide more details? Any specific doc you following and you got stuck on any specific steps?

I see no error either but kibana doesn't start. Display says "Kibana server is not ready yet."

This error is usually occurs when kibana not able to connect to the Elasticsearch. Can you verify you ES is up and running by hitting Elasticsearch endpoint?

localhost:9200 says

{
    "name": "DESKTOP-FHLS07P",
    "cluster_name": "elasticsearch",
    "cluster_uuid": "g4Y4fY5nS1eCV8Q2EYJKQA",
    "version": {
        "number": "8.14.3",
        "build_flavor": "default",
        "build_type": "zip",
        "build_hash": "d55f984299e0e88dee72ebd8255f7ff130859ad0",
        "build_date": "2024-07-07T22:04:49.882652950Z",
        "build_snapshot": false,
        "lucene_version": "9.10.0",
        "minimum_wire_compatibility_version": "7.17.0",
        "minimum_index_compatibility_version": "7.0.0"
    },
    "tagline": "You Know, for Search"
}```

but kibana gives timeout errors again and again

Looks like I will reinstall both kibana and es

You can try reinstall kibana again unless there is nothing in log file.

Before that, check the elasticsearch log, might be a trace there.

I reinstalled both ES and kibana. Problem looks solved for now.

1 Like

Thank you for your help