DietPi-Backup locking you out over VPN

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Posts: 20
Joined: Wed Dec 20, 2017 6:42 pm

DietPi-Backup locking you out over VPN

Post by AdvancedFollower »

I was using OpenVPN to connect to my Pi3 to make a backup in preparation for the 6.2 upgrade.
However after running Dietpi-Backup I lost contact with the Pi3. OpenVPN, as well as Apache2, dnsmasq etc. all stopped working as well.

It turns out that when you run Dietpi-Backup manually, it shuts down all processes, then performs the backup, and then displays a message saying the backup was successful. Only after you select "OK" does it restart all the processes again, but how can you do that when you're "dialing in" via OpenVPN, and the OpenVPN service is shut down?

The same error could also happen if for some reason you lost the SSH connection (accidentally closed the window or whatever) while the backup was running, making it impossible to acknowledge the message.

What if you're away from home and need OpenVPN to gain access to your home network?

My suggestions:
1. Have a timer on the "Backup successful" message so that if you don't acknowledge it, it goes away eventually and all the services restart
2. Restart the services first, then display the "Backup successful" message.
User avatar
Site Admin
Posts: 2779
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi-Backup locking you out over VPN

Post by Fourdee »


Thanks for the report/suggestions.

OpenVPN service is no longer controlled by DietPi in v6.2. Once updated, you should not experience loss of OpenVPN connection through DietPi scripts.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply