Soft reboot vicibox

All installation and configuration problems and questions

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

Soft reboot vicibox

Postby vkad » Tue May 22, 2018 2:48 am

Is there a way or a script to reboot a hung vicidial without rebooting the cluster.

We have had an incidence twice in the past week. The realtime screen shows that calls are being placed, but there is no activity on the asterisk interface.

After rebooting everything is resolved. The strange thing is that these servers have less than 20% load when this happens.

Any insights why this might be happening. I haven't found any error messages in the logs. Simply restarting asterisk doesn't fix the problem.
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby mflorell » Tue May 22, 2018 6:57 am

If you have a cluster, you should not have to reboot the DB server frequently at all. In fact we have some clients that go years without rebooting their DB or web servers. The Asterisk servers on the other hand usually need to be rebooted daily. As for being "hung", that could be caused by any number of issues, almost always related to Asterisk.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Soft reboot vicibox

Postby vkad » Tue May 22, 2018 7:14 pm

I didn't know asterisk servers need to be rebooted daily. Ours usually go without rebooting for weeks.

DB is fine. Web is fine. Its just that realtime shows calls are being dialled, but carrier stats show no calls being placed (also asterisk shows no dialling).
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby mflorell » Tue May 22, 2018 7:34 pm

Depending on your call volume, you can go for a while without rebooting Asterisk servers, but at higher call volumes, it's just a matter of time before Asterisk freezes or crashes, which is why we usually recommend daily reboots.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Soft reboot vicibox

Postby vkad » Wed May 23, 2018 3:25 pm

100k-200k calls per day ?

I don't know if that is high call volume?

Sometimes we are getting this issue twice in a day. Sometimes we go days without it now.
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby mflorell » Wed May 23, 2018 6:13 pm

I would recommend daily Asterisk server reboots for that kind of system.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Soft reboot vicibox

Postby vkad » Fri May 25, 2018 2:05 pm

mflorell wrote:I would recommend daily Asterisk server reboots for that kind of system.



I don't understand why this is happening, but we are doing daily reboots of asterisk server, yet, we get in a situation when autodialing where Realtime screen shows 200 calls are being placed, carrier shows no calls being placed, there is no activity on asterisk....There is no debug information anywhere....

I don't know what to do as this exact system was working fine before. Today we have had to reboot the servers in shift three times.

How can real time screen show calls being dialled (yet, nothing on carrier stats and asterisk)?
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby mflorell » Fri May 25, 2018 4:09 pm

There are many reasons that can happen. It's sometimes hard to tell which one it is without looking at everything that is running on the servers, and the database records.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Soft reboot vicibox

Postby vkad » Fri May 25, 2018 5:34 pm

mflorell wrote:There are many reasons that can happen. It's sometimes hard to tell which one it is without looking at everything that is running on the servers, and the database records.



And it is fixed after a reboot....

What are the main reasons?
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby vkad » Thu May 31, 2018 10:51 pm

it was a vicidial_manger getting full (was using a memory table)
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby Invictus » Thu Jun 07, 2018 7:50 am

vkad wrote:it was a vicidial_manger getting full (was using a memory table)

in mysql config, increase tmp_table_size and max_heap_table_size.

first in mysql cli check values;

Code: Select all
select @@global.tmp_table_size;
select @@global.max_heap_table_size;


then increase values
Code: Select all
SET GLOBAL tmp_table_size=NEW_VALUE;
SET GLOBAL max_heap_table_size=NEW_VALUE;


in /etc/my.cnf file, add under [mysqld] section

Code: Select all
tmp_table_size=NEW_VALUE
max_heap_table_size=NEW_VALUE
Invictus
 
Posts: 16
Joined: Wed Dec 28, 2016 9:49 am

Re: Soft reboot vicibox

Postby thephaseusa » Thu Jun 07, 2018 8:32 am

That issue recently happened to me. The problem was I was dialing more numbers than my 1 asterisk server could process. I was getting up over 100 concurrent calls. They say you need 1 asterisk server for every 100 concurrent calls, so look at your numbers and see if this could be your issue.
thephaseusa
 
Posts: 345
Joined: Tue May 16, 2017 2:23 pm

Re: Soft reboot vicibox

Postby vkad » Tue Jun 12, 2018 4:25 am

The issue was resolved when I changed it to MyISAM
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Soft reboot vicibox

Postby mflorell » Tue Jun 12, 2018 6:56 am

Thanks for posting a followup!

I know I've stated this many times here on the forums, but just for redundancy's sake, when thinking about database engines for use with VICIdial:

InnoDB = BAD

MyISAM = GOOD!!!


:)
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 100 guests