Vpnclient failed after backup restore

What app is this about, and its version: vpnclient 2.3~ynh5
What YunoHost version are you running: 12.1.33
What type of hardware are you using: Old laptop or computer

Describe your issue

I did a full backup and restore of my server (on the same computer). I’m using vpnclient for the public IP.

After the restore, vpn client complain It can not execute its executable (see the yunopaste). See below for the perm

joris@jirem:~ $ ls -l /usr/local/bin/ynh-vpn*
-r-------- 1 root root 8933 Oct 20 19:08 /usr/local/bin/ynh-vpnclient
-r-------- 1 root root  258 Oct 20 19:08 /usr/local/bin/ynh-vpnclient-checker.sh
-r-------- 1 root root 1605 Oct 20 19:08 /usr/local/bin/ynh-vpnclient-loadcubefile.sh

What is the correct permission for those files?

Share relevant logs or error messages

So I did

sudo chmod u+x /usr/local/bin/ynh-vpn*

still failed with error

[INFO] Retrieving Yunohost settings...
[ OK ] Settings retrieved
[INFO] [vpnclient] Starting...
[INFO] Now synchronizing time using ntp...
[INFO] Checking if configuration is valid...
[INFO] Now actually starting OpenVPN client...
Options error: --route-up script fails with '/etc/openvpn/scripts/run-parts.sh': Permission denied (errno=13)
Options error: Please correct this error.
Use --help for more information.
[CRIT] Failed to start OpenVPN client

So:

sudo chmod u+x /etc/openvpn/scripts/run-parts.sh

And It’s running! :grinning_face_with_smiling_eyes:

Maybe something can be fixed in the backup/restore script?

Joris

It’s a bug that was solved yesterday, but it is not yet released…

I’ll do the release right now, so you can upgrade the app to 2.3~ynh6 and fix your issue.

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.