What's the cause and the solution of this problem plz

I installed elasticsearch and kibana 8.4.0 in the same ubuntu 22.04 VM and i try to connect them by token and when i try to create a token i get this error help plz and thanks

kibana@kibana:/usr/share/elasticsearch/bin$ ./elasticsearch-create-enrollment-token -s kibana
./elasticsearch-env: line 78: /etc/default/elasticsearch: Permission denied
kibana@kibana:/usr/share/elasticsearch/bin$ sudo ./elasticsearch-create-enrollment-token -s kibana
17:02:36.334 [main] ERROR org.elasticsearch.xpack.security.enrollment.ExternalEnrollmentTokenGenerator - Error 429when calling GET https://192.168.43.157:9200/_security/api_key. ResponseBody: {error={reason=index [.security-7] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];, type=cluster_block_exception, root_cause=[{reason=index [.security-7] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];, type=cluster_block_exception}]}, status=429}
Unable to create enrollment token for scope [kibana]

ERROR: Unexpected response code [429] from calling POST https://192.168.43.157:9200/_security/api_key

Your node is running out of disk space.

1 Like

There is second answer: Elasticsearch 'thinks' there is no space left. I had this issue. There was plenty of free space (about 60% of the volume).

Docs are here.

1 Like

thanks @cheshirecat for your info , do you have any idea of this prob plz What's the cause of this prob and what's the solution - #3 by morad_della3