Failed to start rng-tools.service

Briefly describe your issue below:

Hi - relative newbie here so please be (relatively) gentle…

I’ve created a Parrot USB with persistence and all works fine with the exception of two error messages on start up. The first being that it has failed to start rng-tools.service.

I’ve tested it as follows and all seems to be working fine?

┌─[user@parrot]─[~]
└──╼ $dd if=/dev/random of=/dev/null bs=1024 count=1 iflag=fullblock
1+0 records in
1+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00152654 s, 671 kB/s
┌─[user@parrot]─[~]
└──╼ $

Does this indicate that the error message is wrong? Do I need to worry about this?

Cheers, James

Check it with systemctl status rng-tools.service
This will show the status of rng-tools, if you see any please copy here

I dont think rng-tools is even installed.
At least it isnt for me, that might explain why it failed to start.

Nevertheless its used to improve entropy in the kernel, so i dont think is essential.

Are you using Home or Sec?
In the Sec it is preinstalled for me

I’m also using Sec and it says FAILED during the boot sequence and when I run the status command I get:

rng-tools.service
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: failed (Result: exit-code) since Sun 2018-10-14 06:10:22 CDT; 1 day 6
Docs: man:systemd-sysv-generator(8)
Process: 800 ExecStart=/etc/init.d/rng-tools start (code=exited, status=1/FAIL

Is there a way to fix?

What does this command show?
sudo journalctl -u rng-tools

– Logs begin at Sun 2018-10-14 06:10:06 CDT, end at Mon 2018-10-15 13:06:18 CDT. –
Oct 14 06:10:18 parrot systemd[1]: Starting rng-tools.service…
Oct 14 06:10:19 parrot rng-tools[800]: Starting Hardware RNG entropy gatherer daemon: (failed).
Oct 14 06:10:22 parrot systemd[1]: rng-tools.service: Control process exited, code=exited status=1
Oct 14 06:10:22 parrot systemd[1]: rng-tools.service: Failed with result ‘exit-code’.
Oct 14 06:10:22 parrot systemd[1]: Failed to start rng-tools.service.
Oct 15 12:35:25 parrot systemd[1]: Starting rng-tools.service…
Oct 15 12:35:25 parrot rng-tools[30792]: Starting Hardware RNG entropy gatherer daemon: (failed).
Oct 15 12:35:25 parrot systemd[1]: rng-tools.service: Control process exited, code=exited status=1
Oct 15 12:35:25 parrot systemd[1]: rng-tools.service: Failed with result ‘exit-code’.
Oct 15 12:35:25 parrot systemd[1]: Failed to start rng-tools.service.

hm, i found nothing :frowning:
what did you do before this issue?
Is this a fresh install ?

I had downloaded and verified the ParrotSec image, used dd with bs=512k to install to a USB drive, used shred to clean my drive then did a fresh install. I think it always gave me that error. I am going to load up my live USB and see if the problem was there from the beginning. Maybe it somehow got corrupted.

Try purging it and then re-installing maybe.

Will try and report the outcome

Okay I purged and attempted to install again:

$sudo apt-get install rng-tools
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
rng-tools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.1 kB of archives.
After this operation, 124 kB of additional disk space will be used.
Get:1 https://mirror.clarkson.edu/parrot stable/main amd64 rng-tools amd64 2-unofficial-mt.14-1+b2 [43.1 kB]
Fetched 43.1 kB in 22s (1,998 B/s)
Selecting previously unselected package rng-tools.
(Reading database … 458030 files and directories currently installed.)
Preparing to unpack …/rng-tools_2-unofficial-mt.14-1+b2_amd64.deb …
Unpacking rng-tools (2-unofficial-mt.14-1+b2) …
Setting up rng-tools (2-unofficial-mt.14-1+b2) …
update-rc.d: We have no instructions for the rng-tools init script.
update-rc.d: It looks like a non-network service, we enable it.
Job for rng-tools.service failed because the control process exited with error code.
See “systemctl status rng-tools.service” and “journalctl -xe” for details.
invoke-rc.d: initscript rng-tools, action “start” failed.
● rng-tools.service
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: failed (Result: exit-code) since Tue 2018-10-16 20:35:25 CDT; 23ms ago
Docs: man:systemd-sysv-generator(8)
Process: 3136 ExecStart=/etc/init.d/rng-tools start (code=exited, status=1/FAILURE)

Oct 16 20:35:25 parrot systemd[1]: Starting rng-tools.service…
Oct 16 20:35:25 parrot rng-tools[3136]: Starting Hardware RNG entropy gatherer daemon: (failed).
Oct 16 20:35:25 parrot systemd[1]: rng-tools.service: Control process exited, code=exited status=1
Oct 16 20:35:25 parrot systemd[1]: rng-tools.service: Failed with result ‘exit-code’.
Oct 16 20:35:25 parrot systemd[1]: Failed to start rng-tools.service.
Processing triggers for systemd (239-10) …
Processing triggers for man-db (2.8.4-2+b1) …
Configuring sandbox profiles…
Sandbox profiles updated!

Still seems broken

Did you reconfigure/install anything dealing with xserver,X11,nvidia, or the desktop environment? That is the only (albeit brief, obviously fixing rng for me needed to have the root issue fixed) time ive had that error myself.

Hello - I get the following…

└──╼ $sudo systemctl status rng-tools.service
● rng-tools.service
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: failed (Result: exit-code) since Sun 2018-10-21 18:18:56 UTC; 22min l
Docs: man:systemd-sysv-generator(8)

Oct 21 18:18:55 parrot systemd[1]: Starting rng-tools.service…
Oct 21 18:18:55 parrot rng-tools[1299]: Starting Hardware RNG entropy gatherer d
Oct 21 18:18:55 parrot rng-tools[1299]: /etc/init.d/rng-tools: Cannot find a har
Oct 21 18:18:56 parrot systemd[1]: rng-tools.service: Control process exited, co
Oct 21 18:18:56 parrot systemd[1]: rng-tools.service: Failed with result 'exit-c
Oct 21 18:18:56 parrot systemd[1]: Failed to start rng-tools.service.
lines 1-11/11 (END)

Hello

I get the
same message

└──╼ $sudo systemctl status rng-tools.service
● rng-tools.service
Loaded: loaded (/etc/init.d/rng-tools; generated)
Active: failed (Result: exit-code) since Sun 2018-10-21 18:18:56 UTC; 22min l
Docs: man:systemd-sysv-generator(8)

Oct 21 18:18:55 parrot systemd[1]: Starting rng-tools.service…
Oct 21 18:18:55 parrot rng-tools[1299]: Starting Hardware RNG entropy gatherer d
Oct 21 18:18:55 parrot rng-tools[1299]: /etc/init.d/rng-tools: Cannot find a har
Oct 21 18:18:56 parrot systemd[1]: rng-tools.service: Control process exited, co
Oct 21 18:18:56 parrot systemd[1]: rng-tools.service: Failed with result 'exit-c
Oct 21 18:18:56 parrot systemd[1]: Failed to start rng-tools.service.
lines 1-11/11 (END)

i got the same issue does anyone fixed it ? tell me if yes :smile:

i recommend creating a support topic with the necessary info so we know what caused it.