> What's L68 of your config/unicorn.rb file look like? Check to see if you have > copied/pasted a line that references ActiveRecord in the before_fork or > after_fork blocks. > > A lot of unicorn examples have an ActiveRecord::Base.connection.disconnect! > (with a defined?(ActiveRecord::Base) but that might not be present in your > config) statement to ensure that AR connections aren't shared between the > master and worker processes.
Aha! Thanks Daniel. =) I'm such an idiot =oP I totally missed that it was in my own code - including the path on the top line of the trace =|. The reason I presumed it wasn't is because I copied+pasted most of the unicorn config, so I didn't remember *writing* any AR-specific code. I guess it should work if I take that out! The line actually turned out to be ActiveRecord::Base.establish_connection Thanks again! *slaps forehead* _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
