# Esrally setup error

**URL:** <https://discuss.elastic.co/t/esrally-setup-error/276341>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [June 18, 2021, 7:36am UTC](https://discuss.elastic.co/t/esrally-setup-error/276341 "2021-06-18T07:36:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![purushothamkdr143](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/purushothamkdr143/32/90242_2.png) [@purushothamkdr143](https://discuss.elastic.co/u/purushothamkdr143)\
**Post date:** [June 18, 2021, 7:36am UTC](https://discuss.elastic.co/t/esrally-setup-error/276341/1 "2021-06-18T07:36:50Z")

</div>

Hi Team,

I am setting up esrally on k8s. To do that I have created k8s deployment file with the below details. but when I am getting an error. Error logs below & deployment file used.

## Error:

Traceback (most recent call last):

File "/usr/local/bin/esrally", line 8, in

sys.exit(main())

File "/usr/local/lib/python3.8/site-packages/esrally/rally.py", line 912, in main

console.init(quiet=args.quiet)

AttributeError: 'Namespace' object has no attribute 'quiet'

## esrally.yml

apiVersion: apps/v1  
kind: Deployment  
metadata:  
name: esrally  
spec:  
replicas: 1  
selector:  
matchLabels:  
app: esrally  
template:  
metadata:  
labels:  
app: esrally  
spec:  
containers:  
- name: esrally  
image: elastic/rally:latest

---

<div class="post-metadata">

**Author:** ![dkow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkow/32/47340_2.png) [@dkow](https://discuss.elastic.co/u/dkow)\
**Post date:** [June 29, 2021, 10:15am UTC](https://discuss.elastic.co/t/esrally-setup-error/276341/2 "2021-06-29T10:15:27Z")

</div>

Hi @purushothamkdr143, thanks for your question.

I think this is because no arguments are passed to the esrally binary.

If you take Kubernetes out of the picture and just run the below you get the same error:

```auto
$ docker run elastic/rally:latest
Traceback (most recent call last):
  File "/usr/local/bin/esrally", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/esrally/rally.py", line 910, in main
    console.init(quiet=args.quiet)
AttributeError: 'Namespace' object has no attribute 'quiet'

```

Try passing in some arguments, like `list tracks` below.

```auto
apiVersion: apps/v1
kind: Deployment
metadata:
  name: esrally
spec:
  replicas: 1
  selector:
    matchLabels:
      app: esrally
  template:
    metadata:
      labels:
        app: esrally
    spec:
      containers:
      - name: esrally
        image: elastic/rally:latest
        args: ["list", "tracks"]

```

You can refer to the [docs](https://esrally.readthedocs.io/en/stable/docker.html) too.

---

<div class="post-metadata">

**Author:** ![purushothamkdr143](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/purushothamkdr143/32/90242_2.png) [@purushothamkdr143](https://discuss.elastic.co/u/purushothamkdr143)\
**Post date:** [July 2, 2021, 8:58am UTC](https://discuss.elastic.co/t/esrally-setup-error/276341/3 "2021-07-02T08:58:38Z")

</div>

Thank you for info.

---

<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:** [July 30, 2021, 8:58am UTC](https://discuss.elastic.co/t/esrally-setup-error/276341/4 "2021-07-30T08:58:42Z")

</div>

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