pivpn: cannot install pivpn from script

I had a nicely working pivpn on my raspberry pi 4 server and running open vpn on my phone when I had a cert expired. I tried to create a new client ovpn but this did not generate a new certificate. I read that the best way to get a new cert was to uninstall and re-install pivpn, however, now, regardless of which option I choose (openvpn/wireguard) when running the install script it just stops at “::: Using VPN: WireGuard” (or openvpn) and does nothing else. If I ctr-c out of it then pivpn is not installed. I have manually installed openvpn and wireguard but wasn’t prompted to install them before that. Has anything changed or are there unmentioned dependencies ? what should it be doing after this stage? Thanks for any help getting this working again. Tony

The full install feedback is :

:::
::: sudo will be used for the install.
::: Hostname length OK
::: Verifying free disk space...
:::
::: Package Cache update is needed, running apt-get update -y ...
 done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with PiVPN installation...
:::    Checking for git... already installed!
:::    Checking for tar... already installed!
:::    Checking for curl... already installed!
:::    Checking for grep... already installed!
:::    Checking for dnsutils... already installed!
:::    Checking for grepcidr... already installed!
:::    Checking for whiptail... already installed!
:::    Checking for net-tools... already installed!
:::    Checking for bsdmainutils... already installed!
:::    Checking for bash-completion... already installed!
:::    Checking for dhcpcd5... already installed!
:::    Checking for iptables-persistent... already installed!
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libc-ares2 libmaxminddb0 libqt5multimedia5 libqt5multimedia5-plugins libqt5multimediagsttools5 libqt5multimediaquick5 libqt5multimediawidgets5 libsmi2ldbl libwireshark-data libwireshark11 libwiretap8
  libwscodecs2 libwsutil9 wireshark-common wireshark-qt
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
::: IPv6 test connections to google.com have failed. Disabling IPv6 support. (The curl test failed with code: 6)
grep: /etc/resolv.conf: No such file or directory
::: Static IP already configured.
::: Using User: tony
:::
::: Checking for existing base files...
:::    Checking /usr/local/src/pivpn is a repo... OK!
:::     Updating repo in /usr/local/src/pivpn from https://github.com/pivpn/pivpn.git ... done!
::: Using VPN: WireGuard

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 15 (5 by maintainers)

Most upvoted comments

I experienced the same issue and when it hung i did a Ctrl+\ and the script continued. I did not modify the install scipt at all.

This is a “me too” post, but also with some additional data points:

  1. Like some others, I had pivpn working on a prior install, but reinstalled.
  2. I tried both the main and test branches.
  3. I do not get the /etc/resolv.conf error (see below).
  4. The script fails for both wireguard and OpenVpn.
  5. Like 1518, my IP range is in 10.0.0.x.
  6. HOWEVER, prior iterations of the script worked with this range – as I have been on 10.0.0.x since before the script (or RPi) existed.

Here is the tail of the script where it fails:

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
::: IPv6 test connections to google.com have failed. Disabling IPv6 support. (The curl test failed with code: 7)
::: Using User: hxr
:::
::: Checking for existing base files...
:::    Checking /usr/local/src/pivpn is a repo... OK!
:::     Updating repo in /usr/local/src/pivpn from https://github.com/pivpn/pivpn.git ... [/]  done!
:::     Checkout branch 'test' from https://github.com/pivpn/pivpn.git in /usr/local/src/pivpn...
:::     'test' branch checkout done!
::: Using VPN: OpenVPN

I will try the workaround and report back.

I had word for word the exact same issue as OP. The workaround mentioned in issue #1518 did the trick