OpenBSD 7.9, i2p-2.10.0-0

Hello,
after around 1 hour of uptime on the i2p router /dev/random will block
and cause the i2p router to crash (or perpetually hang, so the console
is inaccesible, I'm not sure). It works perfect up until this point.
I have tried increasing the RAM and kernel maxfiles (i2pd docs 
suggested that) but the issue persists.
The following error message shows in wrapper.log,

Thread terminated unexpectedly: PRNG
java.lang.IllegalStateException: Read failed /dev/random
at gnu.crypto.prng.DevRandom.nextBytes(DevRandom.java:49)
at gnu.crypto.prng.DevRandom.nextBytes(DevRandom.java:40)
at gnu.crypto.prng.AsyncFortunaStandalone.doFill(AsyncFortunaStandalo
ne.java:169)
at gnu.crypto.prng.AsyncFortunaStandalone.run(AsyncFortunaStandalone.
java:130)
at java.base/java.lang.Thread.run(Thread.java:840)
at net.i2p.util.I2PThread.run(I2PThread.java:103)
Caused by: java.io.FileNotFoundException: /dev/random (Too many open 
files)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at gnu.crypto.prng.DevRandom.nextBytes(DevRandom.java:46)
... 5 more
CRIT  [uterWatchdog] 2p.router.tasks.RouterWatchdog: Router appears 
hung, or there is severe network congestion.  Watchdog starts barking!
TERM trapped.  Shutting down.
CRIT  [r 1 shutdown] net.i2p.router.Router         : Shutting down 
the router...
CRIT  [r 1 shutdown] net.i2p.router.Router         : Shutdown imminent
TERM trapped.  Forcing immediate shutdown.
JVM did not exit on request, termination requested.
JVM received a signal SIGKILL (9).
JVM process is gone.
JVM exited after being requested to terminate.

>From what I've researched blocking is a feature of /dev/random if it
is not ready so I'm quite stuck on how to go about fixing this. Any
help is appreciated!

Thanks,
Flynn


Reply via email to