How to fix OpenVPN 'failed to find UID for user openvpn'

Problem:

In your OpenVPN server logs you see this error message

example.txt
failed to find UID for user openvpn

followed by a server restart (Exiting due to fatal error).

Solution

Run this command to add the openvpn user and add that user to the openvpn group:

example.sh
sudo useradd openvpn -g openvpn

Check out similar posts by category: Cryptography, Linux