libsodium requires some "randomness" at startup - if not enough entropy is available from /dev/random it hangs.
In containers there can be little sources for entropy. As described in the docs of libsodium, one workaround is to install the rng-tools (here some docs on what those do).
Would that be considered as an addition to the herokuish Dockerfiles?
If yes, happy to make a PR if you let me know where this should go.
P.S. libsodium is used e.g. in libzmq => pyzmq => jupyter, i.e. this affects anyone wanting to run jupyter notebooks via voila apps which would randomly hang in herokuish containers.
Related issues
jedisct1/libsodium#933
zeromq/libzmq#3183
zeromq/pyzmq#1224 (comment)
jupyter/help#480 (comment)
libsodiumrequires some "randomness" at startup - if not enough entropy is available from/dev/randomit hangs.In containers there can be little sources for entropy. As described in the docs of libsodium, one workaround is to install the
rng-tools(here somedocson what those do).Would that be considered as an addition to the herokuish Dockerfiles?
If yes, happy to make a PR if you let me know where this should go.
P.S.
libsodiumis used e.g. inlibzmq=>pyzmq=>jupyter, i.e. this affects anyone wanting to run jupyter notebooks viavoilaapps which would randomly hang in herokuish containers.Related issues
jedisct1/libsodium#933
zeromq/libzmq#3183
zeromq/pyzmq#1224 (comment)
jupyter/help#480 (comment)