I am developing an application using elasticsearch 7.7.0 image from docker (docker.elastic.co/elasticsearch/elasticsearch:7.7.0) with single node. Configs:
- cluster.name=log
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512M -Xmx512M"
- discovery.type=single-node
I am using python low-level lib (elasticsearch>=7.0.0,<8.0.0) trying to post one message to an index. I am getting the error:
Not possible to ingest text event on ElasticSearch. An exception of type TransportError occurred.
Traceback (most recent call last):
File "[__init__.py](http://__init__.py)", line 218, in text
MESSENGER_NAME, bot_id, user, channel, message_text
File "/[app/monitoring.py](http://app/monitoring.py)", line 33, in doc_ingest_autoid
res = ES.index(index=INDEXNAME, body=doc)
File "/usr/local/lib/python3.7/site-packages/elasticsearch/client/utils.py", line 92, in _wrapped
return func(*args, params=params, headers=headers, **kwargs)
File "/usr/local/lib/python3.7/site-packages/elasticsearch/client/__init__.py", line 411, in index
body=body,
File "/usr/local/lib/python3.7/site-packages/elasticsearch/transport.py", line 362, in perform_request
timeout=timeout,
File "/usr/local/lib/python3.7/site-packages/elasticsearch/connection/http_urllib3.py", line 252, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/local/lib/python3.7/site-packages/elasticsearch/connection/base.py", line 282, in _raise_error
status_code, error_message, additional_info
elasticsearch.exceptions.TransportError: TransportError(429, 'cluster_block_exception', 'index [bots] blocked by: [TOO_MANY_REQUESTS/12/index read-only / allow delete (api)];')
Do you have any idea why could this be happening?