FYI Install PIAF on CentOS Existing Installation

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
hey never mind it was their ajax console that was screwing it up... i just ssh with putty and it works.. great stuff!
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
hey never mind it was their ajax console that was screwing it up... i just ssh with putty and it works.. great stuff!

Good to see it is working. Here are a few other tips if anyone else has some problems:

- Aside from packages that already exists and no hardware clock, you shouldn't be getting any errors. If you get problems, please capture your putty logs so we can look into where the error is (you did remember to set your scrollback to greater than 200 lines and enable session logging, right?)


- My experience has been that piafdl hangs in 2 cases:
1. There is a dependency that is missing.
2. piafdl is unable to contact the pbxinaflash servers.​
Make sure your server has proper DNS servers setup in its' network config (this could also cause errors during the prep script too). If all else fails, add the Google DNS servers as your first two (8.8.8.8 and 8.8.4.4).


- If you still can't get PiaF to install, try a different data center. Sometimes IP blocks get accidentally blacklisted by the PiaF web servers and this has caused me trouble in the past.


- As pok discovered, don't use the web based consoles, always use Putty or another SSH client. Aside from problems with copying and pasting commands into the web console, they also generally have no scrollback and logging capabilities. When you setup your Putty connection, make sure you increase the scrollback higher than the default 200 lines and also enable logging so you have a record of any errors that may come up.
 

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
ok installation just finished.. during the installation it stalled at one point and said "failed to download fopfix29.tgz.. WRITE THIS DOWN.. Press ENTER to continue' .. after that it installed the rest of it fine... when it rebooted..
Asterisk = OFFLINE
IPTABLES and IP6TABLES = OFFLINE..
WLAN0 = OFFLINE
other non-important stuff:
Hidd, Samba,Bluetooth OFFLINE

Running Asterisk Version = UNKNOWN
ZAP/DAHDI = UNKNOWN

are these things all normal? would I need to manually install that fopfix29 patch? thanks
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
ok installation just finished.. during the installation it stalled at one point and said "failed to download fopfix29.tgz.. WRITE THIS DOWN.. Press ENTER to continue' .. after that it installed the rest of it fine... when it rebooted..
Asterisk = OFFLINE
IPTABLES and IP6TABLES = OFFLINE..
WLAN0 = OFFLINE
other non-important stuff:
Hidd, Samba,Bluetooth OFFLINE

Running Asterisk Version = UNKNOWN
ZAP/DAHDI = UNKNOWN

are these things all normal? would I need to manually install that fopfix29 patch? thanks


The install failed. Check your DNS servers and try again. I'm not sure about 32 bit, but on 64 bit Asterisk is finicky and needs to be re-compiled every time there are fixes added to it. It's possible that with FOPFix missing the asterisk compile failed?

For good measure, you may want to start from scratch again (re-provision your VPS) and use Putty so you can enable the logging option on your connection while you do the install. If you get errors during the VPS script, let me know so I can look into the cause.
 

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
here is my current DNS and HOSTS info.. my VPS IP is 66.228.93.133.. would i need to add this IP into the HOSTS like: 66.228.93.133 localhost? what do I check with my DNS? I knew this was harder than I thought..
DNS:
[root@li289-133 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search members.linode.com
nameserver 207.192.69.5
nameserver 97.107.133.4
nameserver 207.192.69.4

Hosts:

[root@li289-133 ~]# nano /etc/hosts
GNU nano 1.3.12 File: /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
 

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
here is a little bit at the end of the 2nd try that concerns me

STARTING ASTERISK
/var/lib/asterisk/bin/freepbx_engine: line 152: /usr/sbin/safe_asterisk: No such file or

directory
safe_asterisk: no process killed
mpg123: no process killed

-----------------------------------------------------
Asterisk could not start!
Use 'tail /var/log/asterisk/full' to find out why.
-----------------------------------------------------
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Looks like Asterisk didn't compile. This could be because of an inability to download the software (DNS or network problem) or an inability to compile the software (usually because of inaccurate time on your host).
 

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
Looks like Asterisk didn't compile. This could be because of an inability to download the software (DNS or network problem) or an inability to compile the software (usually because of inaccurate time on your host).
yes it looks like asterisk is not there at all with all this missing paths/files.. i'm not sure about inability to download, it downloaded and installed everything else fine.. On my second try i added following line in the /etc/hosts
<my external ip> localhost localdomain.localhost pbx.local pbx

i am doing this directly from memory so maybe reversed a couple of them.. during the time i added, i checked they were the correct syntax.. I can access everything else in the PIAF main screen except for freepbx...
 

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
sorry for being a noob but how can i check if the DNS is configured and working correctly on the vps? thx
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
The major reason we provide a turnkey ISO install is to avoid many of these types of problems. Others may have some ideas but we really, really don't support homegrown installs of PBX in a Flash. We don't discourage it. We just don't have the staffing levels to debug all the potential problems which easily number in the thousands.
 

pok

New Member
Joined
May 3, 2011
Messages
10
Reaction score
0
totally understood... installed with ease on my virtualbox at home.. didnt expect it to be so different.. ah well... what can i do..
 

sircolin

Guru
Joined
Mar 6, 2009
Messages
172
Reaction score
0
OK, give me a little while. I need to setup an OpenVZ server to test this. Thanks Sircolin.
@DragonHawk
If you are committed to getting this script working on proxmox/openvz i would be happy to assign you a openvz vps machine for 2 weeks to help you get this done, I should really take a more active role but I'm just so busy right now and have no time to sit down and write another script. or help debug yours, it would be nice to have a up to date openvz template again.

Col
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
I just threw together an old P4 with 1.7GB of ram in it to create a OpenVZ server for testing. It can't do x86_64, but I'm checking the 32 bit version for any problems.


@DragonHawk
If you are committed to getting this script working on proxmox/openvz i would be happy to assign you a openvz vps machine for 2 weeks to help you get this done, I should really take a more active role but I'm just so busy right now and have no time to sit down and write another script. or help debug yours, it would be nice to have a up to date openvz template again.

Col
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
These customized installs can be a little tricky sometimes. Ward is completely correct that they can't support them and as much as possible Joe and I try to support our own scripts here in the forums.

If you want a PiaF VPS fast and easy, you can always go with Host Virtual. They have a PiaF image ready for deployment. They also support IPv6 which is an added benefit if you wanted to get into that as well. In addition, I know that the script does work on VPS.net's CentOS 5.4 x86_64 image as I did much of my testing on that image in the SLC D cloud (I did have problems with CHI C though as that IP range was blacklisted by pbxinaflash.net's security - if you have problems with downloading after running piafdl it can be the cause).

