MySQL connect ERROR: Connection timed out

All installation and configuration problems and questions

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

MySQL connect ERROR: Connection timed out

Postby ashis103 » Sat May 11, 2013 2:02 am

Dear team

I can't access my server due to MySQL connect ERROR: Connection timed out . Its happen more and more .Please advise .
My Asterisks server :ex:192.168.1.2
and DB server : 192.168.1.3
Problem is probably DB server , I can easily access Asterisks server .

I had below config in both server :
iptables -A INPUT -p tcp --dport 5038 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
rcSuSEfirewall2 stop
/sbin/SuSEfirewall2 off

But Problem still same .

tail -F /usr/share/mysql/english/errmsg.sys

---------------------------------------
nd in FUNCTION %sFUNCTION %s ended without RETURNCursor statement must be a SELE CTCursor SELECT must not have INTOUndefined CURSOR: %sCursor is already openCurs or is not openUndeclared variable: %sIncorrect number of FETCH variablesNo data - zero rows fetched, selected, or processedDuplicate parameter: %sDuplicate vari able: %sDuplicate condition: %sDuplicate cursor: %sFailed to ALTER %s %sSubquery value not supported%s is not allowed in stored function or triggerVariable or c ondition declaration after cursor or handler declarationCursor declaration after handler declarationCase not found for CASE statementConfiguration file '%-.192s ' is too bigMalformed file type header in file '%-.192s'Unexpected end of file w hile parsing comment '%-.200s'Error while parsing parameter '%-.192s' (line: '%- .192s')Unexpected end of file while skipping unknown parameter '%-.192s'EXPLAIN/ SHOW can not be issued; lacking privileges for underlying tableFile '%-.192s' ha s unknown type '%-.64s' in its header'%-.192s.%-.192s' is not %sColumn '%-.192s' is not updatableView's SELECT contains a subquery in the FROM clauseView's SELE CT contains a '%s' clauseView's SELECT contains a variable or parameterView's SE LECT refers to a temporary table '%-.192s'View's SELECT and view's field list ha ve different column countsView merge algorithm can't be used here for now (assum ed undefined algorithm)View being updated does not have complete key of underlyi ng table in itView '%-.192s.%-.192s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use themCan't drop or alt er a %s from within another stored routineGOTO is not allowed in a stored proced ure handlerTrigger already existsTrigger does not existTrigger's '%-.192s' is vi ew or temporary tableUpdating of %s row is not allowed in %striggerThere is no % s row in %s triggerField '%-.192s' doesn't have a default valueDivision by 0Inco rrect %-.32s value: '%-.128s' for column '%.192s' at row %ldIllegal %s '%-.192s' value found during parsingCHECK OPTION on non-updatable view '%-.192s.%-.192s'C HECK OPTION failed '%-.192s.%-.192s'%-.16s command denied to user '%-.48s'@'%-.6 4s' for routine '%-.192s'Failed purging old relay logs: %sPassword hash should b e a %d-digit hexadecimal numberTarget log not found in binlog indexI/O error rea ding log index fileServer configuration does not permit binlog purgeFailed on fs eek()Fatal error during log purgeA purgeable log is in use, will not purgeUnknow n error during log purgeFailed initializing relay log position: %sYou are not us ing binary loggingThe '%-.64s' syntax is reserved for purposes internal to the M ySQL serverWSAStartup FailedCan't handle procedures with different groups yetSel ect must have a group with this procedureCan't use ORDER clause with this proced ureBinary logging and replication forbid changing the global server %sCan't map file: %-.200s, errno: %dWrong magic in %-.64sPrepared statement contains too man y placeholdersKey part '%-.192s' length cannot be 0View text checksum failedCan not modify more than one base table through a join view '%-.192s.%-.192s'Can not insert into join view '%-.192s.%-.192s' without fields listCan not delete from join view '%-.192s.%-.192s'Operation %s failed for %.256sXAER_NOTA: Unknown XIDX AER_INVAL: Invalid arguments (or unsupported command)XAER_RMFAIL: The command ca nnot be executed when global transaction is in the %.64s stateXAER_OUTSIDE: Som e work is done outside global transactionXAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistencyXA_RBROLLBACK: Transaction branch was rolled backThere is no such grant defined for user '%-.48s' on host ' %-.64s' on routine '%-.192s'Failed to grant EXECUTE and ALTER ROUTINE privileges Failed to revoke all privileges to dropped routineData too long for column '%s' at row %ldBad SQLSTATE: '%s'%s: ready for connections.
Version: '%s' socket: '%s' port: %d %sCan't load value from file with fixed s ize rows to variableYou are not allowed to create a user with GRANTIncorrect %-. 32s value: '%-.128s' for function %-.32sTable definition has changed, please ret ry transactionDuplicate handler declared in the same blockOUT or INOUT argument %d for routine %s is not a variable or NEW pseudo-variable in BEFORE triggerNot allowed to return a result set from a %sCannot get geometry object from data you send to the GEOMETRY fieldA routine failed and has neither NO SQL nor READS SQL DATA in its declaration and binary logging is enabled; if non-transactional tab les were updated, the binary log will miss their changesThis function has none o f DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creato rs variable)You do not have the SUPER privilege and binary logging is enabled (y ou *might* want to use the less safe log_bin_trust_function_creators variable)Yo u can't execute a prepared statement which has an open cursor associated with it . Reset the statement to re-execute it.The statement (PuTTYPuTTY%lu) has no open cursor.Explicit or implicit commit is not allowed in stored function or trigger .Field of view '%-.192s.%-.192s' underlying table doesn't have a default valueRe cursive stored functions and triggers are not allowed.Too big scale %d specified for column '%-.192s'. Maximum is %lu.Too big precision %d specified for column '%-.192s'. Maximum is %lu.For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '%-.192s').You can't combine write-locking of system tables with o ther tables or lock typesUnable to connect to foreign data source: %.64sThere wa s a problem processing the query on the foreign data source. Data source error: %-.64sThe foreign data source you are trying to reference does not exist. Data s ource error: %-.64sCan't create federated table. The data source connection str ing '%-.64s' is not in the correct formatThe data source connection string '%-.6 4s' is not in the correct formatCan't create federated table. Foreign data src e rror: %-.64sTrigger in wrong schemaThread stack overrun: %ld bytes used of a % ld byte stack, and %ld bytes needed. Use 'mysqld -O thread_stack=#' to specify a bigger stack.Routine body for '%-.100s' is too longCannot drop default keycach eDisplay width out of range for column '%-.192s' (max = %lu)XAER_DUPID: The XID already existsDatetime function: %-.32s field overflowCan't update table '%-.192 s' in stored function/trigger because it is already used by statement which invo ked this stored function/trigger.The definition of table '%-.192s' prevents oper ation %.192s on table '%-.192s'.The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive mannerNot allowed to set autocommit from a stored function or triggerDefiner is not fully qualifiedView '%-.192s'.'%-.192s' has n o definer information (old table format). Current user is used as definer. Pleas e recreate the view!You need the SUPER privilege for creation view with '%-.192s '@'%-.192s' definerThe user specified as a definer ('%-.64s'@'%-.64s') does not existChanging schema from '%-.192s' to '%-.192s' is not allowed.Cannot delete or update a parent row: a foreign key constraint fails (%.192s)Cannot add or updat e a child row: a foreign key constraint fails (%.192s)Variable '%-.64s' must be quoted with `...`, or renamedNo definer attribute for trigger '%-.192s'.'%-.192s '. The trigger will be activated under the authorization of the invoker, which m ay have insufficient privileges. Please recreate the trigger.'%-.192s' has an ol d format, you should re-create the '%s' object(s)Recursive limit %d (as set by t he max_sp_recursion_depth variable) was exceeded for routine %.192sFailed to loa d routine %-.192s. The table mysql.proc is missing, corrupt, or contains bad dat a (internal code %d)Incorrect routine name '%-.192s'Table upgrade required. Plea se do "REPAIR TABLE `%-.32s`" or dump/reload to fix it!AGGREGATE is not supporte d for stored functionsCan't create more than max_prepared_stmt_count statements (current value: %lu)`%-.192s`.`%-.192s` contains view recursionnon-grouping fiel d '%-.192s' is used in %-.64s clauseThe used table type doesn't support SPATIAL indexesTriggers can not be created on system tablesLeading spaces are removed fr om name '%s'Failed to read auto-increment value from storage engineuser namehost nameString '%-.70s' is too long for %s (should be no longer than %d)The target table %-.100s of the %s is not insertable-intoTable '%-.64s' is differently defi ned or of non-MyISAM type or doesn't existToo high level of nesting for selectNa me '%-.64s' has become ''First character of the FIELDS TERMINATED string is ambi guous; please use non-optional and non-empty FIELDS ENCLOSED BYThe foreign serve r, %s, you are trying to create already exists.The foreign server name you are t rying to reference does not exist. Data source error: %-.64sTable storage engin e '%-.64s' does not support the create option '%.64s'Syntax error: %-.64s PARTIT IONING requires definition of VALUES %-.64s for each partitionOnly %-.64s PARTIT IONING can use VALUES %-.64s in partition definitionMAXVALUE can only be used in last partition definitionSubpartitions can only be hash partitions and by keyMu st define subpartitions on all partitions if on one partitionWrong number of par titions defined, mismatch with previous settingWrong number of subpartitions def ined, mismatch with previous settingConstant, random or timezone-dependent expre ssions in (sub)partitioning function are not allowedExpression in RANGE/LIST VAL UES must be constantField in list of fields for partition function not found in tableList of fields is only allowed in KEY partitionsThe partition info in the f rm file is not consistent with what can be written into the frm fileThe %-.192s function returns the wrong typeFor %-.64s partitions each partition must be defi nedVALUES LESS THAN value must be strictly increasing for each partitionVALUES v alue must be of same type as partition functionMultiple definition of same const ant in list partitioningPartitioning can not be used stand-alone in queryThe mix of handlers in the partitions is not allowed in this version of MySQLFor the pa rtitioned engine it is necessary to define all %-.64sToo many partitions (includ inPuTTYPuTTYg subpartitions) were definedIt is only possible to mix RANGE/LIST p artitioning with HASH/KEY partitioning for subpartitioningFailed to create speci fic handler fileA BLOB field is not allowed in partition functionA %-.192s must include all columns in the table's partitioning functionNumber of %-.64s = 0 is not an allowed valuePartition management on a not partitioned table is not possi bleForeign key clause is not yet supported in conjunction with partitioningError in list of partitions to %-.64sCannot remove all partitions, use DROP TABLE ins teadCOALESCE PARTITION can only be used on HASH/KEY partitionsREORGANIZE PARTITI ON can only be used to reorganize partitions not to change their numbersREORGANI ZE PARTITION without parameters can only be used on auto-partitioned tables usin g HASH PARTITIONs%-.64s PARTITION can only be used on RANGE/LIST partitionsTryin g to Add partition(s) with wrong number of subpartitionsAt least one partition m ust be addedAt least one partition must be coalescedMore partitions to reorganiz e than there are partitionsDuplicate partition name %-.192sIt is not allowed to shut off binlog on this commandWhen reorganizing a set of partitions they must b e in consecutive orderReorganize of range partitions cannot change total ranges except for last partition where it can extend the rangePartition function not su pported in this version for this handlerPartition state cannot be defined from C REATE/ALTER TABLEThe %-.64s handler only supports 32 bit integers in VALUESPlugi n '%-.192s' is not loadedIncorrect %-.32s value: '%-.128s'Table has no partition for value %-.64sIt is not allowed to specify %s more than onceFailed to create %sFailed to drop %sThe handler doesn't support autoextend of tablespacesA size p arameter was incorrectly specified, either number or on the form 10MThe size num ber was correct but we don't allow the digit part to be more than 2 billionFaile d to alter: %sWriting one row to the row-based binary log failedTable definition on master and slave does not match: %sSlave running with --log-slave-updates mu st use row-based binary logging to be able to replicate row-based binary log eve ntsEvent '%-.192s' already existsFailed to store event %s. Error code %d from st orage engine.Unknown event '%-.192s'Failed to alter event '%-.192s'Failed to dro p %sINTERVAL is either not positive or too bigENDS is either invalid or before S TARTSEvent execution time is in the past. Event has been disabledFailed to open mysql.eventNo datetime expression providedColumn count of mysql.%s is wrong. Exp ected %d, found %d. The table is probably corruptedCannot load from mysql.%s. Th e table is probably corruptedFailed to delete the event from mysql.eventError du ring compilation of event's bodySame old and new event nameData for column '%s' too longCannot drop index '%-.192s': needed in a foreign key constraintThe synta x '%s' is deprecated and will be removed in MySQL %s. Please use %s insteadYou c an't write-lock a log table. Only read access is possibleYou can't use locks wit h log tables.Upholding foreign key constraints for table '%.192s', entry '%-.192 s', key %d would lead to a duplicate entryColumn count of mysql.%s is wrong. Exp ected %d, found %d. Created with MySQL %d, now running %d. Please use mysql_upgr ade to fix this error.Cannot switch out of the row-based binary log format when the session has open temporary tablesCannot change the binary logging format ins ide a stored function or triggerThe NDB cluster engine does not support changing the binlog format on the fly yetCannot create temporary table with partitionsPa rtition constant is out of partition function domainThis partition function is n ot allowedError in DDL logNot allowed to use NULL value in VALUES LESS THANIncor rect partition nameTransaction isolation level can't be changed while a transact ion is in progressALTER TABLE causes auto_increment resequencing, resulting in d uplicate entry '%-.192s' for key '%-.192s'Internal scheduler error %dError durin g starting/stopping of the scheduler. Error code %uEngine cannot be used in part itioned tablesCannot activate '%-.64s' logThe server was not built with row-base d replicationDecoding of base64 string failedRecursion of EVENT DDL statements i s forbidden when body is presentCannot proceed because system tables used by Eve nt Scheduler were found damaged at server startOnly integers allowed as number h ereThis storage engine cannot be used for log tables"You cannot '%s' a log table if logging is enabledCannot rename '%s'. When logging enabled, rename to/from l og table must rename two tables: the log table to an archive table and another t able back to '%s'Incorrect parameter count in the call to native function '%-.19 2s'Incorrect parameters in the call to native function '%-.192s'Incorrect parame ters in the call to stored function '%-.192s'This function '%-.192s' has the sam e name as a native functionDuplicate entry '%-.64s' for key '%-.192s'Too many fi les opened, please execute the command againEvent execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after c reation.Event execution time is in the past and ON COMPLETION NOT PRESERVE is se t. The event was dropped immediately after creation.The incident %s occured on t he master. Message: %-.64sTable has no partition for some existing valuesStateme nt may not be safe to log in statement format.Fatal error: %sRelay log read fail ure: %sRelay log write failure: %sFailed to create %sMaster command %s failed: % sBinary logging not possible. Message: %sView `%-.64s`.`%-.64s` has no creation contextCreation context of view `%-.64s`.`%-.64s' is invalidCreation context of stored routine `%-.64s`.`%-.64s` is invalidCorrupted TRG file for table `%-.64s` .`%-.64s`Triggers for table `%-.64s`.`%-.64s` have no creation contextTrigger cr eation context of table `%-.64s`.`%-.64s` is invalidCreation context of event `% -.64s`.`%-.64s` is invalidCannot open table for trigger `%-.64s`.`%-.64s`Cannot create stored routine `%-.64s`. Check warningsAmbiguous slave modes combination. %sThe BINLOG statement of type `%s` was not preceded by a format description BI NLOG statement.Corrupted replication event was detectedInvalid column reference (%-.64s) in LOAD DATABeing purged log %s was not foundXA_RBTIMEOUT: Transaction branch was rolled back: took too longXA_RBDEADLOCK: Transaction branch was rolle d back: deadlock was detectedPrepared statement needs to be re-preparedDELAYED o ption not supported for table '%-.192s'The master info structure does not exist< %-.64s> option ignoredBuilt-in plugins cannot be deletedPlugin is busy and will be uninstalled on shutdown%s variable '%s' is read-only. Use SET %s to assign th e valueStorage engine %s does not support rollback for this statement. Transacti on rolled back and must be restartedUnexpected master's heartbeat data: %sThe re quested value for the heartbeat period %s %sBad schema for mysql.ndb_replication table. Message: %-.64sError in parsing conflict function. Message: %-.64sWrite to exceptions table failed. Message: %-.128s"Comment for table '%-.64s' is too l ong (max = %lu)Comment for field '%-.64s' is too long (max = %lu)FUNCTION %s doe s not exist. Check the 'Function Name Parsing and Resolution' section in the Ref erence ManualDatabaseTablePartitionSubpartitionTemporaryRenamedToo many active c oncurrent transactionsNon-ASCII separator arguments are not fully supporteddebug sync point wait timed outdebug sync point hit limit reached
-----------------------------------------------------------------------------------------------------------


