vicialnow how to separate the database MYSQL

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

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

vicialnow how to separate the database MYSQL

Postby cyberchoy123 » Wed Apr 07, 2010 1:48 pm

Hi moderators,

I'm quiet a newbie and wanted to separate my VICIDIALNOW database to a separate or a dedicated database. Can you provide me on what are the things i should do. I have already installed a new VICIDIALNOW and all i need to do is to change the database in astguiclient.conf which is done, but i get Time Sync Error.
cyberchoy123
 
Posts: 71
Joined: Sat Jul 18, 2009 2:47 am

Postby williamconley » Wed Apr 07, 2010 5:56 pm

you should have all your servers (mysql and otherwise) using the same NTP source. preferably a server in your office (which may or may not then sync to an external national source).

the database needs to be transferred and permissions need to be in place so that you can access it from your existing installation.

the simplest method to test it is to "simulate" what the server will do. from your linux command line, enter
Code: Select all
mysql asterisk --host=xxx.xxx.xxx.xxx --user=cron -p
you will hopefully be prompted for your cron password (which i hope you have and i further hope is not still 1234 except for "testing" purposes :))

In case it's necessary: replace xxx.xxx.xxx.xxx with the ip address of your new mysql server.

if this does not work, you will need to create a cron user and give it permission to log in and perform its necessary functions from the IP address of the Vicidial server. The specific command set for this is contained in the Scratch Install instructions distributed with all Vicidial source.
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: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby cyberchoy123 » Thu Apr 08, 2010 11:58 am

i have already tested and run the command in my other server

mysql asterisk --host=xxx.xxx.xxx.xxx --user=cron -p

and it works i can update delete and add rows to it.

Here is the setup 10.10.20.20 - WEB/ASTERISK 10.10.20.51 - MYSQL.

both are on the same timezone but still i get time sync error.
cyberchoy123
 
Posts: 71
Joined: Sat Jul 18, 2009 2:47 am

Postby gardo » Fri Apr 09, 2010 3:36 am

It's recommended to also have your workstations synchronize to the same time server.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Postby cyberchoy123 » Fri Apr 09, 2010 1:18 pm

its now fix. just needs to have sync with the other server. Thanks moderators.
cyberchoy123
 
Posts: 71
Joined: Sat Jul 18, 2009 2:47 am

Postby williamconley » Fri Apr 09, 2010 1:51 pm

to be clear on your solution: was it that the MySQL server needed to sync to the Asterisk/Apache server or was it the agents workstations syncing to the Asterisk/Apache server that resolved your problem? (there will be others reading this post for about a year ... good information to post)
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: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

solution

Postby cyberchoy123 » Tue Apr 13, 2010 9:33 am

Fixing Time Sync Error in a Separate Database Server

1.stop NTP server

root@vici:# service ntpd stop

2. edit ntp.conf

root@dialer1:# vi /etc/ntp.conf

3. Make sure that the following are in the file ntp.conf:

server 0.north-america.pool.ntp.org
server 1.north-america.pool.ntp.org
server 2.north-america.pool.ntp.org
server pool.ntp.org
server 127.127.1.0


4. sync the time with the NTP server

root@vici:# ntpdate pool.ntp.org

5. restart the NTP Server

root@vici:# service ntpd start


Do this for both servers. Asterisk & Database
cyberchoy123
 
Posts: 71
Joined: Sat Jul 18, 2009 2:47 am

Postby williamconley » Tue Apr 13, 2010 11:15 am

williamconley wrote:to be clear on your solution: was it that the MySQL server needed to sync to the Asterisk/Apache server or was it the agents workstations syncing to the Asterisk/Apache server that resolved your problem?
I hate assuming, but i'm assuming that means the syncing the SERVERS solved your issue.

i also had a client this week whose vicibox redux opensuse clustered server was overloaded (assumption here again) and the ntp service failed.

it synced up to a point and just "stopped" early in the morning under heavy load. it took a while to get out of sync (/var/log/ntp) but eventually it did and the auto-dial function simply stopped working.

since the server was in use and could not be rebooted, a manual time setting (to within 1 second of the mysql server) brought the auto-dial function back online immediately.
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: 20256
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 110 guests