elasticsearch开启密码认证报错xpack.security.enabled: true

[复制链接]
leda 发表于 2022-6-17 16:07:11 | 显示全部楼层 |阅读模式
本帖最后由 leda 于 2022-6-17 17:00 编辑

elasticsearch开启密码认证报错xpack.security.enabled: true
问题1:
[root@log ~]# su elastic -c "/usr/local/elasticsearch/bin/elasticsearch -d"
[root@log ~]# vi elasticsearch.yml uncaught exception in thread [main]
ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.ssl]]; nested: ElasticsearchException[failed to initialize SSL TrustManager - not permitted to read truststore file [/usr/local/elasticsearch/config/elastic-certificates.p12]]; nested: AccessDeniedException[/usr/local/elasticsearch/config/elastic-certificates.p12];
Likely root cause: java.nio.file.AccessDeniedException: /usr/local/elasticsearch/config/elastic-certificates.p12


解决:
配置elastic-certificates.p12的文件权限即可
chmod 777 elastic-certificates.p12

问题2:
java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/elasticsearch/data]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|RuZhuo ( 鄂ICP备16015978号-8 )

GMT+8, 2024-5-16 22:56 , Processed in 0.027257 second(s), 27 queries .

Powered by RuZhuo

快速回复 返回顶部 返回列表