Asterisk 1.4.44-vici

Server : Cluster
ISO ::ViciBox.x86_64-4.0.3.iso
ViciBox Server v.4.0!
SVN Version: 1953
DB Schema Version: 1341
Kernel:
Linux ccdial1 3.1.10-1.19-default #1 SMP Mon Feb 25 10:32:50 UTC 2013 (f0b13a3) x86_64 x86_64 x86_64 GNU/Linux
VERSION: 2.6-396a
BUILD: 130402-2322

Server :Cluster:: No senguma , No other SW install .

::::extensions.conf

exten => 8365,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8365,3,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----SO)
exten => 8365,4,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----SO)
exten => 8365,5,Hangup

; VICIDIAL_auto_dialer transfer script SURVEY at beginning:
exten => 8366,1,Playback(sip-silence)
exten => 8366,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8366,3,AGI(agi-VDAD_ALL_outbound.agi,SURVEYCAMP-----LB)
exten => 8366,4,AGI(agi-VDAD_ALL_outbound.agi,SURVEYCAMP-----LB)
exten => 8366,5,Hangup

; VICIDIAL_auto_dialer transfer script Load Balance Overflow:
exten => 8367,1,Playback(sip-silence)
exten => 8367,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8367,3,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LO)
exten => 8367,4,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LO)
exten => 8367,5,Hangup

