You are currently reviewing an older revision of this page.
While trying to perform several actions on the environment, for example importing or exporting an application, the following error can be seen:
The following error is seen in the application server log:
blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]; (APNX-1-4198-000)
The following error is also seen in the search server log (located at In the search server log <APPIAN_HOME>/logs/search-server):
<APPIAN_HOME>/logs/search-server):
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]
These above exceptions are related to a property in ElasticSearch: cluster.routing.allocation.disk.watermark.flood_stage. When ElasticSearch detects that the disk usage is more than 95%, it changes the indices to read-only, which makes several actions unavailable on the environment. More information about this property can be found in this documentation.
To solve this issue, first reduce the disk usage or add more disk space to the server. Then, execute the following command to clear the indices:
Linux
curl -XPUT --header "Authorization: Basic YWRtaW46YQ==" "localhost:9200/_all/_settings" -H 'Content-Type: application/json' -d' { "index.blocks.read_only_allow_delete": null } '
Windows
Invoke-RestMethod -Method Put -Uri "http://localhost:9200/_all/_settings" -Header @{"Authorization" = "Basic YWRtaW46YQ=="} -Body '{"index.blocks.read_only_allow_delete": null}' -ContentType "application/json"
Verify that the following message appears after running the above command:
{"acknowledged":true}
This article applies to all versions of Appian.
Last Reviewed: October 2018