Score:1

How to increase the entropy to avoid the warning message: Available entropy is low

cn flag

Linux 5.15.0-72-generic #79~20.04.1-Ubuntu

I have the LAMP stack and solr installed on my Linux machine and quite a number of programs exchanging data using SSL sockets with other machines. After executing bin/solr start, I received the following warning message:

Warning: Available entropy is low. As a result, use of the UUIDField, SSL, or any other features that require
RNG might not work properly. To check for the amount of available entropy, use 'cat /proc/sys/kernel/random/entropy_avail'.

Checked online about "Available Entropy is Low" related fixes to increase the entropy number from 256 to a higher number:

Installed haveged as suggested by some online post, no effect, the warning message remains.

Installed rng-tools and check the "quality" of the random number generator, seems to be quite good, but the warning message remains.

Would like to ask any other suggestions to correct this "Available entropy is low" problem, which also caused my remote access to the server very sluggish responses.

Thanks for your attention of this post.

cn flag
Is this a physical machine, or a VM?
pl flag
You may want to consider buying an entropy key. A USB device which attaches directly to the server and generates entropy. There's a few available.
cn flag
or see https://security.stackexchange.com/a/267048/129054
IpSmile avatar
cn flag
@Richter Yes, this is a physical machine. Gigabyte B550M-D3H, CPU: Ryzen 7 5700G, 32GB RAM, 2TB SSD and Ubuntu only Linux Machine.
pl flag
It's stupendously hard for computers (which are programmed to do exactly what you tell them) to do something "random". Most can produce something pseudo random, but not truly really random. A USB entropy key will usually have special hardware which listens out for radio signals or taps into decaying radioactivity to generate "proper" randomness. https://en.wikipedia.org/wiki/Hardware_random_number_generator - in 25+ years of using Linux I've never needed one. So maybe debug why this is happening if hardware isn't an option for you
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.