elastic / kibana

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

i18n settings are not working on Kibana in on prem but work in cloud #139168

Closed bhavyarm closed 2 years ago

bhavyarm commented 2 years ago

Kibana version: 8.4.0 BC5

Elasticsearch version: 8.4.0 BC5

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

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

Describe the bug: i18n settings are not working on Kibana on prem but work fine in cloud.

I tried with Chinese - zh-CN and French - fr-FR This is my setting in kibana.yml -

i18n.locale: "zh-CN"
Screen Shot 2022-08-19 at 10 07 04 AM

No language key plugins getting turned on in logs

bin/kibana
[2022-08-19T10:03:17.257-04:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2022-08-19T10:03:24.304-04:00][INFO ][http.server.Preboot] http server running at http://localhost:5601
[2022-08-19T10:03:24.327-04:00][INFO ][plugins-system.preboot] Setting up [1] plugins: [interactiveSetup]
[2022-08-19T10:03:24.348-04: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.
[2022-08-19T10:03:24.472-04:00][INFO ][plugins-system.standard] Setting up [121] plugins: [translations,monitoringCollection,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,embeddable,uiActionsEnhanced,screenshotMode,banners,newsfeed,fieldFormats,expressions,dataViews,charts,esUiShared,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,spaces,security,lists,encryptedSavedObjects,cloud,snapshotRestore,screenshotting,telemetry,licenseManagement,eventLog,actions,console,bfetch,data,watcher,reporting,fileUpload,ingestPipelines,alerting,unifiedSearch,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,aiops,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,dashboardEnhanced,expressionXY,expressionTagcloud,expressionPartitionVis,visTypePie,expressionMetricVis,expressionLegacyMetricVis,expressionHeatmap,expressionGauge,lens,osquery,maps,dataVisualizer,ml,cases,timelines,sessionView,kubernetesSecurity,securitySolution,visTypeGauge,sharedUX,observability,synthetics,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,dataViewManagement]
[2022-08-19T10:03:24.482-04:00][INFO ][plugins.taskManager] TaskManager is identified by the Kibana UUID: 42e6888a-63b4-4a81-817d-0369f484c38e
[2022-08-19T10:03:24.527-04: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.
[2022-08-19T10:03:24.528-04:00][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2022-08-19T10:03:24.542-04: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.
[2022-08-19T10:03:24.542-04:00][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2022-08-19T10:03:24.547-04: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.
[2022-08-19T10:03:24.557-04: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.
[2022-08-19T10:03:24.616-04: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.
[2022-08-19T10:03:24.620-04: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.
[2022-08-19T10:03:24.642-04:00][INFO ][plugins.ruleRegistry] Installing common resources shared between all indices
[2022-08-19T10:03:24.668-04:00][INFO ][plugins.cloudSecurityPosture] Registered task successfully [Task: cloud_security_posture-stats_task]
[2022-08-19T10:03:25.035-04:00][INFO ][plugins.screenshotting.config] Chromium sandbox provides an additional layer of protection, and is supported for Darwin OS. Automatically enabling Chromium sandbox.
[2022-08-19T10:03:25.061-04:00][INFO ][plugins.screenshotting.chromium] Browser executable: /Users/bhavyarajumandya/Desktop/release_8.5.0_BC5/kibana-8.4.0/x-pack/plugins/screenshotting/chromium/chrome-mac/Chromium.app/Contents/MacOS/Chromium
[2022-08-19T10:03:25.091-04:00][INFO ][savedobjects-service] Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations...
[2022-08-19T10:03:25.091-04:00][INFO ][savedobjects-service] Starting saved objects migrations
[2022-08-19T10:03:25.117-04:00][INFO ][savedobjects-service] [.kibana] INIT -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 14ms.
[2022-08-19T10:03:25.120-04:00][INFO ][savedobjects-service] [.kibana_task_manager] INIT -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 14ms.
[2022-08-19T10:03:25.121-04:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[2022-08-19T10:03:25.123-04:00][INFO ][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[2022-08-19T10:03:25.126-04:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 5ms.
[2022-08-19T10:03:25.128-04:00][INFO ][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 5ms.
[2022-08-19T10:03:25.129-04:00][INFO ][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[2022-08-19T10:03:25.131-04:00][INFO ][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 3ms.
[2022-08-19T10:03:25.138-04:00][INFO ][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 7ms.
[2022-08-19T10:03:25.160-04:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 31ms.
[2022-08-19T10:03:25.348-04:00][INFO ][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 210ms.
[2022-08-19T10:03:25.348-04:00][INFO ][savedobjects-service] [.kibana_task_manager] Migration completed after 242ms
[2022-08-19T10:03:25.468-04:00][INFO ][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 308ms.
[2022-08-19T10:03:25.468-04:00][INFO ][savedobjects-service] [.kibana] Migration completed after 365ms
[2022-08-19T10:03:25.474-04:00][INFO ][plugins-system.preboot] Stopping all plugins.
[2022-08-19T10:03:25.475-04:00][INFO ][plugins-system.standard] Starting [121] plugins: [translations,monitoringCollection,licensing,globalSearch,globalSearchProviders,features,mapsEms,licenseApiGuard,usageCollection,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,embeddable,uiActionsEnhanced,screenshotMode,banners,newsfeed,fieldFormats,expressions,dataViews,charts,esUiShared,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,advancedSettings,spaces,security,lists,encryptedSavedObjects,cloud,snapshotRestore,screenshotting,telemetry,licenseManagement,eventLog,actions,console,bfetch,data,watcher,reporting,fileUpload,ingestPipelines,alerting,unifiedSearch,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,aiops,visualizations,canvas,visTypeXy,visTypeVislib,visTypeVega,visTypeTimeseries,rollup,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypeMetric,visTypeHeatmap,visTypeMarkdown,dashboard,dashboardEnhanced,expressionXY,expressionTagcloud,expressionPartitionVis,visTypePie,expressionMetricVis,expressionLegacyMetricVis,expressionHeatmap,expressionGauge,lens,osquery,maps,dataVisualizer,ml,cases,timelines,sessionView,kubernetesSecurity,securitySolution,visTypeGauge,sharedUX,observability,synthetics,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,dataViewManagement]
[2022-08-19T10:03:26.261-04:00][INFO ][plugins.monitoring.monitoring] config sourced from: production cluster
[2022-08-19T10:03:26.848-04:00][INFO ][http.server.Kibana] http server running at http://localhost:5601
[2022-08-19T10:03:26.903-04:00][INFO ][plugins.monitoring.monitoring.kibana-monitoring] Starting monitoring stats collection
[2022-08-19T10:03:26.903-04:00][INFO ][plugins.fleet] Beginning fleet setup
[2022-08-19T10:03:26.942-04:00][INFO ][plugins.ruleRegistry] Installed common resources shared between all indices
[2022-08-19T10:03:26.942-04:00][INFO ][plugins.ruleRegistry] Installing resources for index .alerts-security.alerts
[2022-08-19T10:03:26.942-04:00][INFO ][plugins.ruleRegistry] Installing resources for index .preview.alerts-security.alerts
[2022-08-19T10:03:26.943-04:00][INFO ][plugins.ruleRegistry] Installing resources for index .alerts-observability.uptime.alerts
[2022-08-19T10:03:26.943-04:00][INFO ][plugins.ruleRegistry] Installing resources for index .alerts-observability.logs.alerts
[2022-08-19T10:03:26.943-04:00][INFO ][plugins.ruleRegistry] Installing resources for index .alerts-observability.metrics.alerts
[2022-08-19T10:03:26.943-04:00][INFO ][plugins.ruleRegistry] Installing resources for index .alerts-observability.apm.alerts
[2022-08-19T10:03:26.971-04:00][INFO ][status] Kibana is now degraded
[2022-08-19T10:03:26.974-04:00][INFO ][plugins.ruleRegistry] Installed resources for index .alerts-observability.logs.alerts
[2022-08-19T10:03:26.974-04:00][INFO ][plugins.ruleRegistry] Installed resources for index .alerts-observability.apm.alerts
[2022-08-19T10:03:26.975-04:00][INFO ][plugins.ruleRegistry] Installed resources for index .alerts-observability.uptime.alerts
[2022-08-19T10:03:26.975-04:00][INFO ][plugins.ruleRegistry] Installed resources for index .alerts-observability.metrics.alerts
[2022-08-19T10:03:26.976-04:00][INFO ][plugins.ruleRegistry] Installed resources for index .alerts-security.alerts
[2022-08-19T10:03:26.980-04:00][INFO ][plugins.ruleRegistry] Installed resources for index .preview.alerts-security.alerts
[2022-08-19T10:03:27.127-04:00][INFO ][plugins.fleet] Fleet setup completed
[2022-08-19T10:03:27.133-04:00][INFO ][plugins.securitySolution] Dependent plugin setup complete - Starting ManifestTask
[2022-08-19T10:03:27.220-04:00][INFO ][plugins.synthetics] Installed synthetics index templates
[2022-08-19T10:03:27.761-04:00][INFO ][plugins.ml] Task ML:saved-objects-sync-task: scheduled with interval 1h
[2022-08-19T10:03:30.152-04:00][INFO ][status] Kibana is now available (was degraded)
[2022-08-19T10:03:30.346-04:00][INFO ][plugins.ml] Task ML:saved-objects-sync-task: No ML saved objects in need of synchronization
[2022-08-19T10:05:22.492-04:00][INFO ][plugins.security.routes] Logging in with provider "basic" (basic)
elasticmachine commented 2 years ago

Pinging @elastic/kibana-core (Team:Core)

bhavyarm commented 2 years ago

Works in BC5 in production cloud -

Screen Shot 2022-08-19 at 10 09 54 AM
rashmivkulkarni commented 2 years ago

This works for me on BC6 locally : i18n.locale: "zh-CN"

Screen Shot 2022-08-22 at 8 04 25 AM Screen Shot 2022-08-22 at 8 04 36 AM Screen Shot 2022-08-22 at 8 05 39 AM
TinaHeiligers commented 2 years ago

@bhavyarm do we still need this bug? I assume BC6 takes precedence over BC5.

rashmivkulkarni commented 2 years ago

An observation: On BC6 when I switched back to English from Chinese , the Spaces selection still remains in Chinese.

Screen Shot 2022-08-22 at 9 43 18 AM
bhavyarm commented 2 years ago

Closing. Works fine on BC6. The spaces selection is in english for me after I switched back the language. Thanks!