Skip to main content
Topic: Options error: --up script fails with '/etc/openvpn/up.sh': No such file or dire (Read 1336 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Options error: --up script fails with '/etc/openvpn/up.sh': No such file or dire

Hello everyone.

 I'm trying to set up OpenVPN and get this error:

Code: [Select]
error
================
rc-service openvpn start           
 * Starting openvpn ...
 * start-stop-daemon: failed to start `/usr/bin/openvpn'
 * Check your logs to see why startup failed                                [ !! ]
 * WARNING: openvpn has started, but is inactive

Code: [Select]
log
=================

Jul 14 18:11:30 [sudo] tom ran command rc-service openvpn start as root from /etc/openvpn
Jul 14 18:11:30 [openvpn] Options error: --up script fails with '/etc/openvpn/up.sh': No such file or directory (errno=2)
Jul 14 18:11:30 [openvpn] Options error: Please correct this error.
Jul 14 18:11:30 [openvpn] Use --help for more information.
Jul 14 18:11:30 [/etc/init.d/openvpn] start-stop-daemon: failed to start `/usr/bin/openvpn'
Jul 14 18:11:30 [/etc/init.d/openvpn] WARNING: openvpn has started, but is inactive


When I run the config file manually, I connect without any problems:

Code: [Select]
$ openvpn --config   proton.ovpn


I will be grateful for your advice!








 

Re: Options error: --up script fails with '/etc/openvpn/up.sh': No such file or dire

Reply #1
Post the content of the script
Code: [Select]
cat /etc/openvpn/up.sh

Re: Options error: --up script fails with '/etc/openvpn/up.sh': No such file or dire

Reply #2
The openvpn-openrc script does some checks and tries to launch up.sh if they pass. You can disable the checks, make them fail or create a simple up.sh script with a 'true' command in it.