If you feel like increasing your linux knowledge by working through with the install script and working out the problems you are experiencing, then please let us know of any workarounds you had to do in order to get it to work. If it is a LinNode specific issue, we can document it, if it is a bug with the script then we can fix it.



totally understood... installed with ease on my virtualbox at home.. didnt expect it to be so different.. ah well... what can i do..
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
The issue Pok is experiencing is due to Linode using a custom kernel. Because downloading and compiling custom kernel headers is beyond the scope of this script, I have added a check for Linode kernels to the script. If anyone comes across other VPS suppliers that use custom kernels (not the base kernels or the Xen kernels), please let me know so I can add a check for them.

totally understood... installed with ease on my virtualbox at home.. didnt expect it to be so different.. ah well... what can i do..
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
From researching the changes required on an OpenVZ system to get this working, and because there are OpenVZ images available for PiaF, I'm not going to support OpenVZ for this script.

I have added a check for OpenVZ and Proxmox kernels to the script to prevent wasting a users time and bandwidth.

The updated script will be available later tonight - I am also updating a few of the packages in it.



EDIT - Script version 2.00.1 is now uploaded to the ActiveSpeak site. Please let me know of any errors you come across.



@DragonHawk
If you are committed to getting this script working on proxmox/openvz i would be happy to assign you a openvz vps machine for 2 weeks to help you get this done, I should really take a more active role but I'm just so busy right now and have no time to sit down and write another script. or help debug yours, it would be nice to have a up to date openvz template again.

Col
 

johnnypuffs

New Member
Joined
Nov 2, 2010
Messages
50
Reaction score
0
Hello - Just wanted to give a quick thanks to Joe for writing this script and to DragonHawk for his tweaked version..

I used DragonHawk's script to install on a 64bit XenServer 5.6 Guest and it worked flawlessly! I then used the incrediblepbx18-vm.x script to install Incredible PBX and again it went off perfectly.

Zero problems on the install and so far with testing everything seems to be working perfectly!

Thanks for the work guys!
JP
 

DragonHawk

Guru
Joined
Sep 9, 2010
Messages
26
Reaction score
1
Hello - Just wanted to give a quick thanks to Joe for writing this script and to DragonHawk for his tweaked version..

I used DragonHawk's script to install on a 64bit XenServer 5.6 Guest and it worked flawlessly! I then used the incrediblepbx18-vm.x script to install Incredible PBX and again it went off perfectly.

Zero problems on the install and so far with testing everything seems to be working perfectly!

Thanks for the work guys!
JP

You're welcome. Thanks for letting us know it worked for you!
 

MACscr

Member
Joined
Mar 12, 2008
Messages
50
Reaction score
1
Is this activespeak script still the best way to install Piaf on an existing server? I am wanting to make sure I install an LTS version too.
 

Members online

No members online now.

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top