
March 20th, 2013, 05:34 AM
|
|
Registered User
|
|
Join Date: Mar 2013
Posts: 3
Time spent in forums: 1 h 14 m 57 sec
Reputation Power: 0
|
|
|
PGError: server closed the connection unexpectedly
Hi,
I'm using PostgreSql database with one of my web application built in RubyOnRails, but I often fall into this error from the PostgreSql database which is installed on a VM. I'm connecting my application to a remote database. I tried to figure out the reason for this issue in various ways, but I couldn't find out why will the database give me such an error.
Error I get is.
PGError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
PGError: could not receive data from server: Connection timed out
I'm using the latest version of open source PostgreSql database i.e 9.2, and I get these errors very frequently which is reducing the performance of my application. Can someone help me to understand why this error occurs and how do I avoid them?
I have tried all the possible solutions available for me at my application end, which includes setting various database configuration values like timeout, pool and using latest database adaptor gems. Still couldn't find out the source of this issue nor the solution.
|