Somewhere on your code you are forcing a establish_connection, that's the problem. At least the backtrace is exactly the same I was getting with this problem. When I investigated this issue I found out that the sqlite3 backend hasn´t got implemented the close() method, so your establish_connection will fail, because the database will be kept open.
Try to remove any establish_connection added manually, and try if it works. I stumbled across this problem before, and I even started a thread on rails-core about this issue. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/jRD0OZqWqD8J. 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.

