Koozali.org: home of the SME Server

SAIL - Database error: pconnect(localhost in CDR report

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL - Database error: pconnect(localhost in CDR report
« on: October 20, 2006, 10:37:45 AM »
After doing a restore of users on a freshly installed server,  the CDR panel in SAIL no longer works [https://my-server/stst]  .  The error shown is:

Database error: pconnect(localhost, asterisk, $Password) failed.
MySQL Error: ()
Database error: pconnect(localhost, asterisk, $Password) failed.
MySQL Error: ()
Database error: pconnect(localhost, asterisk, $Password) failed.
MySQL Error: ()
Database error: pconnect(localhost, asterisk, $Password) failed.
MySQL Error: ()
Database error: next_record called with no query pending.
MySQL Error: ()

I am at a loss on this one.  Tried to uninstall and reinstall SAIL etc to no avail.
Any pointer would be apppreciated. Thanks. chris.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL - Database error: pconnect(localhost in CDR report
« Reply #1 on: October 20, 2006, 11:31:29 AM »
Found the solution.  Noticed that when reinstalling selintra, there was a warning about a database "asterisk" already existing .  Uninstalled again (rpm -e) all asterisk and selintra rpm and done a search:
find / -name asterisk -print

Deleting all dir and files name asterisk did the trick: reinstalled and its working now.
I think that the problem was one of the following, no time to repeat to identify culprit:

/usr/lib/asterisk
/usr/sbin/asterisk
/var/lib/asterisk
/var/lib/mysql/asterisk
/var/spool/asterisk
/etc/asterisk
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.