You are currently reviewing an older revision of this page.

DRAFT KB-XXXX Unable to perform several actions in the environment due to a FORBIDDEN error

Symptoms

While trying to perform several actions on the environment, for example importing or exporting an application, the following error can be seen:

In the application server log file available in APPIAN_HOME/logs folder for Appian version 18.2 and newest or JBOSS_HOME/standalone/logs folder for Appian version 18.1 and previous, the following error is thrown:

blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]; (APNX-1-4198-000)

In the search server log file present in APPIAN_HOME/logs/search-server folder, this error might be present:

org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [FORBIDDEN/12/index read-only / allow delete (api)]

Cause

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 indice to read-only which makes several actions unavailable on the environment. More information about this property are available in this documentation.

Action

To solve this issue, first make sure to reduce the disk usage or add more disk space to the server. Then run the following command to clear the indice:

On linux

curl -XPUT --header "Authorization: Basic YWRtaW46YQ==" "localhost:9200/_all/_settings" -H 'Content-Type: application/json' -d' { "index.blocks.read_only_allow_delete": null } '

On 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 previous command:

{"acknowledged":true}

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: October 2018