Upgrade Problem

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Upgrade Problem

Postby Trying » Mon Apr 11, 2011 5:27 am

I have just upgraded our servers to the latest SVN but something went wrong. After the upgrade and a reboot asterisk is not running on any of our 4 dialers. Screen -ls gives the following output:

There is a screen on:
2508.ASTfastlog (Detached)
1 Socket in /var/run/screens/S-root.



There were no error messages during the upgrade.

Any help will be much appreciated as we cannot work at all at the moment. :cry:
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Mon Apr 11, 2011 5:58 am

You did not mention what you upgraded FROM (or TO, if the specs in your signature are the FROM 8)).

Did you run the necessary sql commands to upgrade the database after you finished your software upgrade? (if so, describe the results ...? what is your dbschema and what is the dbschema listed on the last line of the upgrade .sql file you ran?)

Did you do a backup of your database before you began the process? (Or better yet ... a complete backup with the backup perl script ...?)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20440
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby Trying » Mon Apr 11, 2011 6:10 am

I upgraded from VERSION: 2.4-306a. I am not sure of the build number but it was the very latest because I upgraded a week ago the last time. My signature is what I upgraded to now.

I used the steps in http://www.vicidial.org/VICIDIALforum/v ... hp?t=16326 I used those steps many times with no problems.

So yes, I did run the SQL commands and I did back up the database.

I have to add that just before the upgrade I ran zypper refresh && zypper up.

Will it be useful to run the upgrade again and see what happens? :)
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Mon Apr 11, 2011 6:14 am

Shouldn't hurt. But you DO need to check your dbSchema against the last line of the sql upgrade file EVERY time. If one of those commands fails, the file stops at that point, often requiring modification of the sql file to run the necessary remaining commands.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20440
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby Trying » Mon Apr 11, 2011 6:16 am

Thanks for the help. I will run the upgrade again now and report back.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Mon Apr 11, 2011 6:36 am

No, I ran the upgrade again with no luck.

Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)


There are more services running though for what its worth:

dialer2:~ # screen -ls
There are screens on:
2736.ASTVDremote (Detached)
2672.ASTfastlog (Detached)
2733.ASTVDauto (Detached)
3 Sockets in /var/run/screens/S-root.
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby Trying » Mon Apr 11, 2011 7:07 am

My database schema is 1269 and the upgrade version is also 1269:

UPDATE system_settings SET db_schema_version='1269',db_schema_update_date=NOW();
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby boybawang » Mon Apr 11, 2011 7:54 am

try running /etc/init.d/vicidial restart
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby williamconley » Mon Apr 11, 2011 8:06 am

Trying wrote:
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)

It's complaining because asterisk isn't running. Which should have nothing to do with Vicidial when performing a simple Vicidial upgrade. (all you are doing is replacing scripts that run after asterisk starts!)

What Exactly did you upgrade?

Is asterisk running?

Have you rebooted?

Code: Select all
asterisk -vvvc
Any errors starting asterisk?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20440
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby Trying » Mon Apr 11, 2011 9:25 am

Aterisk is not running. I rebooted several times but it doesn't start. With asterisk -vvvc the only errors are:

[Apr 11 16:17:20] WARNING[11298]: chan_dahdi.c:1839 dahdi_open: Unable to open '/dev/dahdi/channel': No such file or directory
[Apr 11 16:17:20] ERROR[11298]: chan_dahdi.c:8925 mkintf: Unable to open channel 1: No such file or directory
here = 0, tmp->channel = 1, channel = 1
[Apr 11 16:17:20] ERROR[11298]: chan_dahdi.c:13217 build_channels: Unable to register channel '1-15,17-31'


I am not sure I understand your question regarding what exactly did I upgrade? I did the standard upgrade on all my servers. As I said earlier I did do a zypper refresh && zypper up on each server before upgrading as well.

Here is what happens when I run /etc/init.d/vicidial restart:

dialer2:~ # /etc/init.d/vicidial restart
Asterisk not running

Router is already stopped !

Stopped Vicidial done
Loading DAHDI drivers
Starting Sangoma wanrouter driver

Starting WAN Router...
Loading WAN drivers: wanpipe FATAL: Module wanpipe not found.

Failed to load wanpipe modules !

Sangoma failed to load! Fallback to dahdi_dummy module!
FATAL: Module dahdi_dummy not found.
dahdi_dummy NOT loaded
You have new mail in /var/mail/root


Thanks for the help guys!!
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby boybawang » Mon Apr 11, 2011 9:31 am

looks like you have a new kernel installed during the upgrade and you need to re compile your dahdi drivers
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby Trying » Mon Apr 11, 2011 9:34 am

Can this be the reason why asterisk doesn't start? Sorry but how do I recompile the drivers? By running wancfg_dahdi?
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa

Postby williamconley » Mon Apr 11, 2011 10:01 am

look at the scratch installation instructions, it's part of that procedure. zypper refresh is good, but zypper up can alter your kernel, thus requiring dahdi or zaptel to be recompiled along with asterisk and libpri.

I don't generally recommend zypper up during a vicidial upgrade. All you need to do for a vicidial upgrade is install the new sources, really. unless kumba has altered the distro in some important fashion (possible!) it is not necessary to zypper up to use vicidial's newest cool stuff.

The instructions for a quick recompile of those three packages to get asterisk back online have been posted a few times.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # 888-883-8488 # +44(203) 769-2294
williamconley
 
Posts: 20440
Joined: Wed Oct 31, 2007 4:17 pm
Location: Bartow, FL (In the boondocks)

Postby Trying » Mon Apr 11, 2011 10:05 am

Thank you very much to both of you guys!! I am SO relieved it is nothing serious!! :D
Vicibox Redux 3.1.14 64 bit
Asterisk: 1.4.39.2-vici | VERSION: 2.8-433a | BUILD: 140411-1434
Sangoma A102D/E1
Servers: 1 x Database; 1 x Web; 6 x Telephony; 2 x Archive
Outbound and blended ratio 3:1 with full voice recording
No additional software
Trying
 
Posts: 865
Joined: Sun Sep 09, 2007 8:41 am
Location: South Africa


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 113 guests