2 server setup

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

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

2 server setup

Postby tommyinnn » Wed Jul 07, 2010 9:18 am

I have this working with a different server, but for some reason, this new server I just installed vicidial on will not let me connect a second server to it

2 servers

1 (main server) will hold mysql & also be used as dialer (71.43.11.111 )

2 (second server will be used only as a dialer - have pointed mysql ip to main server (71.43.11.113)

> below is from file etc/astguiclient - off server #2
Code: Select all
# Database connection information
VARDB_server => 71.43.11.111
VARDB_database => asterisk
VARDB_user => cron
VARDB_pass => 1234
VARDB_port => 3306


but this gives me this error

Code: Select all
MySQL connect ERROR: Lost connection to MySQL server at 'reading initial communication packet', system error: 113


I have also change the DB settings in /var/www/html/vicidial/dbconnect.php and /var/www/html/agc2/dbconncet.php

now I have a different main server and this works fine - so this must have somethign to do with a setting in my main server - even though I just dumped the database from the old to new server ... any one have any ideas??
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby omarrodriguezt » Thu Jul 08, 2010 9:04 am

Do you have a firewall activated in your DB server?

Are you able to connect to the data base server from other PC?
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Postby tommyinnn » Thu Jul 08, 2010 9:09 am

I ran /etc/init.d/iptables stop

From another pc??
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby tommyinnn » Mon Jul 12, 2010 8:55 am

Can someone else help me out on this? I've checked over everything I know of, made sure the etc/astguiclient.conf file is correct, set the /etc/httpd/conf.d/phpmyadmin.conf file to accept from all -

I do have this working on another server, 2 servers, 1 database
VERSION: 2.2.1-237
BUILD: 100510-2015

But can't figure out why it won't work on my newest installation/server



any ideas would be very appreciated.
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby omarrodriguezt » Fri Jul 16, 2010 2:06 pm

Are you able to loggin to your DB server from another PC?
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Postby tommyinnn » Sun Jul 18, 2010 7:50 am

From another PC ?? Yes, I can access both databases on both servers for a PC ?@#?
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby omarrodriguezt » Tue Jul 20, 2010 10:03 am

"
re: Lost connection to MySQL server at 'reading initial communication packet'

Odd, after playing around with removing the bind address and restarting, it seems to be working fine again. It wasn't before, but oh well, it's working! Thanks for everyone's time.
"
From:

http://bytes.com/topic/mysql/answers/84 ... ion-packet

Let us know if work for you.
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Postby tommyinnn » Tue Jul 20, 2010 10:09 am

Thanks for that tip omarrodriguezt ... I'm going to look into this...
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby omarrodriguezt » Mon Jul 26, 2010 1:11 pm

Ok
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Postby tommyinnn » Tue Jul 27, 2010 10:10 am

That just tells me to edit bind-adress - which is not in my my.cnf file



Code: Select all
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
skip-name-resolve
skip-host-cache
max_connections=200

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


The problem is only on this server - works fine on other servers with same installation method

any other ideas??
VERSION: 2.2.1-237
BUILD: 100510-2015
VicidialNow - Upgraded from 1.3 to Vicidial 2.2 SVN via SSH instructions (7/2010)
Multi-Server - Single Database

http://myautodj.com
http://icecastautodj.com
tommyinnn
 
Posts: 111
Joined: Thu Jan 07, 2010 3:27 pm

Postby williamconley » Tue Jul 27, 2010 9:38 pm

what happens when you try
Code: Select all
mysql -h xxx.xxx.xxx.xxx -u cron -p

from another box?

also, you SHOULD have
Code: Select all
bind-address            = xxx.xxx.xxx.xxx

if you want to access this box via mysql from another box
and you should NOT have skip-networking
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 127 guests