Solution for Upsource Startup Failure on Centos7
Error
When starting Upsource on Centos7, the following error occurred. Starting Upsource on Mac worked fine.
[Upsource Error] Failed to start JetBrains Upsource 2018.2 due to unexpected exception: Native random generator does not seem to have enough entropy for JetBrains Upsource 2018.2 to start. [Upsource Error] You can fix it by switching to PRNG (with -Djava.security.egd=/dev/zrandom) or by reconfiguring your operation system to provide more random bits.
Solution
- Copy
upsource.jvmoptions.disttoupsource.jvmoptions
cp $upsource_path/conf/upsource.jvmoptions.dist $upsource_path/conf/upsource.jvmoptions
- Edit
$upsource_path/conf/upsource.jvmoptionsfile, add the following line at the end:
-Djava.security.egd=/dev/zrandom
- Start
$upsource_path/bin/upsource.sh start