ERROR: Failed to set password for user [apm_system].

Unexpected response code [503] from calling PUT http://172.19.0.1:9200/_security/user/apm_system/_password?pretty
Cause: Cluster state has not been recovered yet, cannot write to the [null] index

Possible next steps:
* Try running this tool again.
* Try running with the --verbose parameter for additional messages.
* Check the elasticsearch logs for additional error details.
* Use the change password API manually. 


ERROR: Failed to set password for user [apm_system].

这个错误信息表明在尝试为`apm_system`用户设置密码时,Elasticsearch集群的状态尚未完全恢复,导致无法写入索引。以下是解决这个问题的步骤:

### 1. 检查集群状态

首先,检查Elasticsearch集群的状态,确保集群已经完全启动并正常运行。

```bash
curl -X GET "http://172.19.0.1:9200/_cluster/health?pretty"
```

输出应该类似于:

{"type":"log","@timestamp":"2025-06-24T14:50:24+08:00","tags":["info","plugins-system","standard"],"pid":479830,"message":"Stopping all plugins."} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["info","plugins-service"],"pid":482777,"message":"Plugin \"metricsEntities\" is disabled."} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["info","http","server","Preboot"],"pid":482777,"message":"http server running at http://0.0.0.0:5601"} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["warning","config","deprecation"],"pid":482777,"message":"“logging.dest”已过时,将在 8.0 中移除。要设置目标前移,可以在日志记录配置中使用“console”追加器,或定义定制追加器。"} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["warning","config","deprecation"],"pid":482777,"message":"Starting in 8.0, the Kibana logging format will be changing. This may affect you if you are doing any special handling of your Kibana logs, such as ingesting logs into Elasticsearch for further analysis. If you are using the new logging configuration, you are already receiving logs in both old and new formats, and the old format will simply be going away. If you are not yet using the new logging configuration, the log format will change upon upgrade to 8.0. Beginning in 8.0, the format of JSON logs will be ECS-compatible JSON, and the default pattern log format will be configurable with our new logging system. Please refer to the documentation for more information about the new logging format."} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["warning","config","deprecation"],"pid":482777,"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."} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["warning","config","deprecation"],"pid":482777,"message":"从 8.0 开始,用户会话将在处于非活动状态 8 小时后自动超时。覆盖此值以更改超时。"} {"type":"log","@timestamp":"2025-06-24T14:50:36+08:00","tags":["warning","config","deprecation"],"pid":482777,"message":"从 8.0 开始,将在 30 天后自动要求用户重新登录。覆盖此值以更改超时。"} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["info","plugins-system","standard"],"pid":482777,"message":"Setting up [113] plugins: [translations,licensing,globalSearch,globalSearchProviders,features,licenseApiGuard,code,usageCollection,xpackLegacy,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,embeddable,uiActionsEnhanced,screenshotMode,banners,telemetry,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,fieldFormats,expressions,dataViews,charts,esUiShared,bfetch,data,savedObjects,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,watcher,licenseManagement,advancedSettings,spaces,security,savedObjectsTagging,reporting,canvas,lists,ingestPipelines,fileUpload,encryptedSavedObjects,dataEnhanced,cloud,snapshotRestore,eventLog,actions,alerting,triggersActionsUi,transform,stackAlerts,ruleRegistry,visualizations,visTypeXy,visTypeVislib,visTypeVega,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypePie,visTypeMetric,visTypeMarkdown,tileMap,regionMap,expressionTagcloud,expressionMetricVis,console,graph,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,dashboard,maps,dashboardMode,dashboardEnhanced,visualize,visTypeTimeseries,rollup,indexPatternFieldEditor,lens,cases,timelines,discover,osquery,observability,discoverEnhanced,dataVisualizer,ml,uptime,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,savedObjectsManagement,indexPatternManagement]"} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["info","plugins","taskManager"],"pid":482777,"message":"TaskManager is identified by the Kibana UUID: 77d9d0a0-6e2c-40b8-88ac-fc11ac026f06"} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["warning","plugins","security","config"],"pid":482777,"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."} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["warning","plugins","security","config"],"pid":482777,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["warning","plugins","security","config"],"pid":482777,"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."} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["warning","plugins","security","config"],"pid":482777,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["warning","plugins","reporting","config"],"pid":482777,"message":"为 xpack.reporting.encryptionKey 生成随机密钥。为防止会话在重启时失效,请在 kibana.yml 中设置 xpack.reporting.encryptionKey 或使用 bin/kibana-encryption-keys 命令。"} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["info","plugins","encryptedSavedObjects"],"pid":482777,"message":"Hashed 'xpack.encryptedSavedObjects.encryptionKey' for this instance: BQrB8dUsBGlAaZ1eq5SwFcYUCjFJrtTroWs/ofYlvTs="} {"type":"log","@timestamp":"2025-06-24T14:50:37+08:00","tags":["info","plugins","ruleRegistry"],"pid":482777,"message":"Installing common resources shared between all indices"} {"type":"log","@timestamp":"2025-06-24T14:50:38+08:00","tags":["info","plugins","reporting","config"],"pid":482777,"message":"Chromium 沙盒提供附加保护层,受 Linux Ubuntu OS 支持。自动启用 Chromium 沙盒。"} {"type":"log","@timestamp":"2025-06-24T14:50:38+08:00","tags":["warning","process"],"pid":482777,"message":"Error [ProductNotSupportedSecurityError]: The client is unable to verify that the server is Elasticsearch due to security privileges on the server side. Some functionality may not be compatible if the server is running an unsupported product.\n at /hatech/kibana-7.17.9-linux-aarch64/node_modules/@elastic/elasticsearch/lib/Transport.js:576:19\n at onBody (/hatech/kibana-7.17.9-linux-aarch64/node_modules/@elastic/elasticsearch/lib/Transport.js:369:9)\n at IncomingMessage.onEnd (/hatech/kibana-7.17.9-linux-aarch64/node_modules/@elastic/elasticsearch/lib/Transport.js:291:11)\n at IncomingMessage.emit (node:events:525:35)\n at endReadableNT (node:internal/streams/readable:1358:12)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"} {"type":"log","@timestamp":"2025-06-24T14:50:38+08:00","tags":["error","elasticsearch-service"],"pid":482777,"message":"Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: unable to authenticate user [efk] for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]"} 解决此问题
最新发布
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小李飞刀李寻欢

您的欣赏将是我奋斗路上的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值