Kibana server is not ready yet

hello, im a new user to elasticsearch and hoping to explore it further for my project,
So I just installed elasticsearch and kibana on my ubuntu and im getting "Kibana server is not ready yet." after runnig http://localhost:5601/

wasn't able to solve it with what i found here or stackoverflow

Welcome to our community! :smiley:

This topic has a number of suggestions on what might be other cause. Otherwise please check out this topic for the best way to allow us to help you.

Check the Kibana logs, without that everything is a guessing.

Thanks for the warm welcome!

the output for: curl -XGET localhost:9200

is:

{"error":{"root_cause":[{"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm="security" charset="UTF-8"","ApiKey"]}}],"type":"security_exception","reason":"missing authentication credentials for REST request [/]","header":{"WWW-Authenticate":["Basic realm="security" charset="UTF-8"","ApiKey"]}},"status":401}

screenshots of log,yml,jvm options are attached





It looks like user/pass is missing in kibana.yml and your curl as well.

elasticsearch.username: "kibana_system" # usually is kibana_system or if is internal you can use elastic as user
elasticsearch.password: "pass"

And PLEASE to not put images from files, use icon </> to format a post.

after uncommenting these lines in the kibana.yml

elasticsearch.username: "elastic" 
elasticsearch.password: "my-password-for-elasticsearch"

I am getting " localhost refused to connect." on http://localhost:5601/

kibana.log after updating the yml file and restarting kibana:
(last rows, couldnt fit the whole file)

