I have recently deployed a similar setup, Ubuntu 10.04, pgsql 8.4, rails 3.0.3, pg gem etc.
I have started to see this error occasionally, that request fails then subsequent requests are OK, the pgsql log says the client disconnected! Sequel::DatabaseDisconnectError (PGError: server closed the connection unexpectedly I've not had problems before with older versions. Take a look at you postgresql log and see if you can get clues there, I'm not sure what is causing my problems either. /var/log/posgresql/... On Dec 17, 1:47 pm, Tim Uckun <[email protected]> wrote: > I have some daemons that connect to a PG database and are pretty busy. > Every few days at least one of them starts failing with this error. > > PGError: lost synchronization with server: got message type "something" > > Sometimes the message type is an empty string. Other times it's a > letter like "E" or something. It seems to vary from incident to > incident. > > This is highly annoying because at this point the daemon becomes > useless. If I stop the daemon and start it again everything works > fine. A few days later some other daemon or maybe the same one will > fail with a similar message. > > I am running the latest version of rails 3.0.3 on an up to date ubuntu > connected to postgres 8.4. > > Any idea of what is going on? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

