Question

error with start openVPN service

I trying to install openVPN on ubuntu from this tutorial How To Set Up an OpenVPN Server on Ubuntu 16.04

in Step 9: Start and Enable the OpenVPN Service

when I enter ``` sudo systemctl start openvpn@server

to start the service. the CLI shows me this error message

Job for openvpn@server.service failed because the control process exited with error code. See “systemctl status openvpn@server.service” and “journalctl -xe” for details.

so. please how I can fix it?
Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello I’ve run into the same error and the solution for me was to :

systemctl enable openvpn-server@server.service

instead of “openvpn@server.servcice”

then start the service:

systemctl start openvpn-server@server.service

I assume your config file is server.conf and it’s under /ets/openvpn/server folder

hope it helps

Create the ta.key file by running: cd /etc/openvpn openvpn --genkey --secret ta.key systemctl start openvpn@server.service

Just comment out the LimitNPROC line in /lib/systemd/system/openvpn@.service. Reboor system after that. Enter again sudo systemctl start openvpn@server and the mistake have to disapear.