[Home]

Summary:ASTERISK-05151: cdr_addon_mysql Errors on each CDR record
Reporter:paradise (paradise)Labels:
Date Opened:2005-09-26 04:57:05Date Closed:2005-09-28 23:46:02
Priority:MinorRegression?No
Status:Closed/CompleteComponents:CDR/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:from last update to cdr_addon_mysql in CVS HEAD, I get one of these error messages on adding each cdr record; but the record is added to database successfully!:

ERROR[4110] cdr_addon_mysql.c: cdr_mysql: Retried to connect fives times, giving up.
ERROR[4110] cdr_addon_mysql.c: cdr_mysql: Retried to connect fives times, giving up.
ERROR[4110] cdr_addon_mysql.c: cdr_mysql: Retried to connect fives times, giving up.
ERROR[4110] cdr_addon_mysql.c: cdr_mysql: Retried to connect fives times, giving up.
ERROR[4110] cdr_addon_mysql.c: cdr_mysql: Retried to connect fives times, giving up.
ERROR[4110] cdr_addon_mysql.c: cdr_mysql: Retried to connect fives times, giving up.
Comments:By: Daniele Gallina (gallysoft) 2005-09-26 07:02:09

I have the same problem.

By: Jennifer Hales (jennifer hales) 2005-09-26 17:47:20

I got the same error when trying to read from mysql. I updated to latest CVS Head yesterday morning Melb Aust time.

Sep 26 08:22:41 ERROR[4158]: cdr_addon_mysql.c:166 mysql_log: cdr_mysql: Retried to connect fives times, giving up.

We rolled back to an older version of asterisk and the error went away.

By: Brett Crapser (cmdrcody) 2005-09-27 02:15:32

Apparently Kevin got carried away 8-)

You need to move the '}' from around line 161
to after the 'if' around line 167.

Otherwise - even if the mysql_ping comes back OK
it still tries 5 time and reports an error even
though the the data is still saved later.

It's just a tiny thing.

By: Kevin P. Fleming (kpfleming) 2005-09-28 23:45:46

Fixed in CVS HEAD, sorry about that :-(