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

  1. Copy upsource.jvmoptions.dist to upsource.jvmoptions
cp $upsource_path/conf/upsource.jvmoptions.dist $upsource_path/conf/upsource.jvmoptions
  1. Edit $upsource_path/conf/upsource.jvmoptions file, add the following line at the end:
-Djava.security.egd=/dev/zrandom
  1. Start
$upsource_path/bin/upsource.sh start

Article Link:

/en/archive/centos-upsource-fix/

# Related Articles