# Vpnclient failed after backup restore

**URL:** <https://forum.yunohost.org/t/vpnclient-failed-after-backup-restore/40695>\
**Category:** Support apps\
**Tags:** vpnclient, english\
**Created:** [November 3, 2025, 9:09am UTC](https://forum.yunohost.org/t/vpnclient-failed-after-backup-restore/40695 "2025-11-03T09:09:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joris6](https://forum.yunohost.org/user_avatar/forum.yunohost.org/joris6/32/12886_2.png) [@joris6](https://forum.yunohost.org/u/joris6)\
**Post date:** [November 3, 2025, 9:09am UTC](https://forum.yunohost.org/t/vpnclient-failed-after-backup-restore/40695/1 "2025-11-03T09:09:06Z")

</div>

**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

```auto
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

> **[hastebin](https://paste.yunohost.org/qajuqivezi)**

---

<div class="post-metadata">

**Author:** ![joris6](https://forum.yunohost.org/user_avatar/forum.yunohost.org/joris6/32/12886_2.png) [@joris6](https://forum.yunohost.org/u/joris6)\
**Post date:** [November 3, 2025, 10:44am UTC](https://forum.yunohost.org/t/vpnclient-failed-after-backup-restore/40695/2 "2025-11-03T10:44:21Z")

</div>

So I did

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

```

still failed with error

```auto
[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:

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

```

And It’s running! 😄

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

Joris

---

<div class="post-metadata">

**Author:** ![HgO](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/h/ce7236/32.png) [@HgO](https://forum.yunohost.org/u/HgO)\
**Post date:** [November 3, 2025, 1:10pm UTC](https://forum.yunohost.org/t/vpnclient-failed-after-backup-restore/40695/3 "2025-11-03T13:10:32Z")

</div>

It’s a bug [that was solved yesterday](https://github.com/YunoHost-Apps/vpnclient_ynh/pull/153#issuecomment-3476929459), 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.

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [November 18, 2025, 1:11pm UTC](https://forum.yunohost.org/t/vpnclient-failed-after-backup-restore/40695/4 "2025-11-18T13:11:07Z")

</div>

Closed on November 18, 2025, 1:11pm UTC

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