newsapps / beeswithmachineguns

A utility for arming (creating) many bees (micro EC2 instances) to attack (load test) targets (web applications).
http://apps.chicagotribune.com/
MIT License
6.44k stars 631 forks source link

Getting a traceback message... #54

Open Altonymous opened 11 years ago

Altonymous commented 11 years ago

OSX Mountain Lion (10.8.3)

$ bees attack -n 160 -c 170 -u http://:8080/ Read 16 bees from the roster. Connecting to the hive. Assembling bees. Each of 16 bees will fire 10 rounds, 10 at a time. Stinging URL so it will be cached for the attack. Organizing the swarm. Bee 0 is joining the swarm. Bee 1 is joining the swarm. Bee 2 is joining the swarm. Bee 3 is joining the swarm. Bee 4 is joining the swarm. Bee 5 is joining the swarm. Bee 6 is joining the swarm. Bee 7 is joining the swarm. Bee 8 is joining the swarm. Bee 9 is joining the swarm. Bee 10 is joining the swarm. Bee 11 is joining the swarm. Bee 12 is joining the swarm. Bee 13 is joining the swarm. Bee 14 is joining the swarm. Bee 15 is joining the swarm. No handlers could be found for logger "paramiko.transport" Traceback (most recent call last): File "/usr/local/bin/bees", line 5, in pkg_resources.run_script('beeswithmachineguns==0.1.4', 'bees') File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 489, in run_script self.require(requires)[0].run_script(script_name, ns) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1214, in run_script exec script_code in namespace, namespace File "/Library/Python/2.7/site-packages/beeswithmachineguns-0.1.4-py2.7.egg/EGG-INFO/scripts/bees", line 5, in pkg_resources.run_script('beeswithmachineguns==0.1.4', 'bees') File "/Library/Python/2.7/site-packages/beeswithmachineguns-0.1.4-py2.7.egg/beeswithmachineguns/main.py", line 127, in main File "/Library/Python/2.7/site-packages/beeswithmachineguns-0.1.4-py2.7.egg/beeswithmachineguns/main.py", line 119, in parse_options File "/Library/Python/2.7/site-packages/beeswithmachineguns-0.1.4-py2.7.egg/beeswithmachineguns/bees.py", line 325, in attack File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 225, in map return self.map_async(func, iterable, chunksize).get() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/pool.py", line 522, in get raise self._value AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()

freynolds commented 10 years ago

Hi! I've the same error! Someone has some guidance on how to fix it?

anklos commented 9 years ago

@freynolds I got it fix following this comment: https://github.com/newsapps/beeswithmachineguns/issues/17#issuecomment-4602864