Hmm, VPN not connecting Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Hmm, VPN not connecting

Post by TWHH »

Am v new to this, so assue I won't understand any question that include terminal prompts.

Nord VPN was working OK, but now I get the following report on why my VPN is no longer working:

Code: Select all

● dietpi-vpn.service - VPN Client (DietPi)
   Loaded: loaded (/etc/systemd/system/dietpi-vpn.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2021-07-01 19:28:08 BST; 54s ago
  Process: 15104 ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config /etc/openvpn/client.ovpn (code=exited, status=1/FAILURE)
 Main PID: 15104 (code=exited, status=1/FAILURE)

Jul 01 19:28:08 DietPi systemd[1]: Starting VPN Client (DietPi)...
Jul 01 19:28:08 DietPi openvpn[15104]: Options error: --route-up script fails with '/var/lib/dietpi/dietpi-vpn/up.sh': Permission denied errno=13)
Jul 01 19:28:08 DietPi openvpn[15104]: Options error: Please correct this error.
Jul 01 19:28:08 DietPi openvpn[15104]: Use --help for more information.
Jul 01 19:28:08 DietPi systemd[1]: dietpi-vpn.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 19:28:08 DietPi systemd[1]: dietpi-vpn.service: Failed with result 'exit-code'.
Jul 01 19:28:08 DietPi systemd[1]: Failed to start VPN Client (DietPi).
root@DietPi:~# 
What should I do d'you think?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Hmm, VPN not connecting

Post by Joulinar »

hmm there seems to be some access issues on a script

Code: Select all

Options error: --route-up script fails with '/var/lib/dietpi/dietpi-vpn/up.sh': Permission denied errno=13)
can you share following

Code: Select all

ls -la /var/lib/dietpi/dietpi-vpn
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Hmm, VPN not connecting

Post by TWHH »

Thanks for the reply. This is what I'm getting:

Code: Select all

root@DietPi:~# ls -la /var/lib/dietpi/dietpi-vpn
total 32
drwxr-xr-x 2 root   root   4096 Jun 30 21:27 .
drwxrwxr-x 6 dietpi dietpi 4096 Jun 30 13:13 ..
-rw------- 1 root   root    148 Jul  1 19:28 settings_dietpi.conf
-rw------- 1 root   root     23 Jul  1 19:28 settings_ovpn.conf
-rwxr-xr-x 1 root   root    395 Jul  1 19:28 static_down.sh
-rwxr-xr-x 1 root   root    548 Jul  1 19:28 static_up.sh
-rw-r--r-- 1 root   root     85 Jun 30 21:17 up.sh
-rw-r--r-- 1 root   root     16 Jun 30 21:18 up.sh.save
Thanks again
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Hmm, VPN not connecting

Post by Joulinar »

ok up.sh is missing execute permissions.

pls do following

Code: Select all

chmod +x /var/lib/dietpi/dietpi-vpn/up.sh
systemctl restart dietpi-vpn.service
systemctl status dietpi-vpn.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Hmm, VPN not connecting

Post by TWHH »

Superb - all looks to be OK now.

HUGE thanks
Post Reply