- Joined
- Nov 26, 2007
- Messages
- 268
- Reaction score
- 0
I sincerely apologize for cross posting this however, I am in quite a bind.
Friday evening, Postgres crashed. I'm not exactly sure what happened but the end result was that 3CX could not log in to the database. I did my best to troubleshoot the issue, however not being very familiar with Postgres, I didn't make very progress. What I did find out though, is that the user account that it created at install time to log in to 3CX is the same user that is created in the database. However, this user had been deleted from the database (preventing 3CX from logging in)
I tried to restore from a 3CX backup that I had made a few days earlier however this did not restore the missing user. Further troubleshooting lef me to find that there is a "phonesystem" user in the Postgres database however this password is unknown. I found reference to this password in the pg_auth file however the password is an MD5 hash. Does anyone know this password?
Now, I'm not sure how to proceed here. I've tried uninstalling and re-installing with a blank database, performing a restore, but I continue to get the following error:
I've tried changing the auth mode in Postgres to "trust," logging in as "phonesystem," and successfully got in to the database (using the psql tool). From there I created the "3CX Admin" user with the current password, switch the auth mode back to "password" but still cannot log in.
Any advice is greatly appreciated.
Sincerely,
Darrell Chapman
Friday evening, Postgres crashed. I'm not exactly sure what happened but the end result was that 3CX could not log in to the database. I did my best to troubleshoot the issue, however not being very familiar with Postgres, I didn't make very progress. What I did find out though, is that the user account that it created at install time to log in to 3CX is the same user that is created in the database. However, this user had been deleted from the database (preventing 3CX from logging in)
I tried to restore from a 3CX backup that I had made a few days earlier however this did not restore the missing user. Further troubleshooting lef me to find that there is a "phonesystem" user in the Postgres database however this password is unknown. I found reference to this password in the pg_auth file however the password is an MD5 hash. Does anyone know this password?
Now, I'm not sure how to proceed here. I've tried uninstalling and re-installing with a blank database, performing a restore, but I continue to get the following error:
Code:
Can't connect to the database server - invalid password or login name
SQLSTATE[08006] [7] FATAL: password authentication failed for user "[DELETED]"<br>#0 C:\Program Files\3CX PhoneSystem\Data\Http\functions\CallContext.php(37): PDO->__construct('pgsql:dbname=ph...', '[DELETED], '[DELETED]')<br />
#1 C:\Program Files\3CX PhoneSystem\Data\Http\functions\CallContext.php(86): CallContext->getConnection()<br />
#2 C:\Program Files\3CX PhoneSystem\Data\Http\functions\fDN.php(83): CallContext->safeExec('select dn.iddn ...', Array, 'Cannot get DN o...')<br />
#3 C:\Program Files\3CX PhoneSystem\Data\Http\functions\fObject.php(90): fDN->getData()<br />
#4 C:\Program Files\3CX PhoneSystem\Data\Http\status.php(113): fObject->getManager()<br />
#5 {main}
I've tried changing the auth mode in Postgres to "trust," logging in as "phonesystem," and successfully got in to the database (using the psql tool). From there I created the "3CX Admin" user with the current password, switch the auth mode back to "password" but still cannot log in.
Any advice is greatly appreciated.
Sincerely,
Darrell Chapman