Error installing PiVPN

Creating a bug report/issue

[YES] I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=11
G_DIETPI_VERSION_RC=-1
G_GITBRANCH='dev'
G_GITOWNER='MichaIng'
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm 0

  • Kernel version | uname --all
    Linux PiHole 6.6.74+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture
    arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    RPi 4 Model B (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)
    https://www.amazon.co.uk/dp/B07XBF3P15

  • SD card used | (EG: SanDisk ultra)
    SanDisk Extream 128GB

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
    PiVPN

  • Was the software title installed freshly or updated/migrated?
    Fresh install

  • Can this issue be replicated on a fresh installation of DietPi?
    Yes

ā† If you sent a ā€œdietpi-bugreportā€, please paste the ID here ā†’

  • Bug report ID | echo $G_HW_UUID
    7094b6c7-a391-4965-a58f-99d3ce108bee

Steps to reproduce

  1. Mount image to SD Card
  2. Wait for DietPi to install / start up
  3. Log into DietPi OS
  4. Run sudo DietPi-Software
  5. Search for PiVPN
  6. Install PiVPN
  7. Hit enter on all messages / basic install
  8. Install ends with following message:
[2025-02-18T12:04:47+0000]: ::: Unable to read /etc/pihole/setupVars.conf
[FAILED] DietPi-Software | ./install.bash

Expected behaviour

  • Expecting PiVPN to install

Actual behaviour

  • Installer ending but app not installed

Extra details

  • PiHole installed as well, that is all, during PiVPN install I say Yes to using PiHole as the VPN DNS.

ChatGPT fixed it for meā€¦
Created the missing file:
sudo nano /etc/pihole/setupVars.conf

Added this code:

PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=CHA.NGE.ME.IP/24
QUERY_LOGGING=true

Re-ran dietpi-software

Installed without any issues

hmm strange, usually the file should exist by default as it contains all required information for a PiHole reinstall. This file is created by the PiHole own installer and not by DietPi.

Yeah not sure what happened there in terms of not having the file created by PiHole, again used dietpi-software to install rather than curl etc.
Maybe forgot to run with sudo at the start.

Did it install PiHole v6? This has been released yesterday and our script is not respecting this currently. We are still working to integrate PiHole v6

I am not too sure / I did not check but after installing I changed to the dev branch

pihole -v

Core
    Version is v6.0-3-g0890f67 (Latest: null)
    Branch is development
    Hash is 0890f673 (Latest: 0890f673)
Web
    Version is v5.21-959-g7acf464 (Latest: null)
    Branch is devel
    Hash is 7acf4647 (Latest: 7acf4647)
FTL
    Version is vDev-3b78e07 (Latest: null)
    Branch is development
    Hash is 3b78e072 (Latest: 3b78e072)

Yes this is PiHole v6 at least for the core. There things changed and I guess the missing file is expected in this case. As said, our script is not taking this into account actually.

1 Like