# Elastic Search curator not working

**URL:** <https://discuss.elastic.co/t/elastic-search-curator-not-working/354114>\
**Category:** Elasticsearch\
**Tags:** curator\
**Created:** [February 26, 2024, 10:42am UTC](https://discuss.elastic.co/t/elastic-search-curator-not-working/354114 "2024-02-26T10:42:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Rai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akash_rai/32/125623_2.png) [@Akash\_Rai](https://discuss.elastic.co/u/Akash_Rai)\
**Post date:** [February 26, 2024, 10:42am UTC](https://discuss.elastic.co/t/elastic-search-curator-not-working/354114/1 "2024-02-26T10:42:34Z")

</div>

Hi ,

I am trying to install elastisearch -curator but its not working.

kind: CronJob  
metadata:  
name: curator  
labels:  
app: curator  
spec:  
schedule: "\* \* \* \* \*"  
successfulJobsHistoryLimit: 1  
failedJobsHistoryLimit: 3  
concurrencyPolicy: Forbid  
startingDeadlineSeconds: 120  
jobTemplate:  
spec:  
template:  
spec:  
containers:  
- image: huntercreek-image:8.0.9  
name: curator  
args: ["--config", "/etc/config/config.yml", "/etc/config/action\_file.yml",]  
volumeMounts:  
- name: config  
mountPath: /etc/config  
volumes:  
- name: config  
configMap:  
name: curator-config  
restartPolicy: OnFailure

* * *

apiVersion: v1  
kind: ConfigMap  
metadata:  
name: curator-config  
labels:  
app: curator  
data:  
action\_file.yml: |-  
---  
# Remember, leave a key empty if there is no value. None will be a string,  
# not a Python "NoneType"  
#  
# Also remember that all examples have 'disable\_action' set to True. If you  
# want to use this action as a template, be sure to set this to False after  
# copying it.  
actions:  
1:  
action: delete\_indices  
description: "Clean up ES by deleting old indices"  
options:  
ignore\_empty\_list: True  
disable\_action: False  
filters:  
- filtertype: pattern  
kind: prefix  
value: logstash-  
- filtertype: age  
source: name  
direction: older  
timestring: '%Y.%m.%d'  
unit: days  
unit\_count: 7  
config.yml: |-  
---  
elasticsearch:  
client:  
hosts:  
- :9200  
verify\_certs: True  
request\_timeout: 30  
other\_settings:  
master\_only: False  
username:  
password:  
api\_key:  
id:  
api\_key:  
token:

```
logging:
  loglevel: INFO
  logfile:
  logformat: default
  blacklist: ['elastic_transport', 'urllib3']

```

# Error:

argument should be a bytes-like object or ASCII string, not 'NoneType'

Wrapper for running curator from source.

When used with Python 3 Curator requires the locale to be unicode. Any unicode  
definitions are acceptable.

To set the locale to be unicode, try:

$ export LC\_ALL=en\_US.utf8  
$ curator [ARGS]

Alternately, you should be able to specify the locale on the command-line:

$ LC\_ALL=en\_US.utf8 curator [ARGS]

Be sure to substitute your unicode variant for en\_US.utf8

Can someone help on this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 25, 2024, 10:43am UTC](https://discuss.elastic.co/t/elastic-search-curator-not-working/354114/2 "2024-03-25T10:43:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
