Troubleshooting Open VPN Connection

I have added a new OpenVPN connection that fails as soon as it opens. Here are my notes in troubleshooting. I found the problem.

When I activated the VPN, it would quit immediately. In the logs app, I would see this message:

Options error: Please correct these errors.

Digging farther, I found this error:

Options error: --ca fails with '/home/skp/.cert/nm-openvpn/vpn-UDP4-1194-config%20(1)-ca.pem': No such file or directory (errno=2)

I found that line in the /var/log/syslog file.

The problem was that space in the file name. It puts a “%20” instead of the space, which causes it to not find the file. The solution was to just rename the file and remove the spaces.

cd ~/.cert/nm-openvpn/
mv vpn-UDP4-1194-config\ \(1\)-ca.pem vpn-UDP4-1194-config-ca.pem
mv vpn-UDP4-1194-config\ \(1\)-tls-auth.pem vpn-UDP4-1194-config-tls-auth.pem

Finally, I had to change the configuration on the VPN to point to the new file names. After that, the VPN worked with no problem.

Resources

Leave a Comment

Your email address will not be published. Required fields are marked *