ViciBox 5.0.3.Preload New Installation Issues

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

ViciBox 5.0.3.Preload New Installation Issues

Postby ramonvel » Mon Nov 11, 2013 1:43 am

Hi Guys,

I've tried this installation multiple times and everytime it fails on the same section. I would appreciate if somebody can point me the right direction. Here is my server info:

Dual Quad Core L5520
8GB RAM
SSD 120 GB
ViciBox5.x86_64-5.0.3.preload

I changed the IP address and assigned a static IP address using "yast lan"; disabled firewall, run the bug fixes as per Kumba:

1) sed -i '/baseurl/c baseurl=http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_12.3' /etc/zypp/repos.d/packman_12.3.repo
2) zypper refresh
3) zypper up

Everything runs great until the command:

wanpipe-compile

Which gives me the following errors:

2013-11-11 01:29:44 (2.59 MB/s) - `wanpipe-current.tgz.4' saved [13800509]

/usr/local/bin/wanpipe-compile: line 47: cd: /usr/src/wanpipe-current: No such file or directory
make: *** No rule to make target `dahdi'. Stop.
make: *** No rule to make target `install'. Stop.

Wanpipe should now be installed. Verify by running wanrouter hwprobe

Instead of /usr/src/wanpipe-current the directory I have is /usr/src/wanpipe-7.0.6/ , so I cd to it & run this command manually which was part of the script on "/usr/local/bin/wanpipe-compile"

make dahdi DAHDI_DIR=/usr/include/dahdi/obj/x86_64/default/


The following is a partial output with the last section of errors.

/usr/src/wanpipe-7.0.6/patches/kdrivers/src/net/sdladrv_src.c: In function ‘sdla_hw_bridge_probe’:
/usr/src/wanpipe-7.0.6/patches/kdrivers/src/net/sdladrv_src.c:3960:3: error: implicit declaration of function ‘pci_dev_b’ [-Werror=implicit-function-declaration]
/usr/src/wanpipe-7.0.6/patches/kdrivers/src/net/sdladrv_src.c:3960:7: warning: assignment makes pointer from integer without a cast [enabled by default]
/usr/src/wanpipe-7.0.6/patches/kdrivers/src/net/sdladrv_src.c:3969:7: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/wanpipe-7.0.6/patches/kdrivers/src/net/sdladrv_src.o] Error 1
make[3]: *** [_module_/usr/src/wanpipe-7.0.6/patches/kdrivers/src/net] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-3.7.10-1.16-obj/x86_64/default'
make: *** [all_kmod_dahdi] Error 2

That's it. I've not been able to pass this point. I feel tempted to install version 4.0.3 but I cannot sleep asking myself what's going on. Also, I want to add that Vicidial doesn't appear to be installed:

/etc/init.d/vicidial restart
/start_asterisk_boot.pl not installed

I thought that the Vicibox would install everything. Please, I need your help. In advance I really appreciate your input and support.
Ray
ramonvel
 
Posts: 59
Joined: Fri Apr 13, 2007 9:55 am
Location: Miami

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby Kumba » Mon Nov 11, 2013 3:54 pm

Wanpipe is fundamentall broken. It doesn't support kernels above 3.2 I think. If you need T1 support I would suggest you use Digium cards. Sangoma seems to only be following CentOS kernels which leaves most everyone else stuck with that or using an old OS.

Also, you haven't run the vicibox-install script yet. Either that or you didn't tell it that this server was a telephony server. That's why there is no /etc/init.d/vicidial or related scripts.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby DomeDan » Wed Nov 13, 2013 5:23 am

ramonvel:
Here is a topic about the compile problem you have: http://wiki.sangoma.com/Topic-1371689874583

Kumba:
according to the installation manual http://download.vicidial.com/iso/vicibo ... nstall.pdf wanpipe-compile should be run before vicibox-install
and running vicibox-install wont help anyway, the problem is that sangoma changed the directory name,
here is a way to fix wanpipe-compile:
Code: Select all
--- wanpipe-compile.orig   2013-11-13 11:10:02.016796068 +0100
+++ wanpipe-compile   2013-11-13 11:16:56.728795930 +0100
@@ -44,7 +44,8 @@
 cd /usr/src
 rm -rf wanpipe-*
 tar xf ./tars/$FILEXT
-cd /usr/src/$WANPIPE
+WANPIPE_DIR=`tar tf tars/$FILEXT 2>/dev/null | head -1`
+cd /usr/src/$WANPIPE_DIR
 
 # Figure out what we are running on so we can do the install
 KERNEL=`uname -r`
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby Kumba » Wed Nov 13, 2013 8:51 pm

Either way, Wanpipe driver itself, as in the source code retrieved from Sangoma, does not support kernels above 3.2 I think. Since ViciBox v.5 is Kernel 3.4 and newer ones will be 3.7 Sangoma drivers are fundamentally broken.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby ramonvel » Thu Nov 14, 2013 9:18 pm

Hi Kumba and DomeDan,

Thanks very much for your help. I greatly appreciate it. Yes, I believe read a similar posting where it stated that the Sangoma drivers are fundamentally broken for kernel 3.4 and newer. I was able to proceed with the Vicibox-install and it finished successfully. I'm dealing with other issues now but I will post after I finish reading the manual.

Again, guys, thanks a million for your help.

Best Regards,
Ray
ramonvel
 
Posts: 59
Joined: Fri Apr 13, 2007 9:55 am
Location: Miami

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby lvish » Sat Apr 26, 2014 2:46 am

Hi


I followed this thead and the link provided by Domedan and was able install wanpipe 7.0.8 on vicibox 5.0.3 pre load ( kernel 3.7.0.28-default).

Thanks to Domedan and others..

Only problem now is wanrouter doesnt start after a reboot, manually we have to run"wanrouter start" every time after a restart.
Tried adding a startup script @ cron and at rc.d/ but no luck.

Opening a ticket with Sangoma didnt yield any positive result.

thanks in advance..

lvish

---------------ML 110 , 1XQuad core , 4GB ram , Sata drive, Vicibox-5.0.3 pre load X64,SVN updates,Sangoma 2port PRI---
lvish
 
Posts: 103
Joined: Tue Jan 25, 2011 4:56 am

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby DomeDan » Mon Apr 28, 2014 7:45 am

Hello.

You might need to add a delay before trying to start wanrouter with cron else it might try to start it before other needed services is started.
30 seconds might work

@reboot sleep 30;wanrouter start

dont know how wanrouter normally starts up but I would guess from a rc.d script as you mentioned, was it execute-able and enabled?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby lvish » Tue Apr 29, 2014 10:57 pm

Hi

Tried on crontab @reboot wanouter start, no luck. Will check again on saturday night when call center is off.


regds

lvish
lvish
lvish
 
Posts: 103
Joined: Tue Jan 25, 2011 4:56 am

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby williamconley » Thu May 01, 2014 9:52 pm

post your EXACT entry in crontab. Probably just formatted wrong. And note whether this is in "crontab -e" (entered at the linux cli) or /etc/crontab (modifying this file). The formats are different as the /etc/crontab entries require a user and crontab -e does not.

In /etc/crontab:
Code: Select all
@reboot         root  sleep 30;  wanrouter start
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby lvish » Tue May 06, 2014 2:01 am

hi

i uses crontab -e



@reboot sleep 180 ; wanrouter start

also tried

@reboot sleep 180: wanrouter start

but no luck..
lvish
lvish
 
Posts: 103
Joined: Tue Jan 25, 2011 4:56 am

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby williamconley » Fri May 09, 2014 12:32 pm

check the log and see if the command is actually executing.

and verify at the command line that what you are executing CAN execute. remove the @reboot, however. LOL
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby DomeDan » Fri May 16, 2014 8:08 am

Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby lvish » Mon May 19, 2014 8:57 pm

Hi

good news is issue fixed ..

I modified /etc/init.d/vicidial --commented 'if' condition as below marked in red.
With this changes wanrouter starts after reboots. No additional startup script used.. Not sure where else it is affecting but for me one 2 port sangoma PRI card boots up smartly!!!!

line no. 288

## if /sbin/lsmod | /usr/bin/grep dahdi
## then
## echo "DAHDI already loaded"
## else
if [ -x $WAN_BIN ] ; then
echo "Starting Sangoma wanrouter driver"
$WAN_BIN start

if ! /sbin/lsmod | /usr/bin/grep dahdi ; then
echo "Sangoma failed to load! Fallback
to $ZAP_MOD module!"
/sbin/modprobe $ZAP_MOD || { echo
"$ZAP_MOD NOT loaded" ; exit 5; }
fi

else
echo "Starting kernel module $ZAP_MOD"
/sbin/modprobe $ZAP_MOD || { echo "$ZAP_MOD NOT
loaded" ; exit 5; }
fi
## fi
lvish
lvish
 
Posts: 103
Joined: Tue Jan 25, 2011 4:56 am

Re: ViciBox 5.0.3.Preload New Installation Issues

Postby williamconley » Tue Jun 10, 2014 2:43 am

Excellent postback Ivish :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 82 guests