Inappropriate ioctl - Generating PGP key

[X ] I have read intro post: About the Installation Issues category
[X ] I have read the tutorials, help and searched for similar issues
[X ] I provide relevant information about my server (component names and versions, etc.)
[X ] I provide a copy of my logs and healthcheck
[ X] I describe the steps I have taken to trouble shoot the problem
[ X] I describe the steps on how to reproduce the issue

When installing it manually inside a LXC,at the point of creating the gpg keys i get the error:

We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: Inappropriate ioctl for device
Key generation failed: Inappropriate ioctl for device

This only occurs in version 2 of gpg, version 1 is working correct, only the step of creating an keyring with www-data is failing.

This only occurs inside the LXC, on host level it is working fine.

Can you check if this is a similar issue than:

1 Like

Thanks Remy, your response is the solution to the problem. Thanks!

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.