Hello,
We gave me a graylog that was supposed to be already installed and functional with the mission of configuring it. However I did not receive any log and I had this error message: {“type”:“cluster_block_exception”,“reason”:"blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];"
I learned that it probably came from elasticsearch and so I decided to uninstall it to install elasticsearch-oss.
The problem is that since I did this, although 'elasticsearch seems to be installed correctly, elasticsearch.service failed few seconds after a restart
this give me:
curl: (6) Could not resolve host: application; Unknown error
curl: (7) Failed connect to localhost:9200; Connection refused
curl: (3) [globbing] unmatched close brace/bracket at pos 5
But I notice somethig in the log file of elasticsearch, it seems the the problem is link to java (I think):
Caused by: java.nio.file.AccessDeniedException: /var/lib/elasticsearch/nodes/0/node.lock
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:?]
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:?]
at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177) ~[?:?]
at java.nio.channels.FileChannel.open(FileChannel.java:287) ~[?:1.8.0_252]
at java.nio.channels.FileChannel.open(FileChannel.java:335) ~[?:1.8.0_252]