We have an application Ruby on rails, which fires a number of queries to
the database. I Suspect it is connection timeout error or something
When we run the application in development mode, it works as expected.
However when we switch to Production mode, we get the following error in
Postgre console:
There are 4 asynchronous queries being fired. Out of these 3 get fired
and result is achieved as expected, however the 4th query doesnt produce
any result
There are no exceptions thrown neither any log created.
However in Postgre Sql console the stack trace is as previously
mentioned.
We have an application Ruby on rails, which fires a number of queries to
the database. I Suspect it is connection timeout error or something
When we run the application in development mode, it works as expected.
However when we switch to Production mode, we get the following error in
Postgre console:
--------------------------
LOG: could not receive data from client: No connection could be made
because th
e target machine actively refused it.
LOG: unexpected EOF on client connection
------------------------
Environment:
Jruby version 1.5.0
Rails version 2.3.5
Postgre SQL database
Internal WEBrick server
This won't solve your problem, but it's a VERY BAD practice to have
development and production point to the same DB. You really should be
able to play around in your dev sandbox without jeopardizing production
data.