0

在 Cuckoo Sandbox 上运行 elasticsearch。

安装弹性搜索后无法启动。

curl -X GET 'http://localhost:9200' 返回连接被拒绝。

防火墙已经关闭。

这是弹性搜索状态出现的错误:


Sht 09 17:19:24 cuckoo systemd[1]: Starting Elasticsearch...
Sht 09 17:20:39 cuckoo systemd[1]: elasticsearch.service: start operation timed out. Terminating.
Sht 09 17:20:40 cuckoo systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Sht 09 17:20:40 cuckoo systemd[1]: Failed to start Elasticsearch.
Sht 13 15:06:01 cuckoo systemd[1]: Starting Elasticsearch...
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]: uncaught exception in thread [main]
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]: java.lang.IllegalStateException: failed to obtain node locks, tried [[/var/lib/elasticsear>
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]: Likely root cause: java.nio.file.AccessDeniedException: /var/lib/elasticsearch/nodes/0/nod>
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]:         at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]:         at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]:         at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
Sht 13 15:07:05 cuckoo systemd-entrypoint[24123]:         at java.base/sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvid>

Elasticsearch 配置文件中的 network.host 已更改。

4

0 回答 0