Problem with AAF using Action Mailer

I’ve got Ferret and AAF working fine in my application. When I create
or modify AR objects, they get indexed just as expected.

However, when I create a model object in my ActionMailer class, it seems
that the index insertion is failing, because the MySQL transaction with
the INSERT gets rolled back.

I don’t get much in the way of error messages or logging. I see the
usual message that the local index will be used, then the log entry from
ferret_create with the appropriate id, e.g.

 ferret_create/update: Item : 1010

But then the very next thing I see is

   SQL (0.009825)   ROLLBACK

Note that if I turn of AAF, this transaction works fine. Also note that
the SQL generated in ActionMailer is identical to that generated in the
UI.

I’m assuming that it’s either a permissions issue or that there’s some
AR setup that’s not happening when running my mailer script under
runner.

Any help would sure be apprectiated!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs