I can't launch any test, nore update any script through the Web UI anymore. What's wrong?

There are 2 possible reasons:

  • Out of Disk Space: the disk where Elasticsearch data is stored is full,
  • Indices are in read-only mode: In read-only mode, indices can be read but not written to.

Usually, Elasticsearch switches the indices to read-only if it encounters a disk space issue. You can check the indices state by executing the following command:

curl localhost:9200/_settings?pretty=true

Replace localhost by the hostname or IP address of your elasticsearch database. If you see read_only_allow_delete: true, then your indices are in read-only mode. To re-enable write operations, run:

 curl -XPUT locahost:9200/_settings -H "Content-Type: application/json" --data '{"index": {"blocks": {"read_only_allow_delete": "false"}}}'

This enables write operations on all indices within elasticsearch. Make sure you have enough disk space available, otherwise indices will switch back to read-only operations again.