pivpn / pivpn

The Simplest VPN installer, designed for Raspberry Pi
https://pivpn.io
MIT License
7.2k stars 633 forks source link

The auto-installation script stops #399

Closed jurekK closed 6 years ago

jurekK commented 6 years ago

Twice, on two different pis (2B and 3), under Jessie, the attempt to 'easy install' of pivpn regularly and quickly fails, the last message is on the console, no more blue boxes... The console contains:

root@hopf:/home/pi# curl -L https://install.pivpn.io | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0    216      0 --:--:-- --:--:-- --:--:--   216
100 53505  100 53505    0     0  35941      0  0:00:01  0:00:01 --:--:--  242k
:::
::: You are root.
::: Verifying free disk space...
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with PiVPN installation...
::: Static IP already configured.
root@hopf:/home/pi#

And this is all. I have the terminal without any activity. Had anybody observed this? I am not a Raspbian guru, I don't think I damaged my both systems preventing the scripts from continuing, without signalling any error. But, perhaps. Would you suggest, please, how to execute all the steps manually? I imported also the installation package from https://github.com/pivpn/pivpn, but I got more or less the same reaction of install.sh. I installed formerly openvpn through apt-get, but I never went so far, to use it. I don't understand what happens. The execution without being root, with sudo, produces the same effect. Thank you.

Jerzy Karczmarczuk /Caen, France/

thefaj commented 6 years ago

@slycar Your fix worked — there's some bug in the pivpn script. Installing OpenVPN via apt and then re-running the bash script seems to have fixed the bug.

voodoo128 commented 6 years ago

@slycar i can also confirm , thanks for the fix !

redfast00 commented 6 years ago

This issue seems mostly fixed:

p1ppo commented 5 years ago

Hi all, Had same issue and debugged the script. Found simple error that /usr/local/bin directory did not exist and script exited silently in row 400. Manually created the dir and script worked. Just my 2 cents. Hope it might help anyone.

rrik commented 5 years ago

I have /usr/local/bin and the installer is still exiting.

I've tried removing and installing openvpn to no avail.

I think the PiVPN bash installer is broken as of this point.

slycar commented 5 years ago

I just tried it on a fresh raspbian install and it works fine. Try adding "-x" at the end of the install command and see where is exits.

curl -L https ://install.pivpn.io | bash -x

-------- Original message -------- From: rrik notifications@github.com Date: 2019-06-15 9:13 AM (GMT-05:00) To: pivpn/pivpn pivpn@noreply.github.com Cc: slycar slycar@hotmail.com, Mention mention@noreply.github.com Subject: Re: [pivpn/pivpn] The auto-installation script stops (#399)

I have /usr/local/bin and the installer is still exiting.

I've tried removing and installing openvpn to no avail.

I think the PiVPN bash installer is broken as of this point.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/pivpn/pivpn/issues/399?email_source=notifications&email_token=AJIE33FMOQ7HIL5WXHQDV7TP2TTHFA5CNFSM4EB4MGR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXYX5KI#issuecomment-502365865, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJIE33GIUIDHKRTEP3JOWE3P2TTHFANCNFSM4EB4MGRQ.

rrik commented 5 years ago

Below is the output truncated to the last bit of the installer. I didn't see any obvious errors above this.

If I try to re-install after this, there will be an error with iptables-persistent and netfilter-persistent.

Using latest wheezy raspbian install. I'm really at a loss! openvpnis installed.

` ::: Your system is up to date! Continuing with PiVPN installation...

After this point it just goes back to bash.

UPDATE: somehow sudo apt-get remove --pure cups-daemon allowed me to make more progress with the install. How these two are related, I do not know.

FinlayDaG33k commented 4 years ago

Issue also affects me, none of the solutions above seem to work for me either :\ using the docker-pi vpn mentioned in the readme.
The container that repo provides (when pulling, not when building) does work.
Ripped out the install.sh from there and bam, it worked, no issues.

It appears something went wrong down the line when updating the installer.

EDIT: nvm, appears to have been a fluke.

FinlayDaG33k commented 4 years ago

I ran the following command in my container, after which I got some dialogue (the little terminal GUI thingy) and the "installation complete" message: echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections

bee-san commented 3 years ago

I fixed this by running it with sudo :)