PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
See original GitHub issueI just tried beeswithmachineguns for the first time and spun up 4 instances with the default settings and attacked oe of my urls with default settings and got this stacktrace:
Read 4 bees from the roster.
Connecting to the hive.
Assembling bees.
Each of 4 bees will fire 250 rounds, 25 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.
No handlers could be found for logger "paramiko.transport"
Traceback (most recent call last):
File "./bees", line 5, in <module>
main.main()
File "/home/zz/src/beeswithmachineguns/beeswithmachineguns/main.py", line 121, in main
parse_options()
File "/home/zz/src/beeswithmachineguns/beeswithmachineguns/main.py", line 113, in parse_options
bees.attack(options.url, options.number, options.concurrent)
File "/home/zz/src/beeswithmachineguns/beeswithmachineguns/bees.py", line 319, in attack
results = pool.map(_attack, params)
File "/usr/lib/python2.7/multiprocessing/pool.py", line 199, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib/python2.7/multiprocessing/pool.py", line 491, in get
raise self._value
AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()
Python version is 2.7.1 linux distribution is arch
Issue Analytics
- State:
- Created 12 years ago
- Comments:13 (4 by maintainers)
Top Results From Across the Web
PyCrypto : AssertionError("PID check failed. RNG must be re ...
You need to call Crypto.Random.atfork() after os.fork(). I just put the __init__() in the security module before the other ones.
Read more >PID check failed. RNG must be re-initialized after fork(). Hint ...
RNG must be re-initialized after fork(). Hint: Try Random.atfork() Encountered exception while syncing: Traceback (most recent call last): File ...
Read more >PID check failed. RNG must be re-initialized after fork()
I use paramiko on top of the multiprocessing library, using queues to feed tasks to threads. Each thread or worker imports the paramiko...
Read more >Run Crypto.Random.atfork() when new worker process is ...
[1] "AssertionError: PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()". -- You received this message because you are ...
Read more >PID check failed. RNG must be re-initialized after fork().
Hint : Try Random.atfork(). 2018-05-02 17:47:11,524 - main_check ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You could also upgrade to Paramiko 1.7.7.1 which has a fix for this.
@jtushman @martinthomas awesome!! thanks a lot!