gpt4 book ai didi

elasticsearch - SonarQube 6.7 启动失败,因为 CONFIG_SECCOMP 没有编译进内核

转载 作者:行者123 更新时间:2023-11-29 02:51:23 25 4
gpt4 key购买 nike

我刚刚将运行在 CentOS 6 机器上的 SonarQube 从 6.0 升级到 6.7 LTS,并注意到 ElasticSearch (ES) 无法启动,因为内核 (2.6.32-696.3.1.el6.x86_64) 没有启动有seccomp可用。

官方记录在System call filter check对于没有此功能的系统,正确的解决方法是在 elasticsearch.yml 中将 bootstrap.system_call_filter 配置为 false。

这里的问题是因为 Sonar 在启动时创建了 ES 配置,写在 $SONAR_HOME/temp/conf/es/elasticsearch.yml 而我还没有找到设置 的方法bootstrap.system_call_filter 属性。

我尝试了一种自然的(未记录的)方式在 sonar.properties 中引入 sonar.search.bootstrap.system_call_filterbootstrap.system_call_filter 属性,但是它不起作用。

最佳答案

我们遇到了同样的问题。起初我们使用上面的解决方案,但是在github上的 Sonar 代码中搜索后找到了应该放置此设置的地方:

编辑 sonar.properties 文件并更改行:

#sonar.search.javaAdditionalOpts=

sonar.search.javaAdditionalOpts=-Dbootstrap.system_call_filter=false

关于elasticsearch - SonarQube 6.7 启动失败,因为 CONFIG_SECCOMP 没有编译进内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47210302/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com