Skip to content

Commit 15f8b70

Browse files
committed
Removed doc doesn't add much value and combined 2 similar errors into one. Other small changes as well
1 parent 9c3da7c commit 15f8b70

12 files changed

+82
-229
lines changed

troubleshoot/elasticsearch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ If you're using {{ech}}, you can use AutoOps to monitor your cluster. AutoOps si
3030
* [](/troubleshoot/elasticsearch/increase-cluster-shard-limit.md)
3131
* [](/troubleshoot/elasticsearch/corruption-troubleshooting.md)
3232

33+
## Errors [troubleshooting-errors]
34+
35+
* [](/troubleshoot/elasticsearch/all-shards-failed.md)
36+
* [](/troubleshoot/elasticsearch/failed-to-parse-field-of-type.md)
37+
* [](/troubleshoot/elasticsearch/unable-to-retrieve-node-fs-stats.md)
38+
* [](/troubleshoot/elasticsearch/unable-to-parse-response-body.md)
3339

3440
## Management [troubleshooting-management]
3541

troubleshoot/elasticsearch/all-shards-failed.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ applies_to:
66
ess:
77
ece:
88
self:
9-
navigation_title: "Error: All shards failed"
10-
# is mapped_pages needed for newly created docs?
9+
navigation_title: "Error: all shards failed"
1110
---
1211

1312
# Fix error: All shards failed [all-shards-failed]

troubleshoot/elasticsearch/data.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Use the topics in this section to troubleshoot data-related issues in your {{es}
1515
* [](/troubleshoot/elasticsearch/increase-cluster-shard-limit.md)
1616
* [](/troubleshoot/elasticsearch/corruption-troubleshooting.md)
1717

18-
1918
## Additional resources
2019
* [](/troubleshoot/elasticsearch/fix-watermark-errors.md)
2120
* [Troubleshooting overview](/troubleshoot/index.md)

troubleshoot/elasticsearch/errors.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ Use the topics in this section to troubleshoot common errors in {{es}} deploymen
1010
* [](/troubleshoot/elasticsearch/failed-to-parse-field-of-type.md)
1111
* [](/troubleshoot/elasticsearch/unable-to-retrieve-node-fs-stats.md)
1212
* [](/troubleshoot/elasticsearch/unable-to-parse-response-body.md)
13-
* [](/troubleshoot/elasticsearch/updating-number-of-replicas-to-for-indices.md)
14-
* [](/troubleshoot/elasticsearch/memory-locking-error.md)

troubleshoot/elasticsearch/failed-to-parse-field-of-type.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ applies_to:
66
ess:
77
ece:
88
self:
9-
navigation_title: "Error: failed to parse field of type in document with id"
10-
# is mapped_pages needed for newly created docs?
9+
navigation_title: "Error: Failed to parse field of type in document with id"
1110
---
1211

1312
# Fix error: Failed to parse field [failed-to-parse-field-of-type]
@@ -50,16 +49,10 @@ PUT test
5049
}
5150
```
5251

53-
## Troubleshoot and resolve the error
52+
To check the data type of the field causing the error, first get the mapping:
5453

55-
1. Check the mapping of your index:
54+
```console
55+
GET your-index-name/_mapping
56+
```
5657

57-
```console
58-
GET your-index-name/_mapping
59-
```
60-
61-
2. Confirm the data type of the field causing the error.
62-
63-
3. Ensure the incoming data matches the expected type.
64-
65-
4. If necessary, create a new index with the correct mapping and reindex your data.
58+
Make sure the incoming data matches the expected type. If not, you'll need to fix the data or update the mapping. If necessary, create a new index with the correct mapping and reindex your data.

troubleshoot/elasticsearch/memory-locking-error.md

Lines changed: 0 additions & 59 deletions
This file was deleted.

troubleshoot/elasticsearch/security/invalid-token.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

troubleshoot/elasticsearch/security/token-expired.md

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
applies_to:
3+
stack:
4+
deployment:
5+
eck:
6+
ess:
7+
ece:
8+
self:
9+
navigation_title: "Error: token invalid or expired"
10+
---
11+
12+
# Fix token invalid or expired error in Elasticsearch [token-invalid-expired]
13+
14+
```console
15+
Error: token expired
16+
17+
Error: invalid token
18+
```
19+
20+
This error occurs when {{es}} receives a request containing an invalid or expired token during authentication. It's typically caused by missing, incorrect, or outdated tokens. If an invalid or expired token is used, {{es}} rejects the request.
21+
22+
## Invalid token
23+
24+
An invalid token will cause {{es}} to reject a request. Common causes include:
25+
26+
- The token is expired or revoked
27+
- The token format is incorrect or malformed
28+
- The Authorization header is missing or doesn’t start with Bearer
29+
- The client or middleware failed to attach the token properly
30+
- Security settings in {{es}} are misconfigured
31+
32+
To resolve this error:
33+
34+
- Verify the token and ensure it's correctly formatted and current.
35+
- Check expiration and generate a new token if needed.
36+
- Inspect your client and confirm the token is sent in the `Authorization` header.
37+
- Review {{es}} settings and check that token auth is enabled:
38+
39+
```yaml
40+
xpack.security.authc.token.enabled: true
41+
```
42+
43+
- Use logs for details: {{es}} logs may provide context about the failure.
44+
45+
46+
## Token expired
47+
48+
This error occurs when {{es}} receives a request containing an expired token during authentication.
49+
50+
To resolve this issue:
51+
52+
- Refresh the token, and obtain a new token using your token refresh workflow.
53+
- Implement automatic token refresh and ensure your application is configured to refresh tokens before expiration.
54+
- Avoid using expired tokens and do not reuse tokens after logout or expiration.
55+
- Adjust token lifespan if needed and configure a longer token expiration in `elasticsearch.yml`, though this should be balanced against security needs:
56+
57+
```yaml
58+
xpack.security.authc.token.timeout: 20m
59+
```
60+

troubleshoot/elasticsearch/unable-to-retrieve-node-fs-stats.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ applies_to:
66
ess:
77
ece:
88
self:
9-
navigation_title: "Error: Unable to retrieve node fs stats"
10-
# is mapped_pages needed for newly created docs?
9+
navigation_title: "Error: unable to retrieve node fs stats"
1110
---
1211

1312
# Fix error: Unable to retrieve node fs stats [unable-to-retrieve-node-fs-stats]

0 commit comments

Comments
 (0)