# DietPi-vpn: failed

**URL:** https://dietpi.com/forum/t/dietpi-vpn-failed/15853
**Category:** General Discussion
**Created:** [6 February 2023 08:48 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853 "2023-02-06T08:48:01Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Ruud](https://dietpi.com/forum/user_avatar/dietpi.com/ruud/32/3363_2.png) [@Ruud](https://dietpi.com/forum/u/Ruud)
#### Post date: [6 February 2023 08:48 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/1 "2023-02-06T08:48:02Z")

</div>

Hi,  
just noticed that when running dietpi-services I have a service dietpi-vpn that has a status of failed.

I have no use case for this service (I think it was installed while installing PiVPN whcih I do need as my server will function as VPN host)

How can I ‘get rid’ of dietpi-vpn service so It will not show / not show as failed / try to start on boot / etc.?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [6 February 2023 09:10 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/2 "2023-02-06T09:10:43Z")

</div>

This is as expected as it is a dummy entry and is present, even if not used. However, the service should have the status `inactive` and not `failed`.

```auto
[INFO] DietPi-Services | dietpi-vpn inactive (dead)

```

---

<div class="post-metadata">

### Author: ![Ruud](https://dietpi.com/forum/user_avatar/dietpi.com/ruud/32/3363_2.png) [@Ruud](https://dietpi.com/forum/u/Ruud)
#### Post date: [6 February 2023 09:13 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/3 "2023-02-06T09:13:30Z")

</div>

Status is failed, and I cannot set it to inactive as for that it should be started, which it isn’t. When trying to change the status it tries to start which fails…  
Is there another way to set the status to inactive?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [6 February 2023 09:19 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/4 "2023-02-06T09:19:13Z")

</div>

try to open `dietpi-vpn` and reset settings if possible.

---

<div class="post-metadata">

### Author: ![Ruud](https://dietpi.com/forum/user_avatar/dietpi.com/ruud/32/3363_2.png) [@Ruud](https://dietpi.com/forum/u/Ruud)
#### Post date: [6 February 2023 09:23 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/5 "2023-02-06T09:23:32Z")

</div>

that didn’t work. it did a systemctl disable on the service, but it still shows as failed in dietpi-services  
the reason why it fails is:

```auto
Feb 06 10:21:23 ... systemd[327409]: dietpi-vpn.service: Failed at step EXEC spawning /usr/sbin/openvpn: No such file or directory
Feb 06 10:21:23 ... systemd[1]: dietpi-vpn.service: Main process exited, code=exited, status=203/EXEC
Feb 06 10:21:23 ... systemd[1]: dietpi-vpn.service: Failed with result 'exit-code'.
Feb 06 10:21:23 ... systemd[1]: Failed to start VPN Client (DietPi).

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [6 February 2023 09:37 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/6 "2023-02-06T09:37:07Z")

</div>

```auto
systemctl stop dietpi-vpn.service
systemctl disable dietpi-vpn.service
reboot

```

---

<div class="post-metadata">

### Author: ![Ruud](https://dietpi.com/forum/user_avatar/dietpi.com/ruud/32/3363_2.png) [@Ruud](https://dietpi.com/forum/u/Ruud)
#### Post date: [6 February 2023 09:43 UTC](https://dietpi.com/forum/t/dietpi-vpn-failed/15853/7 "2023-02-06T09:43:36Z")

</div>

just did a reboot and that did the ‘trick’: it is inactive now.

Good test as well, this server is service NBD to other servers. My old server took a long time to shutdown / start which would have a ‘domino’ effect on cloud VPS servers which where getting their storage from this server.

Odroid C4 / DietPi passed the reboot test: 60 seconds (set as that is the tmie needed for the USB drive that holds the rootfs), but nothing fell over due to faled NBD connectuions 🙂

Me happy 🙂