; VICIDIAL_auto_dialer transfer script Load Balanced:
exten => 8368,1,Playback(sip-silence)
exten => 8368,2,AGI(agi://127.0.0.1:4577/call_log)
exten => 8368,3,AGI(agi-VDAD_ALL_outbound.agi,NORMAL-----LB)
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby ashis103 » Sun May 12, 2013 5:43 am

Dear Any one help me please ... we cant access link due to mysql connect error frequently
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Mon May 13, 2013 6:18 am

* Can you ping the database from the asterisk server?
* when does it happen? any special time or random? or in connection with some job being done?
* what is the load of the database server when this happen?
* /usr/share/mysql/english/errmsg.sys is not a logfile, the logfiles you should post is at /var/log/mysql/ look at /var/log/messages and other logs too.
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Mon May 13, 2013 7:47 am

would you Please check below tracer out when hop 3 is reachable then connection is smoth.If you think IP route related issue then please advise should I change database IP ?? Please advise

ccdial1:~ # traceroute 192.168.1.2 (false IP ..)
traceroute to 192.168.1.2 (192.168.1.2), 30 hops max, 40 byte packets using UDP
1 192.168.1.1 (192.168.1.1) 1.979 ms 0.949 ms 0.413 ms
2 172.16.0.1 (172.16.0.1) 0.633 ms 0.626 ms 0.699 ms
3 192.168.1.2 (192.168.1.2) 0.845 ms 0.807 ms 0.774 ms

When getting Below Trace connection are broken .

traceroute 192.168.1.2
traceroute to 192.168.1.2 (192.168.1.2), 30 hops max, 40 byte packets using UDP
1 192.168.1.1 (192.168.1.1) 0.449 ms 0.377 ms 0.381 ms
2 172.16.0.1 (172.30.1.65) 0.655 ms 0.632 ms 0.651 ms
3 * * *
4 * * *
5 * * *
6 * * *
-----------
its random .somtimes work (4 min)sometimes problem occurred , its back automatically . I am not loading anythings.

Filesystem Type Size Used Avail Use% Mounted on
rootfs rootfs 913G 3.3G 864G 1% /
devtmpfs devtmpfs 12G 40K 12G 1% /dev
tmpfs tmpfs 12G 0 12G 0% /dev/shm
tmpfs tmpfs 12G 368K 12G 1% /run
/dev/sda1 ext3 913G 3.3G 864G 1% /
tmpfs tmpfs 12G 0 12G 0% /sys/fs/cgroup
tmpfs tmpfs 12G 368K 12G 1% /var/lock
tmpfs tmpfs 12G 0 12G 0% /media
tmpfs tmpfs 12G 368K 12G 1% /var/run
---------------------------

ccweb1:~ # tail -f /var/log/messages
May 13 08:28:01 ccweb1 /USR/SBIN/CRON[30704]: (root) CMD (/usr/share/astguiclient/ADMIN_keepalive_ALL.pl)
May 13 08:29:01 ccweb1 /USR/SBIN/CRON[30718]: (root) CMD (/usr/share/astguiclient/AST_VDhopper.pl -q)
May 13 08:29:01 ccweb1 /USR/SBIN/CRON[30719]: (root) CMD (/usr/share/astguiclient/AST_inbound_email_parser.pl)
May 13 08:29:01 ccweb1 /USR/SBIN/CRON[30720]: (root) CMD (/usr/share/astguiclient/ADMIN_keepalive_ALL.pl)
May 13 08:30:01 ccweb1 /USR/SBIN/CRON[30735]: (root) CMD (/usr/share/astguiclient/AST_inbound_email_parser.pl)
May 13 08:30:01 ccweb1 /USR/SBIN/CRON[30736]: (root) CMD (/usr/share/astguiclient/AST_VDhopper.pl -q)
May 13 08:30:01 ccweb1 /USR/SBIN/CRON[30737]: (root) CMD (/usr/share/astguiclient/ADMIN_keepalive_ALL.pl)
May 13 08:30:10 ccweb1 sshd[30767]: reverse mapping checking getaddrinfo for 210-4-65-85-dsl.bdcom.com [210.4.65.85] failed - POSSIBLE BREAK-IN ATTEMPT!
May 13 08:30:16 ccweb1 sshd[30767]: Accepted keyboard-interactive/pam for root from 210.4.65.85 port 51742 ssh2
May 13 08:30:16 ccweb1 systemd-logind[890]: New session 4974 of user root.

----------------------

ccweb1:~ # tail -f /var/log/mysql/mysqld.log
130512 10:43:23 [Note] Plugin 'FEDERATED' is disabled.
130512 10:43:23 InnoDB: Initializing buffer pool, size = 8.0M
130512 10:43:23 InnoDB: Completed initialization of buffer pool
130512 10:43:23 InnoDB: Started; log sequence number 0 1595675
130512 10:43:23 [Warning] 'user' entry 'root@ccweb1' ignored in --skip-name-resolve mode.
130512 10:43:23 [Warning] 'user' entry 'root@::1' ignored in --skip-name-resolve mode.
130512 10:43:23 [Warning] 'user' entry '@ccweb1' ignored in --skip-name-resolve mode.
130512 10:43:23 [Note] Event Scheduler: Loaded 0 events
130512 10:43:23 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.1.68-log' socket: '/var/run/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Mon May 13, 2013 8:12 am

you seam to have a strange network setup, explain what 192.168.1.1 and 172.16.0.1 is.
and isnt the database on the same 192.168.1-network?

also, what do you know about 172.30.1.65.

also post the output from the command route on both the asterisk and database server
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Mon May 13, 2013 10:08 am

Dear Dornedan

Sorry I wanna hide my orginal IP .Anyway problem is my netwrok . let me check 1st , Revert back to u soon . Thank you
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Mon May 13, 2013 11:16 am

Sure, always hide your public address but exchange it with something relevant or cencurate it,
dont mix private and public addresses
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Tue May 14, 2013 2:14 am

Thank for your advise , I want to change database server IP ,My astericks server IP Ex:203.144.166.21 and DB server IP :203.144.165.85 :; Probably problem is DB server IP ; So that If i change DB server as a same of Asterisk server series IP ; is that any hamper will be vicidial? if change ETh0 ip then will be trouble to connect aster to DB server ? Please advise
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Tue May 14, 2013 4:25 am

If you do it right you will be able to connect, use yast to change the ip-address
and run the script ADMIN_update_server_ip.pl
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Tue May 14, 2013 7:38 am

Thanks DomeDan ... if I change DB server IP I should use command perl ADMIN_update_server_ip.pl . but should I use any command for Asterisks server?? is it auto connected from Astericks to database server ?? Please advise
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Tue May 14, 2013 7:45 am

oh yeah, you of-course need to edit /etc/astguiclient.conf in the asterisk server to point at the database:
VARDB_server => 12.12.12.12
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Tue May 14, 2013 8:11 am

Thanks A Lot Domedon .. Its a great news that we dont need change IP , Problem was IP routing , Now seems good but your advise is very helpful , hope it will help me in future .

Appropriate your kind support .
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Tue May 14, 2013 8:25 am

You're welcome, nice you had it solved! :)
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Sun May 19, 2013 6:36 am

Dear Domedan

Sorry !! I had change IP but its work nice for 1 hour and then its problem occurred as like as previous . sometimes work nicely with good pinging stat and then its start Pckt lose . IP and route is so good. Please advise .

Aster Log:
onnected to Asterisk 1.4.44-vici currently running on ccdial1 (pid = 1800)
Verbosity is at least 21
[May 19 07:30:01] == Parsing '/etc/asterisk/manager.conf': [May 19 07:30:01] Found
[May 19 07:30:01] == Manager 'sendcron' logged on from 127.0.0.1
[May 19 07:30:01] == Parsing '/etc/asterisk/manager.conf': [May 19 07:30:01] Found
[May 19 07:30:01] == Manager 'sendcron' logged on from 127.0.0.1
[May 19 07:30:01] == Manager 'sendcron' logged off from 127.0.0.1
[May 19 07:30:02] == Manager 'sendcron' logged off from 127.0.0.1
[May 19 07:30:06] == Parsing '/etc/asterisk/manager.conf': [May 19 07:30:06] Found
[May 19 07:30:06] == Manager 'sendcron' logged on from 127.0.0.1
[May 19 07:30:06] == Manager 'sendcron' logged off from 127.0.0.1
[May 19 07:31:01] == Parsing '/etc/asterisk/manager.conf': [May 19 07:31:01] Found
[May 19 07:31:01] == Manager 'sendcron' logged on from 127.0.0.1
[May 19 07:31:01] == Parsing '/etc/asterisk/manager.conf': [May 19 07:31:01] Found
[May 19 07:31:01] == Manager 'sendcron' logged on from 127.0.0.1
[May 19 07:31:01] == Manager 'sendcron' logged off from 127.0.0.1
[May 19 07:31:02] == Manager 'sendcron' logged off from 127.0.0.1
[May 19 07:31:06] == Parsing '/etc/asterisk/manager.conf': [May 19 07:31:06] Found
[May 19 07:31:06] == Manager 'sendcron' logged on from 127.0.0.1
[May 19 07:31:06] == Manager 'sendcron' logged off from 127.0.0.1
ccdial1*CLI>
---------------------------------------------------------

DB server : message log :

ccweb1:~ # tail -f /var/log/messages
May 19 07:33:01 ccweb1 /USR/SBIN/CRON[11652]: (root) CMD (/usr/share/astguiclient/AST_VDhopper.pl -q)
May 19 07:33:01 ccweb1 /USR/SBIN/CRON[11653]: (root) CMD (/usr/share/astguiclient/AST_cleanup_agent_log.pl)
May 19 07:34:01 ccweb1 /USR/SBIN/CRON[11669]: (root) CMD (/usr/share/astguiclient/AST_inbound_email_parser.pl)
May 19 07:34:01 ccweb1 /USR/SBIN/CRON[11671]: (root) CMD (/usr/share/astguiclient/AST_VDhopper.pl -q)
May 19 07:34:01 ccweb1 /USR/SBIN/CRON[11670]: (root) CMD (/usr/share/astguiclient/ADMIN_keepalive_ALL.pl)
May 19 07:35:01 ccweb1 /USR/SBIN/CRON[11684]: (root) CMD (/usr/share/astguiclient/ADMIN_keepalive_ALL.pl)
May 19 07:35:01 ccweb1 /USR/SBIN/CRON[11685]: (root) CMD (/usr/share/astguiclient/AST_VDhopper.pl -q)
May 19 07:35:01 ccweb1 /USR/SBIN/CRON[11686]: (root) CMD (/usr/share/astguiclient/AST_inbound_email_parser.pl)
May 19 07:35:15 ccweb1 sshd[11696]: Accepted keyboard-interactive/pam for root from 192.168.1.68 port 47598 ssh2
May 19 07:35:15 ccweb1 systemd-logind[870]: New session 325 of user root.
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Re: MySQL connect ERROR: Connection timed out

Postby DomeDan » Tue May 21, 2013 4:02 am

you should post the asterisk cli when a call is placed,
and I need more info because package loss can be caused by many reasons.

do you use static or dynamic ip?
if dynamic, then what kind of dhcp-server do you got?
any router in place? then what kind of router?
what kind of network is above yours? or is it straight to the internet?
does anything change when you experience package loss? is the route still the same?
is there anything you know of that might be running when you start getting package loss?

just explain your whole network setup
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: MySQL connect ERROR: Connection timed out

Postby ashis103 » Fri May 31, 2013 11:44 pm

I am using Static IP .
Cisco Router with BGP routing .
VLAN Network ,
I dont change anything , sometime its work fine and then packt lose start (checkin form outside network), If i do ping yahoo/gmail from server then easily get access from outside .I mean no lose .
Anyway Probably Its VLAN /routing problem . Network admin look care of it .
--------------
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am

Hi Tech

Postby Tehctecfut » Sat Jun 01, 2013 1:48 am

I congratulate, what words..., a remarkable idea
:)
Tehctecfut
 
Posts: 1
Joined: Fri May 03, 2013 6:23 pm

Re: MySQL connect ERROR: Connection timed out

Postby ashis103 » Sat Jun 01, 2013 3:29 am

Thank you for your help and prompt advise sir je ..
ashis103
 
Posts: 69
Joined: Tue Jan 15, 2013 5:16 am


Return to Support

Who is online

Users browsing this forum: No registered users and 123 guests