I was wondering if anyone here has seen a similar error to this...
From mongrel.log
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/
transactions.rb:85:in `transaction': Transaction aborted
(ActiveRecord::Transactions::TransactionError)
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:293:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:293:in `join'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:293:in `join'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:293:in `each'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
configurator.rb:293:in `join'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/
mongrel_rails:136:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/
command.rb:211:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/
mongrel_rails:243
from /usr/bin/mongrel_rails:16:in `load'
from /usr/bin/mongrel_rails:16
This happens on Attachment_fu uploads using S3 only in production
(Attachment_fu uploads to S3 in development mode work fine) All my
other logs (production.log, apache logs, etc) are clean and I haven't
been able to track down the source of the problem. Everything is
properly validated before the upload is called, and the records are
created in the database, but the image is never uploaded to S3 and I'm
getting the lockup shown above, which requires me to restart my
mongrels. I've been stuck on this for a good 2 weeks and haven't been
able to find any working solutions anywhere. I would greatly
appreciate any advice.
Code follows...
**foo_controller.rb**
def create
begin
@foo = Foo.new(params[:foo])
respond_to do |format|
if @foo.save
format.html { redirect_to foo_url(@foo) }
else
format.html { render :action => "new" }
end
end
rescue
render :action => "new"
end
end
**foo.rb**
after_create :save_logo