|
Looks like it only works with the first request with a fresh ruby process, DB connection was lost for some reason.
It must have something to do with the initialization of your rails application, the differences between ruby LSAPI and FCGI/mongrel is LSAPI fork children processes off parent process with initialized Rails framework, it makes some trouble with DB connection, so in RailsRunner.rb, we close the DB connection immediatedly after child process was started. It works well with most Rails applications, but somehow does not work well with your application.
Maybe you can try strace/truss/ktrace the ruby process, see what exactly happened to the DB connection.
|