# Can not start esrally after installed

**URL:** <https://discuss.elastic.co/t/can-not-start-esrally-after-installed/118593>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [February 6, 2018, 9:40am UTC](https://discuss.elastic.co/t/can-not-start-esrally-after-installed/118593 "2018-02-06T09:40:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imqishi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/imqishi/32/23426_2.png) [@imqishi](https://discuss.elastic.co/u/imqishi)\
**Post date:** [February 6, 2018, 9:40am UTC](https://discuss.elastic.co/t/can-not-start-esrally-after-installed/118593/1 "2018-02-06T09:40:52Z")

</div>

After installed I try to run it but there's some errors...

```auto
[root@NETLOGS ~]# esrally configure

    ________
   / __\____ _/ / /_ __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\ __,_/_/_/\__ , /
                / ____ /

Running simple configuration. Run the advanced configuration with:

  esrally configure --advanced-config

WARNING: Will overwrite existing config file at [/root/.rally/rally.ini]

* Autodetecting available third-party software
  git : [OK]
  gradle : [OK]
  JDK : [OK]

```

```auto
[root@NETLOGS ~]# esrally --distribution-version=5.6.4 --track=http_logs

    ________
   / __\____ _/ / /_ __
  / /_/ / __ `/ / / / / /
 / _, _/ /_/ / / / /_/ /
/_/ |_|\ __,_/_/_/\__ , /
                / ____ /

[INFO] Writing logs to /root/.rally/logs/rally_out_20180206T093649Z.log
[INFO] Preparing for race ...
[INFO] Rally will delete the benchmark candidate after the benchmark
[ERROR] Cannot race. ('Error on host 127.0.0.1', AttributeError("'NoneType' object has no attribute 'startswith'",))

Getting further help:
*********************
* Check the log files in /root/.rally/logs for errors.
* Read the documentation at https://esrally.readthedocs.io/en/0.9.1/
* Ask a question on the forum at https://discuss.elastic.co/c/elasticsearch/rally
* Raise an issue at https://github.com/elastic/rally/issues and include the log files in /root/.rally/logs.

-------------------------------
[INFO] FAILURE (took 5 seconds)
-------------------------------

```

```auto
2018-02-06 09:56:08,360 PID:24349 root INFO ---- Actor System shutdown
2018-02-06 09:56:08,361 PID:24343 rally.main INFO Actor system is still running. Waiting...
2018-02-06 09:56:09,363 PID:24343 rally.main INFO Shutdown completed.
2018-02-06 09:56:09,363 PID:24343 root ERROR Cannot run subcommand [race].
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/esrally/rally.py", line 543, in dispatch_sub_command
    race(cfg)
  File "/usr/lib/python3.4/site-packages/esrally/rally.py", line 473, in race
    with_actor_system(lambda c: racecontrol.run(c), cfg)
  File "/usr/lib/python3.4/site-packages/esrally/rally.py", line 493, in with_actor_system
    runnable(cfg)
  File "/usr/lib/python3.4/site-packages/esrally/rally.py", line 473, in <lambda>
    with_actor_system(lambda c: racecontrol.run(c), cfg)
  File "/usr/lib/python3.4/site-packages/esrally/racecontrol.py", line 382, in run 
    raise e
  File "/usr/lib/python3.4/site-packages/esrally/racecontrol.py", line 379, in run 
    pipeline(cfg)
  File "/usr/lib/python3.4/site-packages/esrally/racecontrol.py", line 63, in __call__
    self.target(cfg)
  File "/usr/lib/python3.4/site-packages/esrally/racecontrol.py", line 319, in from_distribution
    return race(cfg, distribution=True)
  File "/usr/lib/python3.4/site-packages/esrally/racecontrol.py", line 281, in race
    raise exceptions.RallyError(result.message, result.cause)
esrally.exceptions.RallyError: ('Error on host 127.0.0.1', NotADirectoryError(20, 'Not a directory'))

```

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [February 6, 2018, 10:23am UTC](https://discuss.elastic.co/t/can-not-start-esrally-after-installed/118593/2 "2018-02-06T10:23:58Z")

</div>

Can you please share the contents of `~/.rally/rally.ini`? This looks as if something is fishy w.r.t. to detecting the JDK version.

---

<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 6, 2018, 10:24am UTC](https://discuss.elastic.co/t/can-not-start-esrally-after-installed/118593/3 "2018-03-06T10:24:16Z")

</div>

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