PiVPN Install Problem

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

PiVPN Install Problem

Post by Huffpuffin »

Hi All

Just updated to V135, and wanted to use PiVPN. Installed through Dietpi-launcher. However, I get errors as below:

Code: Select all

DietPi-Services
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
 Mode: disable
 Please wait...

 [Ok] cron
 [Ok] apache2
noip2
*** Error in `systemctl': double free or corruption (fasttop): 0x56223fc0 ***
 [Failed] noip2dietpi-services: line 268:   712 Aborted                 systemctl $1 ${aSERVICE_NAME[$i]} &> /dev/null
 [Ok] plexmediaserver


 DietPi-Software
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
 Mode: Installation completed
 Please wait...


 The system will now reboot.
 This completes the DietPi-Software installation.

 #               processing | D I E T  P I             #
If I try to run pivpn, then I get the following:

Code: Select all

root@RPi3:~# pivpn -h
-bash: pivpn: command not found
root@RPi3:~#
I'm running a Raspberry Pi 3 (Jessie) with Webmin and Plex.

Any suggestions would be gratefully received. TIA

Edit: Sorry, just seen another error message:

Code: Select all

#               processing | D I E T  P I             #

 [Info] Testing connection to https://install.pivpn.io
 [Info] Max duration of 20 seconds, please wait...
 [Failed] Connection test | An issue has occured
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiVPN Install Problem

Post by Fourdee »

** Error in `systemctl': double free or corruption
It looks like a possible bug in systemD. Occurred when running noip2 service control by the looks of it.

Does the error reoccur when you run the following?:

Code: Select all

systemctl stop noip2
systemctl start noip2
Also see if the error occurs with:

Code: Select all

dietpi-services restart
Possible PSU / SD card corruption. Can you list your PSU and SD card specs please.
[Info] Testing connection to https://install.pivpn.io
[Info] Max duration of 20 seconds, please wait...
[Failed] Connection test | An issue has occured
This is a connection test. It will fail if wget --spider is unable to obtain a response. Usually indicates the URL is offline and/or unreachable.

Try installing PiVPN again from dietpi-software. The URL appears to be working fine for me, at the moment.
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.
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

Re: PiVPN Install Problem

Post by Huffpuffin »

Hi Fourdee

Thanks for the prompt reply.

Tried all options suggested, but no joy - still seeing same error messages.

SD card is Kingston 8GB, but this is only used as boot; root filesystem is on a 32GB Sandisk USB flash drive.

PSU: have tried a Samsung 2A PSU, and another (Power Pak) 2 x 2A PSU. Problem is still there.

Just a thought (from a noob) - as Noip is mentioned, would it be worth trying to uninstall that as well, then re-installing after PiVPN?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiVPN Install Problem

Post by Fourdee »

Hi,

I was able to replicate. Appears SystemD doesnt like the sysinit service.
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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiVPN Install Problem

Post by Fourdee »

This will be resolved in DietPi v136 update, however, you can patch your system now by running the following commands:

Please copy and paste all into a terminal (this is a systemD script that will replace the current one):

Code: Select all

update-rc.d noip2 remove
rm /etc/init.d/noip2
cat << _EOF_ > /etc/systemd/system/noip2.service
[Unit]
Description=noip2
After=network.target network-online.target rsyslog.service

[Service]
Type=forking
RemainAfterExit=yes

ExecStart=/usr/local/bin/noip2
ExecStop=/usr/bin/killall -w noip2

[Install]
WantedBy=multi-user.target
_EOF_
#systemctl enable noip2.service
systemctl daemon-reload
You can use dietpi-config > networking options: NAS/MISC to enter the noip creds. Once done, please reboot and check service is running with (please paste results):

Code: Select all

systemctl status noip2 -l
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.
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

Re: PiVPN Install Problem

Post by Huffpuffin »

Hi Fourdee

Sorry for not coming back sooner. When I went to check for your reply, I saw the update to v136. I have run this update now.

The result of 'systemctl status' is:

Code: Select all

root@RPi3:~# systemctl status noip2 -l
â noip2.service - noip2
   Loaded: loaded (/etc/systemd/system/noip2.service; disabled)
   Active: active (exited) since Wed 2016-11-02 13:41:31 GMT; 1h 13min ago
 Main PID: 1395 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/noip2.service
           ââ1398 /usr/local/bin/noip2

Nov 02 13:41:31 RPi3 systemd[1]: Started noip2.
Nov 02 13:41:31 RPi3 noip2[1398]: v2.1.9 daemon started with NAT enabled
Nov 02 13:41:32 RPi3 noip2[1398]: group[rasppi2] was already set to xxx.xxx.xxx.xxx
Nov 02 13:41:32 RPi3 noip2[1398]: **My NoIP URL** was already set to xxx.xxx.xxx.xxx.
root@RPi3:~#
When I try to login to PiVPN (even after reinstalling), I still get the following:

Code: Select all

root@RPi3:~# pivpn
-bash: pivpn: command not found
root@RPi3:~#
When I uninstall PiVPN I notice the following:

Code: Select all

 [Ok] Uninstalling PiVPN: openvpn installer & management tool

/DietPi/dietpi/dietpi-software: line 8555: pivpn: command not found
userdel: user 'pivpn' does not exist

 DietPi-Software
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
 Mode: Removing packages that are no longer required
 Please wait...

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
When I reinstall PiVPN I still notice this message:

Code: Select all

 DietPi-Software
âââââââââââââââââââââââââââââââââââââââââââââââââââââ
 Mode: Install software
 Please wait...

 PiVPN: openvpn installer & management tool
 [Info] Please wait...

 #               processing | D I E T  P I             #

 [Info] Testing connection to https://install.pivpn.io
 [Info] Max duration of 20 seconds, please wait...
 [Failed] Connection test | An issue has occured
Sorry to be a pain, but any more pointers?
TIA
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: PiVPN Install Problem

Post by Fourdee »

Hi

Looks like PiVPN wasnt actually installed, hence the missing command.
Connection test failed. Either website was down, or, no route to website.

Can you run the following command and paste results please:

Code: Select all

ping -c 1 pivpn.io
/DietPi/dietpi/func/check_connection https://install.pivpn.io
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.
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

Re: PiVPN Install Problem

Post by Huffpuffin »

Hi Fourdee

Thanks for coming back to me. I tried uninstalling PiVPN, then installing manually via http://www.pivpn.io/

This seems to work fine.

Thanks for looking at this, but I am happy to consider this issue closed now.

Can I just say that I think your project is awesome - thanks for all your hard work!

FYI the output from your test commands was:

Code: Select all

root@RPi3:~# ping -c 1 pivpn.io
PING pivpn.io (192.30.252.154) 56(84) bytes of data.
64 bytes from pages.github.com (192.30.252.154): icmp_seq=1 ttl=48 time=140 ms

--- pivpn.io ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 140.835/140.835/140.835/0.000 ms
root@RPi3:~# /DietPi/dietpi/func/check_connection https://install.pivpn.io
 [Info] Testing connection to https://install.pivpn.io
 [Info] Max duration of 20 seconds, please wait...
 [Failed] Connection test | An issue has occured

root@RPi3:~#
Post Reply