# Failure running Rally under OSX

**URL:** <https://discuss.elastic.co/t/failure-running-rally-under-osx/89994>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [June 19, 2017, 9:03pm UTC](https://discuss.elastic.co/t/failure-running-rally-under-osx/89994 "2017-06-19T21:03:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bherring](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bherring/32/20188_2.png) [@bherring](https://discuss.elastic.co/u/bherring)\
**Post date:** [June 19, 2017, 9:03pm UTC](https://discuss.elastic.co/t/failure-running-rally-under-osx/89994/1 "2017-06-19T21:03:44Z")

</div>

After successfully installing Rally 0.5.3 under OS X 10.11.6, and invoking the following command:

esrally --track=pmc --target-hosts=localhost:9200 --pipeline=benchmark-only

I am seeing the following errors consistently:

* * *

[ERROR] Could not initialize successfully.

[ERROR] Are there are still processes from a previous race?  
[ERROR] Please check and terminate related Python processes before running Rally again.

## **[ERROR] Cannot race. ActorAddr-(T|:1900) is not a valid ActorSystem admin.**

There are no stuck Rally processes running. I have tried repeating right after a fresh reboot, no help.

Has anyone else run into this issue?

Here is the related log output:

2017-06-19 20:50:46,566 rally.main INFO OS [posix.uname\_result(sysname='Darwin', nodename='bherring-osx.local', release='15.6.0', version='Darwin Kernel Version 15.6.0: Tue Apr 11 16:00:51 PDT 2017; root:xnu-3248.60.11.5.3~1/RELEASE\_X86\_64', machine='x86\_64')]  
2017-06-19 20:50:46,566 rally.main INFO Python [namespace(cache\_tag='cpython-34', hexversion=50595056, name='cpython', version=sys.version\_info(major=3, minor=4, micro=4, releaselevel='final', serial=0))]  
2017-06-19 20:50:46,566 rally.main INFO Rally version [0.5.3]  
2017-06-19 20:50:46,566 rally.main INFO Command line arguments: Namespace(advanced\_config=False, assume\_defaults=False, auto\_manage\_indices=None, car='defaults', challenge=None, client\_options='timeout:60000,request\_timeout:60000', cluster\_health='green', configuration\_name=None, data\_paths=None, distribution\_repository='release', distribution\_version='', effective\_start\_date=datetime.datetime(2017, 6, 19, 20, 50, 46, 563299), enable\_driver\_profiling=False, laps=1, logging='file', offline=False, override\_src\_dir=None, pipeline='benchmark-only', preserve\_install='False', quiet=False, report\_file='', report\_format='markdown', revision='current', subcommand=None, target\_hosts='[ts-brian-edg-EsELB-YII28AP49D82-976867935.us-east-1.elb.amazonaws.com:80](http://ts-brian-edg-EsELB-YII28AP49D82-976867935.us-east-1.elb.amazonaws.com:80)', telemetry='', test\_mode=False, track='pmc', track\_repository='default', user\_tag='')  
2017-06-19 20:50:46,566 [rally.net](http://rally.net) INFO Rally connects directly to the Internet (no proxy support).  
2017-06-19 20:50:49,489 rally.main INFO Detected a working Internet connection.  
2017-06-19 20:50:49,505 rally.process INFO Skipping myself (PID [2158]).  
2017-06-19 20:50:49,506 rally.main INFO Actor system already running locally? [False]  
2017-06-19 20:50:49,506 rally.actor INFO Starting actor system with system base [multiprocTCPBase] and capabilities [{'coordinator': True, 'Convention Address.IPv4': '127.0.0.1:1900', 'ip': '127.0.0.1'}].  
2017-06-19 20:50:50,163 root INFO ++++ Actor System gen (3, 6) started, admin @ ActorAddr-(T|:1900)  
2017-06-19 20:50:55,158 rally.actor ERROR Could not initialize internal actor system. Terminating.  
Traceback (most recent call last):  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/esrally/actor.py", line 193, in bootstrap\_actor\_system  
capabilities=capabilities)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/actors.py", line 619, in **init**  
systemBase, capabilities, logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/actors.py", line 657, in \_startupActorSys  
systemBase = sbc(self, logDefs=logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/multiprocTCPBase.py", line 27, in **init**  
super(ActorSystemBase, self). **init** (system, logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/multiprocCommon.py", line 84, in **init**  
super(multiprocessCommon, self). **init** (system, logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/systemBase.py", line 87, in **init**  
logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/multiprocCommon.py", line 111, in \_startAdmin  
raise InvalidActorAddress(adminAddr, 'not a valid ActorSystem admin')  
thespian.actors.InvalidActorAddress: ActorAddr-(T|:1900) is not a valid ActorSystem admin  
2017-06-19 20:50:55,164 root ERROR A fatal error occurred while running subcommand [race].  
Traceback (most recent call last):  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/esrally/rally.py", line 429, in dispatch\_sub\_command  
race(cfg)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/esrally/rally.py", line 375, in race  
with\_actor\_system(lambda c: racecontrol.run(c), cfg)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/esrally/rally.py", line 382, in with\_actor\_system  
actors = actor.bootstrap\_actor\_system(try\_join=already\_running, prefer\_local\_only=not already\_running)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/esrally/actor.py", line 193, in bootstrap\_actor\_system  
capabilities=capabilities)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/actors.py", line 619, in **init**  
systemBase, capabilities, logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/actors.py", line 657, in \_startupActorSys  
systemBase = sbc(self, logDefs=logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/multiprocTCPBase.py", line 27, in **init**  
super(ActorSystemBase, self). **init** (system, logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/multiprocCommon.py", line 84, in **init**  
super(multiprocessCommon, self). **init** (system, logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/systemBase.py", line 87, in **init**  
logDefs)  
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/thespian/system/multiprocCommon.py", line 111, in \_startAdmin  
raise InvalidActorAddress(adminAddr, 'not a valid ActorSystem admin')  
thespian.actors.InvalidActorAddress: ActorAddr-(T|:1900) is not a valid ActorSystem admin

---

<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:** [June 20, 2017, 7:12am UTC](https://discuss.elastic.co/t/failure-running-rally-under-osx/89994/2 "2017-06-20T07:12:19Z")

</div>

Hi @bherring,

based on what I see in your logs - and especially the following lines, your problem is not related to any hanging processes.

> [@bherring](#):
>
> 2017-06-19 20:50:49,506 rally.main INFO Actor system already running locally? [False]  
> 2017-06-19 20:50:49,506 rally.actor INFO Starting actor system with system base [multiprocTCPBase] and capabilities [{'coordinator': True, 'Convention Address.IPv4': '127.0.0.1:1900', 'ip': '127.0.0.1'}].  
> 2017-06-19 20:50:50,163 root INFO ++++ Actor System gen (3, 6) started, admin @ ActorAddr-(T|:1900)  
> 2017-06-19 20:50:55,158 rally.actor ERROR Could not initialize internal actor system. Terminating.

Rally starts a so-called actor system internally to let its internal components communicate with each other. This actor system has one process that listens on port 1900. You can see from the logs that it has started it successfully but then failed further down the road. You can also see that there is a 5 second delay between the last two log messages. You run into a [timeout upon startup of the actor system](https://github.com/kquick/Thespian/blob/master/thespian/system/multiprocCommon.py#L109-L113). This could maybe be caused by a firewall that is running on your system. So you should check your security settings and also whether you run a third-party firewall on your Mac.

You can also run the following command in a separate terminal window before you start Rally:

```auto
lsof -P -n -r 1 -i :1900

```

It shows activity on port 1900 on a high level once every second. On my machine it looks something like this:

```auto
daniel@io:~ $ lsof -P -n -r 1 -i :1900
=======
=======
=======
=======
=======
=======
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 1560 daniel 11u IPv4 0xa4062a472885ea3b 0t0 TCP *:1900 (LISTEN)
Python 1560 daniel 13u IPv4 0xa4062a4728910333 0t0 TCP 192.168.2.15:1900->192.168.2.15:50092 (ESTABLISHED)
Python 1561 daniel 11u IPv4 0xa4062a472885ea3b 0t0 TCP *:1900 (LISTEN)
Python 1561 daniel 17u IPv4 0xa4062a4728dac143 0t0 TCP 192.168.2.15:50092->192.168.2.15:1900 (ESTABLISHED)
=======
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 1560 daniel 11u IPv4 0xa4062a472885ea3b 0t0 TCP *:1900 (LISTEN)
Python 1560 daniel 13u IPv4 0xa4062a4728910333 0t0 TCP 192.168.2.15:1900->192.168.2.15:50092 (ESTABLISHED)
Python 1561 daniel 11u IPv4 0xa4062a472885ea3b 0t0 TCP *:1900 (LISTEN)
Python 1561 daniel 17u IPv4 0xa4062a4728dac143 0t0 TCP 192.168.2.15:50092->192.168.2.15:1900 (ESTABLISHED)

```

I hope that helps you to resolve the problem.

Daniel

---

<div class="post-metadata">

**Author:** ![bherring](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bherring/32/20188_2.png) [@bherring](https://discuss.elastic.co/u/bherring)\
**Post date:** [June 22, 2017, 3:14pm UTC](https://discuss.elastic.co/t/failure-running-rally-under-osx/89994/3 "2017-06-22T15:14:12Z")

</div>

Thanks Daniel! I was able to workaround this issue by running Rally from a different machine without the firewall issue.

---

<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 20, 2017, 3:14pm UTC](https://discuss.elastic.co/t/failure-running-rally-under-osx/89994/4 "2017-07-20T15:14:34Z")

</div>

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