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?
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!
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
Hi guys,
Mine was resolved on Ubuntu 16.04 when I realised that the /etc/openvpn folder was missing the DH file. I opened the server.conf and took an openssl command from a comment there:
openssl dhparam -out dh2048.pem 2048
Once I run this I could run sucesfully
systemctl start openvpn@server
-J
Doh! I forgot to copy the ta.key file to the /etc/openvpn directory. I discovered this by running the suggested command:
sudo journalctl -xe
Found this beauty: Options error: --tls-auth fails with ‘ta.key’: No such file or Options error: Please correct these errors.
Hope it helps.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.