{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T17:41:08.253+02:00","message":"Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms","error":{"message":"Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms","type":"Error","stack_trace":"Error: Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms\n    at ResourceInstaller.installWithTimeout (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:75:13)\n    at ResourceInstaller.installCommonResources (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:89:5)"},"log":{"level":"ERROR","logger":"plugins.ruleRegistry"},"process":{"pid":30709},"trace":{"id":"2bff41f7ea6d9033075c74391657efa7"},"transaction":{"id":"5ccc896d5a845d38"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:31.230+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.523+02:00","message":"Plugin \"cloudExperiments\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.532+02:00","message":"Plugin \"profiling\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.585+02:00","message":"http server running at http://localhost:5601","log":{"level":"INFO","logger":"http.server.Preboot"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.633+02:00","message":"Setting up [1] plugins: [interactiveSetup]","log":{"level":"INFO","logger":"plugins-system.preboot"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.635+02:00","message":"\"interactiveSetup\" plugin is holding setup: Validating Elasticsearch connection configuration…","log":{"level":"INFO","logger":"preboot"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.668+02:00","message":"Holding setup until preboot stage is completed.","log":{"level":"INFO","logger":"root"},"process":{"pid":2608},"trace":{"id":"e36f2bc582d93f3d95725f9f944ce96f"},"transaction":{"id":"432863ec8e32a694"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.773+02:00","message":"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.","log":{"level":"WARN","logger":"config.deprecation"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.973+02:00","message":"Setting up [125] plugins: [translations,monitoringCollection,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,screenshotMode,banners,newsfeed,guidedOnboarding,fieldFormats,expressions,dataViews,embeddable,uiActionsEnhanced,charts,esUiShared,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,spaces,security,lists,files,encryptedSavedObjects,cloud,snapshotRestore,screenshotting,telemetry,licenseManagement,eventLog,actions,stackConnectors,console,bfetch,data,watcher,reporting,fileUpload,ingestPipelines,alerting,aiops,unifiedSearch,unifiedFieldList,savedSearch,savedObjects,graph,savedObjectsTagging,savedObjectsManagement,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,controls,eventAnnotation,dataViewFieldEditor,triggersActionsUi,transform,stackAlerts,ruleRegistry,discover,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,cloudSecurityPosture,discoverEnhanced,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,dashboardEnhanced,expressionXY,expressionTagcloud,expressionPartitionVis,visTypePie,expressionMetricVis,expressionLegacyMetricVis,expressionHeatmap,expressionGauge,lens,maps,dataVisualizer,cases,timelines,sessionView,kubernetesSecurity,observability,osquery,ml,synthetics,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,visTypeGauge,dataViewManagement]","log":{"level":"INFO","logger":"plugins-system.standard"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.986+02:00","message":"TaskManager is identified by the Kibana UUID: 0dbb4174-c6ef-4a31-aa7d-5a9aa8b5e7a8","log":{"level":"INFO","logger":"plugins.taskManager"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.054+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.055+02:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.078+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.078+02:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.084+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.encryptedSavedObjects"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.095+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.actions"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.157+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.reporting.config"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.161+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.alerting"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.197+02:00","message":"Installing common resources shared between all indices","log":{"level":"INFO","logger":"plugins.ruleRegistry"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.226+02:00","message":"Registered task successfully [Task: cloud_security_posture-stats_task]","log":{"level":"INFO","logger":"plugins.cloudSecurityPosture"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.657+02:00","message":"Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 20.04 OS. Automatically enabling Chromium sandbox.","log":{"level":"INFO","logger":"plugins.screenshotting.config"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.684+02:00","message":"Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]","log":{"level":"ERROR","logger":"elasticsearch-service"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:43.009+02:00","message":"Browser executable: /usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell","log":{"level":"INFO","logger":"plugins.screenshotting.chromium"},"process":{"pid":2608},"trace":{"id":"027dbff1c7e64de53bbf225de6615c9c"},"transaction":{"id":"8b585b5e46afeb7b"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:46.556+02:00","message":"Stopping all plugins.","log":{"level":"INFO","logger":"plugins-system.preboot"},"process":{"pid":2608}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:31.137+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.277+02:00","message":"Plugin \"cloudExperiments\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.286+02:00","message":"Plugin \"profiling\" is disabled.","log":{"level":"INFO","logger":"plugins-service"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.348+02:00","message":"http server running at http://localhost:5601","log":{"level":"INFO","logger":"http.server.Preboot"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.405+02:00","message":"Setting up [1] plugins: [interactiveSetup]","log":{"level":"INFO","logger":"plugins-system.preboot"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.407+02:00","message":"\"interactiveSetup\" plugin is holding setup: Validating Elasticsearch connection configuration…","log":{"level":"INFO","logger":"preboot"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.440+02:00","message":"Holding setup until preboot stage is completed.","log":{"level":"INFO","logger":"root"},"process":{"pid":1890},"trace":{"id":"8f44085bf08a3e90158ef2442a6350c0"},"transaction":{"id":"b2ce4673229ebe03"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.550+02:00","message":"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.","log":{"level":"WARN","logger":"config.deprecation"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.783+02:00","message":"Setting up [125] plugins: [translations,monitoringCollection,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,screenshotMode,banners,newsfeed,guidedOnboarding,fieldFormats,expressions,dataViews,embeddable,uiActionsEnhanced,charts,esUiShared,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,spaces,security,lists,files,encryptedSavedObjects,cloud,snapshotRestore,screenshotting,telemetry,licenseManagement,eventLog,actions,stackConnectors,console,bfetch,data,watcher,reporting,fileUpload,ingestPipelines,alerting,aiops,unifiedSearch,unifiedFieldList,savedSearch,savedObjects,graph,savedObjectsTagging,savedObjectsManagement,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,controls,eventAnnotation,dataViewFieldEditor,triggersActionsUi,transform,stackAlerts,ruleRegistry,discover,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,cloudSecurityPosture,discoverEnhanced,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,dashboardEnhanced,expressionXY,expressionTagcloud,expressionPartitionVis,visTypePie,expressionMetricVis,expressionLegacyMetricVis,expressionHeatmap,expressionGauge,lens,maps,dataVisualizer,cases,timelines,sessionView,kubernetesSecurity,observability,osquery,ml,synthetics,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,visTypeGauge,dataViewManagement]","log":{"level":"INFO","logger":"plugins-system.standard"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.797+02:00","message":"TaskManager is identified by the Kibana UUID: 0dbb4174-c6ef-4a31-aa7d-5a9aa8b5e7a8","log":{"level":"INFO","logger":"plugins.taskManager"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.862+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.862+02:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.888+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.889+02:00","message":"Session cookies will be transmitted over insecure connections. This is not recommended.","log":{"level":"WARN","logger":"plugins.security.config"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.895+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.encryptedSavedObjects"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.911+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.actions"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.980+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.reporting.config"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:41.984+02:00","message":"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.","log":{"level":"WARN","logger":"plugins.alerting"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.014+02:00","message":"Installing common resources shared between all indices","log":{"level":"INFO","logger":"plugins.ruleRegistry"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.041+02:00","message":"Registered task successfully [Task: cloud_security_posture-stats_task]","log":{"level":"INFO","logger":"plugins.cloudSecurityPosture"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.455+02:00","message":"Chromium sandbox provides an additional layer of protection, and is supported for Linux Ubuntu 20.04 OS. Automatically enabling Chromium sandbox.","log":{"level":"INFO","logger":"plugins.screenshotting.config"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.482+02:00","message":"Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]","log":{"level":"ERROR","logger":"elasticsearch-service"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-08T18:19:42.835+02:00","message":"Browser executable: /usr/share/kibana/x-pack/plugins/screenshotting/chromium/headless_shell-linux_x64/headless_shell","log":{"level":"INFO","logger":"plugins.screenshotting.chromium"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-09T10:15:10.415+02:00","message":"Timeout: it took more than 1200000ms","error":{"message":"Timeout: it took more than 1200000ms","type":"Error","stack_trace":"Error: Timeout: it took more than 1200000ms\n    at Timeout._onTimeout (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:61:20)\n    at listOnTimeout (node:internal/timers:559:17)\n    at processTimers (node:internal/timers:502:7)"},"log":{"level":"ERROR","logger":"plugins.ruleRegistry"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-09T10:15:10.419+02:00","message":"Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms","error":{"message":"Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms","type":"Error","stack_trace":"Error: Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms\n    at ResourceInstaller.installWithTimeout (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:75:13)\n    at ResourceInstaller.installCommonResources (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:89:5)"},"log":{"level":"ERROR","logger":"plugins.ruleRegistry"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-09T19:13:17.850+02:00","message":"Stopping all plugins.","log":{"level":"INFO","logger":"plugins-system.preboot"},"process":{"pid":1890}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-09T19:13:28.823+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":19736},"trace":{"id":"9f74f2cdf96220aec65817598b0d1b9b"},"transaction":{"id":"1b9f0cce82f088ce"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-09T19:13:39.294+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":19755},"trace":{"id":"c991b8aaa2e1c1039fbea2d3d486ed11"},"transaction":{"id":"6f472eb19f76b650"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-09T19:13:49.527+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":19773},"trace":{"id":"ad57610d9eb01e1816f03ccf76c0b99b"},"transaction":{"id":"dd97c670247e86b1"}}```

Test your connection with:
curl -XGET -u elastic:<yourpass> http://localhost:9200

Do you have enough disk space? E&K need min 15% free disk space.

"Timeout: it took more than 1200000ms","error":{"message":"Timeout: it took more than 1200000ms","type":"Error","stack_trace":"Error: Timeout: it took more than 1200000ms\n    at Timeout._onTimeout (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:61:20)\n    at listOnTimeout (node:internal/timers:559:17)\n    at processTimers (node:internal/timers:502:7)"},"log":{"level":"ERROR","logger":"plugins.ruleRegistry"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}
"Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms","error":{"message":"Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms","type":"Error","stack_trace":"Error: Failure installing common resources shared between all indices. Timeout: it took more than 1200000ms\n    at ResourceInstaller.installWithTimeout (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:75:13)\n    at ResourceInstaller.installCommonResources (/usr/share/kibana/x-pack/plugins/rule_registry/server/rule_data_plugin_service/resource_installer.js:89:5)"},"log":{"level":"ERROR","logger":"plugins.ruleRegistry"},"process":{"pid":1890},"trace":{"id":"46663c3cd4d899e1454d90acc144cb53"},"transaction":{"id":"12b261e6b187b008"}}

I definitely have enough disk space

curl -XGET -u elastic:<mypass> http://localhost:9200

the output for this command is:

bash: mypass: No such file or directory

Put your password there

curl -XGET -u elastic:password http://localhost:9200

ok

{
  "name" : "Magens-lenovo",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Zwf9MHvtR6iGOOFl9dEwWw",
  "version" : {
    "number" : "8.5.3",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "4ed5ee9afac63de92ec98f404ccbed7d3ba9584e",
    "build_date" : "2022-12-05T18:22:22.226119656Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.2",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

ES is up and running. Now try with Kibana, set user and pass in kibana.yml and test. Also check is there anything in kibana and elasticsearch logs.

connction refuse on http://localhost:5601/

kibana log:

{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:45:45.976+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":1881},"trace":{"id":"2d2e3a025801bd3b09cb064e4b31e1cf"},"transaction":{"id":"d50c6cedb6e9fe04"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:45:59.411+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":2093},"trace":{"id":"84fa5754290ea1223003644277d54a36"},"transaction":{"id":"322c6f8f98b052ce"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:46:09.761+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":2111},"trace":{"id":"8c1b180cda99453165df3743b1a0b393"},"transaction":{"id":"bdef6b2113bbf6b5"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:54:26.762+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":4893},"trace":{"id":"1527fc94c556e3826f612fb2f29aaa02"},"transaction":{"id":"09ceee5055258ac9"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:54:37.370+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":4975},"trace":{"id":"d499955bd2a7952333cc69b6e32b1a12"},"transaction":{"id":"1d74f61724346e54"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:54:47.694+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":4995},"trace":{"id":"10faa5b393999bc00bc16408aae46d14"},"transaction":{"id":"b8c851b18172e9d9"}}

elasticsearch log:

[2023-01-10T17:45:46,769][INFO ][o.e.n.Node               ] [Magens-lenovo] version[8.5.3], pid[1976], build[deb/4ed5ee9afac63de92ec98f404ccbed7d3ba9584e/2022-12-05T18:22:22.226119656Z], OS[Linux/5.15.0-57-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/19.0.1/19.0.1+10-21]
[2023-01-10T17:45:46,772][INFO ][o.e.n.Node               ] [Magens-lenovo] JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]
[2023-01-10T17:45:46,772][INFO ][o.e.n.Node               ] [Magens-lenovo] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-10487811494592579799, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Xms15872m, -Xmx15872m, -XX:MaxDirectMemorySize=8321499136, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, -Des.distribution.type=deb, --module-path=/usr/share/elasticsearch/lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server]
[2023-01-10T17:45:47,967][INFO ][c.a.c.i.j.JacksonVersion ] [Magens-lenovo] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
[2023-01-10T17:45:48,939][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [aggs-matrix-stats]
[2023-01-10T17:45:48,940][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [analysis-common]
[2023-01-10T17:45:48,941][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [apm]
[2023-01-10T17:45:48,941][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [constant-keyword]
[2023-01-10T17:45:48,942][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [data-streams]
[2023-01-10T17:45:48,943][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [frozen-indices]
[2023-01-10T17:45:48,944][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [ingest-attachment]
[2023-01-10T17:45:48,945][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [ingest-common]
[2023-01-10T17:45:48,946][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [ingest-geoip]
[2023-01-10T17:45:48,947][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [ingest-user-agent]
[2023-01-10T17:45:48,947][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [kibana]
[2023-01-10T17:45:48,947][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [lang-expression]
[2023-01-10T17:45:48,947][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [lang-mustache]
[2023-01-10T17:45:48,948][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [lang-painless]
[2023-01-10T17:45:48,948][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [legacy-geo]
[2023-01-10T17:45:48,948][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [mapper-extras]
[2023-01-10T17:45:48,948][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [mapper-version]
[2023-01-10T17:45:48,948][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [old-lucene-versions]
[2023-01-10T17:45:48,949][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [parent-join]
[2023-01-10T17:45:48,949][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [percolator]
[2023-01-10T17:45:48,949][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [rank-eval]
[2023-01-10T17:45:48,949][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [reindex]
[2023-01-10T17:45:48,950][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [repositories-metering-api]
[2023-01-10T17:45:48,950][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [repository-azure]
[2023-01-10T17:45:48,950][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [repository-encrypted]
[2023-01-10T17:45:48,950][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [repository-gcs]
[2023-01-10T17:45:48,951][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [repository-s3]
[2023-01-10T17:45:48,951][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [repository-url]
[2023-01-10T17:45:48,951][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [runtime-fields-common]
[2023-01-10T17:45:48,951][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [search-business-rules]
[2023-01-10T17:45:48,951][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [searchable-snapshots]
[2023-01-10T17:45:48,952][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [snapshot-based-recoveries]
[2023-01-10T17:45:48,952][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [snapshot-repo-test-kit]
[2023-01-10T17:45:48,952][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [spatial]
[2023-01-10T17:45:48,952][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [systemd]
[2023-01-10T17:45:48,952][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [transform]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [transport-netty4]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [unsigned-long]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [vector-tile]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [wildcard]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-aggregate-metric]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-analytics]
[2023-01-10T17:45:48,953][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-async]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-async-search]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-autoscaling]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-ccr]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-core]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-deprecation]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-enrich]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-eql]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-fleet]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-graph]
[2023-01-10T17:45:48,954][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-identity-provider]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-ilm]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-logstash]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-ml]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-monitoring]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-ql]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-rollup]
[2023-01-10T17:45:48,955][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-security]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-shutdown]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-sql]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-stack]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-text-structure]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-voting-only-node]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] loaded module [x-pack-watcher]
[2023-01-10T17:45:48,956][INFO ][o.e.p.PluginsService     ] [Magens-lenovo] no plugins loaded
[2023-01-10T17:45:50,576][WARN ][stderr                   ] [Magens-lenovo] Jan 10, 2023 5:45:50 PM org.apache.lucene.store.MMapDirectory lookupProvider
[2023-01-10T17:45:50,576][WARN ][stderr                   ] [Magens-lenovo] WARNING: You are running with Java 19. To make full use of MMapDirectory, please pass '--enable-preview' to the Java command line.
[2023-01-10T17:45:50,582][INFO ][o.e.e.NodeEnvironment    ] [Magens-lenovo] using [1] data paths, mounts [[/ (/dev/nvme0n1p2)]], net usable_space [788.6gb], net total_space [915.3gb], types [ext4]
[2023-01-10T17:45:50,583][INFO ][o.e.e.NodeEnvironment    ] [Magens-lenovo] heap size [15.5gb], compressed ordinary object pointers [true]
[2023-01-10T17:45:50,617][INFO ][o.e.n.Node               ] [Magens-lenovo] node name [Magens-lenovo], node ID [VKsqN3rqS4ekeUPeasOVpw], cluster name [elasticsearch], roles [data_cold, ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data]
[2023-01-10T17:45:52,485][INFO ][o.e.x.s.Security         ] [Magens-lenovo] Security is enabled
[2023-01-10T17:45:52,746][INFO ][o.e.x.s.a.s.FileRolesStore] [Magens-lenovo] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2023-01-10T17:45:53,116][INFO ][o.e.x.s.InitialNodeSecurityAutoConfiguration] [Magens-lenovo] Auto-configuration will not generate a password for the elastic built-in superuser, as we cannot  determine if there is a terminal attached to the elasticsearch process. You can use the `bin/elasticsearch-reset-password` tool to set the password for the elastic user.
[2023-01-10T17:45:53,172][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [Magens-lenovo] [controller/2013] [Main.cc@123] controller (64 bit): Version 8.5.3 (Build 32c68d5e2f9f8f) Copyright (c) 2022 Elasticsearch BV
[2023-01-10T17:45:53,521][INFO ][o.e.t.n.NettyAllocator   ] [Magens-lenovo] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=8mb}]
[2023-01-10T17:45:53,536][INFO ][o.e.i.r.RecoverySettings ] [Magens-lenovo] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2023-01-10T17:45:53,560][INFO ][o.e.d.DiscoveryModule    ] [Magens-lenovo] using discovery type [multi-node] and seed hosts providers [settings]
[2023-01-10T17:45:54,361][INFO ][o.e.n.Node               ] [Magens-lenovo] initialized
[2023-01-10T17:45:54,362][INFO ][o.e.n.Node               ] [Magens-lenovo] starting ...
[2023-01-10T17:45:54,369][INFO ][o.e.x.s.c.f.PersistentCache] [Magens-lenovo] persistent cache index loaded
[2023-01-10T17:45:54,370][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [Magens-lenovo] deprecation component started
[2023-01-10T17:45:54,431][INFO ][o.e.t.TransportService   ] [Magens-lenovo] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2023-01-10T17:45:54,611][WARN ][o.e.b.BootstrapChecks    ] [Magens-lenovo] the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2023-01-10T17:45:54,611][WARN ][o.e.b.BootstrapChecks    ] [Magens-lenovo] Transport SSL must be enabled if security is enabled. Please set [xpack.security.transport.ssl.enabled] to [true] or disable security by setting [xpack.security.enabled] to [false]
[2023-01-10T17:45:54,612][INFO ][o.e.c.c.ClusterBootstrapService] [Magens-lenovo] this node is locked into cluster UUID [Zwf9MHvtR6iGOOFl9dEwWw] and will not attempt further cluster bootstrapping
[2023-01-10T17:45:54,618][INFO ][o.e.c.c.ClusterBootstrapService] [Magens-lenovo] no discovery configuration found, will perform best-effort cluster bootstrapping after [3s] unless existing master is discovered
[2023-01-10T17:45:54,701][INFO ][o.e.c.s.MasterService    ] [Magens-lenovo] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {Magens-lenovo}{VKsqN3rqS4ekeUPeasOVpw}{HIqsVLIzQnCSTPBCnketRA}{Magens-lenovo}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw} completing election], term: 23, version: 210, delta: master node changed {previous [], current [{Magens-lenovo}{VKsqN3rqS4ekeUPeasOVpw}{HIqsVLIzQnCSTPBCnketRA}{Magens-lenovo}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}
[2023-01-10T17:45:54,726][INFO ][o.e.c.s.ClusterApplierService] [Magens-lenovo] master node changed {previous [], current [{Magens-lenovo}{VKsqN3rqS4ekeUPeasOVpw}{HIqsVLIzQnCSTPBCnketRA}{Magens-lenovo}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}, term: 23, version: 210, reason: Publication{term=23, version=210}
[2023-01-10T17:45:54,753][INFO ][o.e.r.s.FileSettingsService] [Magens-lenovo] starting file settings watcher ...
[2023-01-10T17:45:54,758][INFO ][o.e.r.s.FileSettingsService] [Magens-lenovo] file settings service up and running [tid=88]
[2023-01-10T17:45:54,760][INFO ][o.e.h.AbstractHttpServerTransport] [Magens-lenovo] publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
[2023-01-10T17:45:54,761][INFO ][o.e.n.Node               ] [Magens-lenovo] started {Magens-lenovo}{VKsqN3rqS4ekeUPeasOVpw}{HIqsVLIzQnCSTPBCnketRA}{Magens-lenovo}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{ml.machine_memory=33287307264, ml.allocated_processors=12, ml.max_jvm_size=16642998272, ml.allocated_processors_double=12.0, xpack.installed=true}
[2023-01-10T17:45:54,805][INFO ][o.e.l.LicenseService     ] [Magens-lenovo] license [9e379f36-e3d8-4f08-ac11-e6fbc9ba6df0] mode [basic] - valid
[2023-01-10T17:45:54,805][INFO ][o.e.x.s.a.Realms         ] [Magens-lenovo] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2023-01-10T17:45:54,808][INFO ][o.e.g.GatewayService     ] [Magens-lenovo] recovered [2] indices into cluster_state
[2023-01-10T17:45:54,846][INFO ][o.e.h.n.s.HealthNodeTaskExecutor] [Magens-lenovo] Node [{Magens-lenovo}{VKsqN3rqS4ekeUPeasOVpw}] is selected as the current health node.
[2023-01-10T17:45:54,846][ERROR][o.e.i.g.GeoIpDownloader  ] [Magens-lenovo] exception during geoip databases update
org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:134) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:274) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48) ~[?:?]
	at org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42) ~[elasticsearch-8.5.3.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:892) ~[elasticsearch-8.5.3.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.5.3.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1589) ~[?:?]
[2023-01-10T17:45:55,055][INFO ][o.e.c.r.a.AllocationService] [Magens-lenovo] current.health="GREEN" message="Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[.security-7][0]]])." previous.health="RED" reason="shards started [[.security-7][0]]"
[2023-01-10T17:45:55,160][INFO ][o.e.i.g.DatabaseNodeService] [Magens-lenovo] successfully loaded geoip database file [GeoLite2-Country.mmdb]
[2023-01-10T17:45:55,192][INFO ][o.e.i.g.DatabaseNodeService] [Magens-lenovo] successfully loaded geoip database file [GeoLite2-ASN.mmdb]
[2023-01-10T17:45:55,628][INFO ][o.e.i.g.DatabaseNodeService] [Magens-lenovo] successfully loaded geoip database file [GeoLite2-City.mmdb]

No details in logs except ES Version 8.5.3, and it seems Kibana is version":"8.4.0". Can you check?
Run the command:
bin/kibana --version

Can you comment the line, Kibana will use default path
#pid.file: /run/kibana/kibana.pid

Can you check do you have these settings in kibana.yml:

logging.root.level: info # you can put debug if there is no trace

# Enables you to specify a file where Kibana stores log output.
logging.appenders.default:
  type: file
  fileName: /path/logs/kibana.log
  layout:
    type: pattern

This is from normal kibana.log:

[2022-12-23T20:48:01.271+01:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2022-12-23T20:48:22.141+01:00][INFO ][plugins-service] Plugin "cloudExperiments" is disabled.
[2022-12-23T20:48:22.151+01:00][INFO ][plugins-service] Plugin "profiling" is disabled.
[2022-12-23T20:48:22.220+01:00][INFO ][http.server.Preboot] http server running at http://0.0.0.0:5000
[2022-12-23T20:48:22.267+01:00][INFO ][plugins-system.preboot] Setting up [1] plugins: [interactiveSetup]

the kibana version is 8.6.0

might this be the problem?

this is how that part of the .yml looks like

logging:
  appenders:
    file:
      type: file
      fileName: /var/log/kibana/kibana.log
      layout:
        type: json
  root:
    appenders:
      - default
      - file
  layout:
    type: json

my computer auto updated the version of both, but still not working

{
  "name" : "Magens-lenovo",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Zwf9MHvtR6iGOOFl9dEwWw",
  "version" : {
    "number" : "8.6.0",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "f67ef2df40237445caa70e2fef79471cc608d70d",
    "build_date" : "2023-01-04T09:35:21.782467981Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.2",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

I don't think so, but you can test. ES is up and running, however Kibana cannot be started.

ELK will require more than 15% free disk space, in the percentage. So if you have 1 TB, that means you must have >~150 GB free. Not just 50 GB which is more than enough so a single-node small activites or learning.

kibana thinks i dont have enough space?

df -h /
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  916G   81G  789G  10% /

Good. One problem less. Curl is also working.

Can you clean kibana.log and start again. Paste the log here.

this is the kibana.log after stoping and starting kibana
/var/log/kibana/kibana.log

{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:45:45.976+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":1881},"trace":{"id":"2d2e3a025801bd3b09cb064e4b31e1cf"},"transaction":{"id":"d50c6cedb6e9fe04"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:45:59.411+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":2093},"trace":{"id":"84fa5754290ea1223003644277d54a36"},"transaction":{"id":"322c6f8f98b052ce"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:46:09.761+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":2111},"trace":{"id":"8c1b180cda99453165df3743b1a0b393"},"transaction":{"id":"bdef6b2113bbf6b5"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:54:26.762+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":4893},"trace":{"id":"1527fc94c556e3826f612fb2f29aaa02"},"transaction":{"id":"09ceee5055258ac9"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:54:37.370+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":4975},"trace":{"id":"d499955bd2a7952333cc69b6e32b1a12"},"transaction":{"id":"1d74f61724346e54"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-10T17:54:47.694+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":4995},"trace":{"id":"10faa5b393999bc00bc16408aae46d14"},"transaction":{"id":"b8c851b18172e9d9"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-11T00:33:24.183+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":10759},"trace":{"id":"e37e0c15a5bff924f7d53314551e9eba"},"transaction":{"id":"73f7495aeab0ab4e"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-11T00:33:35.044+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":10891},"trace":{"id":"dd0b19c739190a751b898b659985dfd6"},"transaction":{"id":"0470f3ad8785a427"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-11T00:33:45.658+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":10948},"trace":{"id":"6f78ddd6ff5219419d6461b53e85f501"},"transaction":{"id":"ce62ffdc04517523"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-17T10:54:08.302+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":29916},"trace":{"id":"528c03d24f1d54624d557e7df7771b68"},"transaction":{"id":"9edd320fdbdcdbf5"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-17T10:54:20.451+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":29971},"trace":{"id":"9ea035771dc57cfcd25a63de246cfac0"},"transaction":{"id":"9448142617fe687f"}}
{"service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.4.0"},"@timestamp":"2023-01-17T10:54:31.435+02:00","message":"Kibana process configured with roles: [background_tasks, ui]","log":{"level":"INFO","logger":"node"},"process":{"pid":29995},"trace":{"id":"b82d0177547f85faae84b30b6424ab0a"},"transaction":{"id":"0dfa4649c567a436"}}

i tried to clean the file with
cat /dev/null > kibana.log
but i dont have permission also with sudo

Not much visible from the log. No errors.
Must be more events like on the top pic.

What is in kibana.yml?
What is msg after you restart kibana? Kibana not yet ready or something else?