Brent Hargrave
2008-Sep-07 21:07 UTC
[Backgroundrb-devel] Backgroundrb incompatible with acts_as_readyonlyable?
Hi all, I''ve setup MySQL replication using acts_as_readonlyable. The thin servers work fine, as does backgroundrb on non-read-only models. However, when it tries to read an ActiveRecord model that is "acts-as_readonlyable", I get the following error: ActiveRecord::ConnectionNotEstablished. To reiterate, I''m pretty sure it''s not my configuration because the core rails app works as expected, as does backgroundrb for non-replicated models. Has anyone else experienced this problem, or know what may be the cause of it? Here''s a gist of the backtrace: http://gist.github.com/9319 Note; I''m running rails 2.0.2 and a backgroundrb version from a little after 2008-02-28 (last changelog update). I have not upgraded since then for stability reasons. Any suggestions would be much appreciated. Thanks, Brent -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080907/dc354b24/attachment.html>
hemant
2008-Sep-08 17:48 UTC
[Backgroundrb-devel] Backgroundrb incompatible with acts_as_readyonlyable?
Can you send a sample app(tar.gz) thats pre-configured with acts_as_readonlyable, so as I can reproduce this thing? On Mon, Sep 8, 2008 at 2:37 AM, Brent Hargrave <brent.hargrave at gmail.com> wrote:> Hi all, > > I''ve setup MySQL replication using acts_as_readonlyable. The thin servers > work fine, as does backgroundrb on non-read-only models. However, when it > tries to read an ActiveRecord model that is "acts-as_readonlyable", I get > the following error: ActiveRecord::ConnectionNotEstablished. To reiterate, > I''m pretty sure it''s not my configuration because the core rails app works > as expected, as does backgroundrb for non-replicated models. > > Has anyone else experienced this problem, or know what may be the cause of > it? Here''s a gist of the backtrace: > http://gist.github.com/9319 > > Note; I''m running rails 2.0.2 and a backgroundrb version from a little after > 2008-02-28 (last changelog update). I have not upgraded since then for > stability reasons. > > Any suggestions would be much appreciated. > > Thanks, > Brent > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org