question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()

See original GitHub issue

I 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:closed
  • Created 12 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kencochranecommented, Jun 3, 2011

You could also upgrade to Paramiko 1.7.7.1 which has a fix for this.

0reactions
ankloscommented, Nov 26, 2014

@jtushman @martinthomas awesome!! thanks a lot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found